NTX Paydocs

Send PIX payment (Cash-Out)

POST /api/pix/cash-out

Sends a PIX payment to a PIX key.

Authentication

Requires a Bearer token in the Authorization header.

Request Body

FieldTypeRequiredDescription
valuenumberYesTransaction amount in BRL (up to 2 decimal places)
externalIdstringYesUnique external identifier for the transaction
descriptionstringNoOptional transaction description
detailsobjectYesDestination PIX key information
details.keystringYesDestination PIX key
details.keyTypestringYesPIX key type: EMAIL, PHONE, DOCUMENT, RANDOM
details.namestringYesPIX key holder name
details.documentstringYesHolder's document (CPF or CNPJ, numbers only)
{
  "value": 15.50,
  "externalId": "external-teste-001",
  "description": "Pagamento fornecedor XYZ",
  "details": {
    "key": "12312312387",
    "keyType": "DOCUMENT",
    "name": "John Marvin",
    "document": "12312312387"
  }
}

Response (201)

FieldTypeDescription
transactionIdstringInternal identifier of the generated transaction
externalIdstringExternal identifier provided in the request
statusstringCurrent transaction status (PENDING, CONFIRMED, ERROR)
generateTimestringTransaction generation date/time (ISO 8601)
{
  "transactionId": "456",
  "externalId": "external-teste-001",
  "status": "PENDING",
  "generateTime": "2024-01-15T10:30:00.000Z"
}

Errors

StatusDescription
400Invalid data or insufficient balance
401Missing or invalid token
500Error processing PIX payment

On this page