Ir al contenido
UnoPagoDocumentación
Referencia de la APICustomer dataCustomers

Get a customer payments

GET
/v1/customers/{customerId}/payments

This API is used to get a customer payments

Autorización

bearerAuth
headerAutorizaciónBearer <token>

Your API key, created in Configuración → Claves API. The key alone, without the Bearer prefix, is accepted too.

Parámetros de ruta

customerId*string
Patrón^[cC][0-9a-z]{6,}$
Formatocuid
cursor?string
limit?number
Rangovalue <= 100
Por defecto10
search?string
Longitudlength <= 120
sortKey?string
Por defecto"transactionDate"
Valor en"transactionDate""amount"
sortDirection?string
Por defecto"desc"
Valor en"asc""desc"

Cuerpo de la respuesta

Successful response

application/json
  1. response
results*array<>
total*number
totalPages*number
nextCursor?|

The cursor to get the next page of results

exchangeRates?
Ejemplo de solicitud
curl -X GET 'https://api.unopago.com/v1/customers/string/payments'
Ejemplo de respuesta
{  "results": [    {      "currency": "VES",      "receiverBankName": "A100BANCO",      "method": "BANK_TRANSFER",      "id": "string",      "accountId": "string",      "customerId": "string",      "amount": 0,      "transactionDate": "string",      "rateDate": "string",      "referenceCode": "string",      "externalId": "string",      "receiverBankHolderName": "string",      "receiverBankNationalId": "string",      "customerFullName": "string",      "customerNationalId": "string",      "customerPhoneNumber": "string",      "customerBankAccountNumber": "string",      "customerEmail": "string",      "customerNote": "string",      "customerIpAddress": "string",      "customerUserAgent": "string",      "isAutoPay": true,      "bankAccountId": "string",      "paymentClaimId": "string",      "bankTransactionId": "string",      "createdById": "string",      "createdAt": "string",      "updatedAt": "string",      "splitAmount": 0,      "paymentTransactions": [        {          "kind": "ITEMS",          "currency": "VES",          "id": "string",          "accountId": "string",          "customerId": "string",          "invoiceId": "string",          "statementId": "string",          "description": "string",          "transactionDate": "string",          "exchangeRate": 0,          "rateDate": "string",          "credit": 0,          "debit": 0,          "paymentId": "string",          "fromPaymentId": "string",          "retentionId": "string",          "createdAt": "string",          "updatedAt": "string"        }      ],      "bankTransaction": {        "source": "MERCANTIL_WEBHOOK",        "bankName": "A100BANCO",        "currency": "VES",        "asset": "USDT",        "id": "string",        "accountId": "string",        "bankAccountId": "string",        "transactionFileId": "string",        "paymentClaimId": "string",        "bncWebhookPaymentEventId": "string",        "mercantilWebhookPaymentEventId": "string",        "duplicationKey": "string",        "amount": 0,        "date": "string",        "description": "string",        "referenceCode": "string",        "createdAt": "string",        "updatedAt": "string"      },      "paymentAttachments": [        {          "id": "string",          "accountId": "string",          "paymentId": "string",          "paymentClaimId": "string",          "customerTransactionId": "string",          "fileName": "string",          "contentType": "string",          "attachmentUrl": "string",          "uploadedByCustomer": true,          "createdAt": "string",          "updatedAt": "string"        }      ]    }  ],  "total": 0,  "totalPages": 0,  "nextCursor": "string",  "exchangeRates": {    "property1": {      "rate": 0,      "rateDate": "string",      "daysAhead": 0    },    "property2": {      "rate": 0,      "rateDate": "string",      "daysAhead": 0    }  }}