v1
latestOpenAPI 3.1.02026-08-04103211436.0 KBPayments
Retrieve payment
Returns a single payment by customId. Payments missing required accounting, operation or contact information are not returned even if they exist.
get/payments/{companyId}/{customId}
Path parameters
customIdstring required
companyIdstring required
Response
Successful Response
Example response
{
"method": "bank-transaction",
"operations": [
{
"amount": 500,
"customId": "invoice-2024-001"
}
],
"concept": "Invoice #2024-001 payment",
"amount": 1250.5,
"accountingAmount": 1250.5,
"exchangeRate": 1,
"attributes": [
{
"customId": "cost-center",
"value": "Marketing",
"valueCustomId": "marketing"
}
],
"error": "Missing account",
"contact": {
"tradeName": "Acme Supplies",
"legalName": "Acme Supplies S.L.",
"taxId": "B12345678",
"contact": {
"phone": "+34600000000",
"email": "billing@acme-supplies.com",
"name": "John",
"surname": "Doe"
},
"address": {
"postalCode": "28001",
"address": "Calle Mayor 10, 3B",
"province": "Madrid",
"city": "Madrid",
"country": "Spain"
},
"accounts": [
{
"swift": "BBVAESMMXXX",
"iban": "ES9121000418450200051332"
}
],
"paymentsAccounts": [
{
"details": {
"iban": "ES9121000418450200051332",
"bic": "BBVAESMMXXX",
"swift": "BBVAESMMXXX",
"accountNumber": "123456789",
"routingNumber": "021000021",
"sortCode": "040004",
"institutionNumber": "001",
"transitNumber": "12345",
"bsb": "062-000"
}
}
],
"accountingCode": "4300001",
"paymentMethod": "bank-transaction",
"paymentTerms": 30,
"attributes": [
{
"customId": "cost-center",
"value": "Marketing",
"valueCustomId": "marketing"
}
],
"customId": "erp-contact-001"
},
"intercompany": {
"id": "proc-abc",
"relatedPaymentPairs": [
[
"pay-hub-A",
"pay-sub-1"
],
[
"pay-hub-B",
"pay-sub-2"
]
],
"relatedPaymentsIds": [
"pay-hub-A"
],
"counterpartyContact": "contact-sub-1"
},
"transactionAttributes": [
{
"customId": "cost-center",
"value": "Marketing",
"valueCustomId": "marketing"
}
]
}