Transfers
The following section refers to APIs related to initiating and processing transfers to external payment instruments or other users in the platform.
External transfers are used for sending funds to an external bank account (including PIX or INTERAC account) or crypto wallet by providing the respective payment instrument details (such as account number or crypto address)
Internal transfers are used for sending funds to another The Kingdom Bank user (account).
N.B Please note that in order to access the following resources, the Transfer feature needs to be enabled on your Merchant account
Validate destination account
POST /v1/transfers/validate-destination
Validates that the provided destination details are sufficient for initiating an external transfer. Please note that a successful call to this API does not necessarily mean that a subsequent transfer to this destination account would be successful. Other factors such as our risk engine, the receiving bank or a downstream processor declining the incoming transaction may impact the outcome of a transfer.
Requires the X-Api-Key and X-Api-Secret headers.
Parameters
X-Signatureheader · stringX-Signature-Key-Idheader · string
Request body
destinationTyperequired stringAllowed values:
BANK_ACCOUNTCRYPTO_WALLETPIX_ACCOUNTINTERAC_ACCOUNTcurrencyrequired stringISO 4217 currency of the intended transfer. Selects the country/currency bank requirements and is used to validate crypto addresses
destinationrequired one of: TransferDestinationBankAccount | DestinationCryptoWallet | DestinationPixAccount | DestinationInteracAccountDestination account details, different depending on
destinationTypeShow fields
TransferDestinationBankAccount
countrystringCountry of the bank account. Required unless
ibanis specifiedShow fields
ISO 3166 alpha-3 code of a country (upper-cased)
ibanstringIBAN
accountNumberstringDomestic bank account number
interbankAccountCodestringUsed only for some countries like Peru - CCI number
bicSwiftstringShow fields
BIC / SWIFT code associated with the bank account. Could be either 8 or 11 symbols
bankCodestringDomestic bank code
branchCodestringDomestic branch code
holderNamestringName of the account holder
holderEmailstringEmail of the account holder
holderPhonestringPhone of the account holder
holderAddressAddressAddress of the account holder
Show fields
countryCodestringShow fields
ISO 3166 alpha-3 code of a country (upper-cased)
addressLine1stringShow fields
Address line 1
addressLine2stringShow fields
Address line 2
citystringShow fields
City
regionstringShow fields
State (applicable for certain countries)
postalCodestringPostal/zip code
bankNamestringName of the bank
bankAddressAddressAddress of the bank
Show fields
countryCodestringShow fields
ISO 3166 alpha-3 code of a country (upper-cased)
addressLine1stringShow fields
Address line 1
addressLine2stringShow fields
Address line 2
citystringShow fields
City
regionstringShow fields
State (applicable for certain countries)
postalCodestringPostal/zip code
accountTypestringShow fields
Type of the bank account, required for certain countries
documentIdstringShow fields
Document ID of the bank account. Required for certain countries, e.g CPF/CNPJ for Brazil
documentTypestringType of
documentId, see the Document Type table. Required for certain countriesholderDateOfBirthstring · dateDate of birth of the account holder. Required for certain countries
entityTypestringWhether the account holder is an individual or a company. Required for certain countries
Allowed values:
INDIVIDUALCOMPANYifscstringIndian Financial System Code. Used only for India
DestinationCryptoWallet
addressrequired stringPublic address of the crypto wallet
tagstringTag/memo of the crypto address. Required for some currencies (such as XRP) when initiating an external transfer.
DestinationPixAccount
accountNumberstringDomestic bank account number
ispbCodestringDomestic Ispb code
branchCodestringDomestic branch code
holderNamerequired stringName of the account holder
documentIdstringShow fields
Document ID of the bank account. Required for certain countries, e.g CPF/CNPJ for Brazil
pixKeystringShow fields
PIX key of the account. Can be used for PIX transfer.
DestinationInteracAccount
holderNamerequired stringName of the account holder
emailrequired string · emailShow fields
Email of the customer
phonerequired stringShow fields
Phone number with dial prefix
addressrequired stringShow fields
Address line 1
cityrequired stringShow fields
City
staterequired stringShow fields
State (applicable for certain countries)
postalCoderequired stringPostal/zip code
Responses
200 Destination validation result
validbooleancausearray of ValidationCauseShow fields
fieldstringcausestringcauseKeystring
400 The request is malformed or failed validation
traceIdstringtimestampstringcodeinteger · int32messagestringcausearray of ValidationCauseShow fields
fieldstringcausestringcauseKeystring
401 Missing or invalid API credentials, or invalid request signature
traceIdstringtimestampstringcodeinteger · int32messagestringcausearray of ValidationCauseShow fields
fieldstringcausestringcauseKeystring
409 The request conflicts with the merchant setup or the current state of the resource
traceIdstringtimestampstringcodeinteger · int32messagestringcausearray of ValidationCauseShow fields
fieldstringcausestringcauseKeystring
429 Rate limit exceeded
traceIdstringtimestampstringcodeinteger · int32messagestringcausearray of ValidationCauseShow fields
fieldstringcausestringcauseKeystring
500 Unexpected error
traceIdstringtimestampstringcodeinteger · int32messagestringcausearray of ValidationCauseShow fields
fieldstringcausestringcauseKeystring
Create Internal Transfer
POST /v1/transfers/internal
Transfer funds to another user in the platform
Status changes are sent to notificationUrl, see Webhooks.
Requires the X-Api-Key and X-Api-Secret headers.
Parameters
X-Signatureheader · stringX-Signature-Key-Idheader · string
Request body
accountIdstringAccount from which the funds are sent. Defaults to your primary account in
currencyforeignTransactionIdrequired stringYour unique identifier for the transfer. Cannot be reused
amountrequired stringAmount of the transfer, using a point as decimal separator
currencyrequired stringISO 4217 currency of the transfer
destinationEmailstringEmail of the recipient account. Required if
destinationUserIdis missingdestinationUserIdstringID of the recipient account. Required if
destinationEmailis missingnotificationUrlrequired string · uriHTTPS URL to which transfer status notifications are sent, see Webhooks
Responses
201 Internal transfer created
transactionIdinteger · int64Platform transaction ID
accountIdinteger · int64ID of the currency account for which the transaction is created
merchantIdinteger · int64ID of the Merchant
parentMerchantIdinteger · int64ID of the Parent Merchant
merchantNamestringName of the Merchant
createdTimestring · date-timeWhen the transaction was created, UTC, ISO 8601 with second precision
lastStatusUpdateTimestring · date-timeWhen the transaction last changed status (confirmation time, or creation time if not yet confirmed), UTC
statusstringStatus of the transaction, see Transaction status above
Allowed values:
INITIALPENDINGSCHEDULEDPROCESSEDCANCELLEDFAILEDbalancenumberAccount balance after this transaction
transactionAmountnumberAmount of the transaction in the account currency, rounded to the currency precision
processingAmountnumberAmount in the processing (payment) currency
transactionCurrencystringCurrency of the transaction
processingCurrencystringProcessing (payment) currency
directionstringDirection of the transaction:
DEPOSIT, money going into your account (credit);WITHDRAW, money going out of your account (debit)Allowed values:
DEPOSITWITHDRAWtypestringHuman-readable type of the transaction. May change; use
categoryfor programmatic handlingcategorystringCategory of the transaction, see Transaction categories above. Not a closed list
paymentMethodstringKey of the payment method used for the transaction
requestIdinteger · int64ID of the payment request (if applicable)
payerNamestringName of the payer
payerEmailstringEmail of the payer
counterpartyEmailstringEmail of the counterparty
counterpartyNamestringName of the counterparty
counterpartyBankstringBank name of the counterparty
counterpartyIbanstringIBAN of the counterparty. For checkout payments only returned when full account info is enabled on your account
counterpartyLast4DigitsstringLast 4 digits of the counterparty bank account
foreignTransactionIdstringUnique identifier passed by the merchant for this transaction
referencestringBank reference/other descriptor used for this transaction
parentTransactionIdinteger · int64ID of the transaction's parent
linkedTransactionsarray of LinkedTransactionsApiResponseTransactions linked to this one. Only returned by Search transactions with
include: [LINKED_TRANSACTIONS]Show fields
linkTypestringFEE: the linked transaction is a fee for this one.FEE_FOR: this transaction is a fee for the linked one.REFUND: this is a refund of the linked transaction.REFUNDED_BY: the linked transaction refunds this oneAllowed values:
REFUNDED_BYFEE_FORREFUNDFEEtransactionTransactionApiResponseTransaction affecting your merchant currency account
Show fields
Recursive reference to TransactionApiResponse
destinationCryptoAddressDetailsCryptoAddressDetailsDeposit address details, only for pending crypto checkout payments
Show fields
addressstringThe address of a crypto transaction
tagstringThe address tag of a crypto transaction
currencystringThe currency of a crypto transaction
expectedAmountnumberThe expected amount of a crypto transaction
statusCodeinteger · int64Status code in case of failed transaction
statusMessagestringStatus message in case of failed transaction
userMessagestringLast message shown to the customer. Only returned when enabled on your account
feebooleanSame as
isFee(kept for compatibility)isFeebooleanWhether this transaction is a fee (transaction, service or otherwise)
400 The request is malformed or failed validation
traceIdstringtimestampstringcodeinteger · int32messagestringcausearray of ValidationCauseShow fields
fieldstringcausestringcauseKeystring
401 Missing or invalid API credentials, or invalid request signature
traceIdstringtimestampstringcodeinteger · int32messagestringcausearray of ValidationCauseShow fields
fieldstringcausestringcauseKeystring
409 The request conflicts with the merchant setup or the current state of the resource
traceIdstringtimestampstringcodeinteger · int32messagestringcausearray of ValidationCauseShow fields
fieldstringcausestringcauseKeystring
429 Rate limit exceeded
traceIdstringtimestampstringcodeinteger · int32messagestringcausearray of ValidationCauseShow fields
fieldstringcausestringcauseKeystring
500 Unexpected error
traceIdstringtimestampstringcodeinteger · int32messagestringcausearray of ValidationCauseShow fields
fieldstringcausestringcauseKeystring
Callbacks
Payment notification
POST notificationUrl
Sent to the request's notificationUrl whenever the transaction changes status. Answer with any 2xx status within 20 seconds, otherwise the notification is retried. The body is signed: check X-Signature against the raw body, see Webhooks.
Headers
X-Signaturerequired header · stringSignature of the raw body
X-Signature-Key-Idrequired header · stringKey ID of the Signature Key used
Body
notificationIdrequired integer · int64Identifier of the notification. A resent notification keeps the same
notificationIdforeignTransactionIdstringYour unique identifier, as sent with the request this notification is for
typerequired stringThe kind of transaction this notification is for
Allowed values:
PAYMENTREFUNDPAYOUTEXTERNAL_TRANSFERINTERNAL_TRANSFERrequestIdinteger · int64ID of the request (payment request, refund, payout or transfer) in The Kingdom Bank's system
transactionIdinteger · int64ID of the The Kingdom Bank transaction that affected your account. Different from
requestIdpaymentMethodstringPayment method of the request
timestamprequired stringTime of the event this notification is for, in RFC 3339 format
statusrequired stringStatus of the transaction
PENDING: Pending confirmation from the customer. The payment may or may not be processedSCHEDULED: The customer has instructed the payment but the money has not yet reached our settlement account, so it is not yet added to your balancePROCESSED: Completed. The money has been added to (or deducted from) your account balanceFAILED: Failed, cancelled by the customer or our backoffice, or timed outOVERPAID,UNDERPAID: Deprecated. Use theoverpaidandunderpaidflags insteadAllowed values:
PENDINGSCHEDULEDPROCESSEDFAILEDOVERPAIDUNDERPAIDunderpaidbooleanThe customer completed the payment, but paid less than the requested amount
overpaidbooleanThe customer completed the payment, but paid more than the requested amount
referencestringPayment reference: the reference generated by the system followed by the one sent with the request, separated by a space
requestAmountstringRequested amount, as a decimal string
requestCurrencystringISO 4217 currency code of
requestAmounttransactionAmountstringAmount added to or deducted from your account. Same as
requestAmountunless otherwise agreed with your integration managertransactionCurrencystringISO 4217 currency code of
transactionAmountpaidAmountstringAmount paid to you. May differ from
requestAmountafter rounding or conversionpaidCurrencystringISO 4217 currency code of
paidAmountprocessingAmountstringAmount that was processed. Crypto payments only
processingCurrencystringCurrency of
processingAmount. Crypto payments onlycustomerAmountstringAmount paid by the customer, before conversion
customerCurrencystringCurrency of
customerAmountexternalUserIdstringThe
externalUserIdsent with the requestoriginalTransactionIdinteger · int64ID of the original transaction. Refunds, chargebacks and other events derived from a transaction only
originalForeignTransactionIdstringforeignTransactionIdof the original transaction. Refunds, chargebacks and other events derived from a transaction onlycustomerPaymentNotificationCustomerDetails of the customer's (sender's) account, as obtained from the bank. Payments only
Show fields
bankHolderNamestringName of the account holder
ibanstringbicstringBIC/SWIFT of the bank
bankNamestringcountrystringISO 3166 alpha-3 country code of the account
accountNumberstringDomestic account number
bankCodestringDomestic bank code
branchCodestringDomestic branch code
typestringType of the account
currencystringISO 4217 currency code of the account
last4CharsstringLast 4 characters of the IBAN or account number
userIdstringUnique identifier of the customer
mobileNetworkstringMobile network. Mobile money payments only
errorPaymentNotificationErrorWhy the transaction failed or was cancelled. The money may still arrive, so don't treat it as final for payments with
manualCheckRecommendedShow fields
codestringError code, listed in the Errors guide
messagestring
feesarray of PaymentNotificationFeeFees applied to the transaction
Show fields
feeTypestringType of the fee
amountnumbercurrencystring
isRecurringbooleanThe payment is a recurring payment
isSubsequentbooleanThe payment is a subsequent payment of a recurring plan
recurringPlanIdinteger · int64ID of the recurring plan in The Kingdom Bank's system
onDemandTokenstringThe customer's on-demand token, to use when requesting subsequent on-demand payments
onDemandNotestringReason for the on-demand payment, as shown to the customer in the payment confirmation
manualCheckRecommendedbooleanThe payment failed, but may still have been paid. Check it manually before retrying
Expected response: 200 Any 2xx status acknowledges the notification; the body is ignored
Create External Transfer
POST /v1/transfers/external
Transfer funds to an external payment instrument such as a bank account or crypto wallet
Bank transfer country requirements
Document Type
| Country | Document Type | Description |
|---|---|---|
| Argentina | CUIL | Clave Unica de Identificacion Tributaria |
| CUIT | Codigo Unico de Identificacion Laboral | |
| DNI | Documento Nacional de Identidad - National Identity Document | |
| Brazil | CPF | Cadastro de Pessoas Fisicas - Personal tax identification number |
| CNPJ | Cadastro Nacional da Pessoa Juridica - Business identification number | |
| Chile | Passport | Passport |
| RUT | Rol Unico Tributario - Tax identification number | |
| RUN | Rol Unico Nacional - Identification number | |
| CE | Cedula de Extranjeria - An identification card for foreign residents living in Chile | |
| Peru | Passport | Passport |
| DNI | Documento Nacional de Identidad | |
| RUC | Registro Fnico de Contribuyentes - Tax identification number | |
| CE | Carne de Extranjeria | |
| Pakistan | Passport | Passport |
| CNIC | Computerized National Identity Card | |
| SNIC | Smart National Identity Card | |
| NTN | National Tax Number | |
| Colombia | Passport | Passport |
| National ID | National Identity Card | |
| Resident ID | An identification card for foreign residents | |
| RUT | A tax identification number | |
| TI | A national identity card for minors (ages 7-17) | |
| Ecuador | Cedula | The national identity card issued to Ecuadorian citizens and legal residents |
| Passport | Passport | |
| RUC | The tax identification number | |
| Mexico | INE | Instituto Nacional Electoral ID - The official voter ID card |
| CURP | Clave Unica de Registro de Poblacion - A unique identity code assigned to all Mexican citizens and residents | |
| RFC | Registro Federal de Contribuyentes - Tax identification number | |
| Passport | Passport |
Country specific data
Send these fields inside providerSpecificData.
| Country | Field name | Validation |
|---|---|---|
| Pakistan | transactionPurpose | Alphanumeric - Maximum 35 characters |
Requires the X-Api-Key and X-Api-Secret headers.
Parameters
X-Signatureheader · stringX-Signature-Key-Idheader · string
Request body
accountIdstringAccount from which the funds are sent. Defaults to your primary account in
currencyforeignTransactionIdrequired stringYour unique identifier for the transfer. Cannot be reused
referencestringReference shown to the beneficiary where supported
amountrequired stringAmount of the transfer, using a point as decimal separator
currencyrequired stringISO 4217 currency of the transfer
destinationTyperequired stringType of the destination instrument; selects the shape of
destinationAllowed values:
BANK_ACCOUNTCRYPTO_WALLETPIX_ACCOUNTINTERAC_ACCOUNTdestinationrequired one of: TransferDestinationBankAccount | DestinationCryptoWallet | DestinationPixAccount | DestinationInteracAccountDestination account details, different depending on
destinationTypeShow fields
TransferDestinationBankAccount
countrystringCountry of the bank account. Required unless
ibanis specifiedShow fields
ISO 3166 alpha-3 code of a country (upper-cased)
ibanstringIBAN
accountNumberstringDomestic bank account number
interbankAccountCodestringUsed only for some countries like Peru - CCI number
bicSwiftstringShow fields
BIC / SWIFT code associated with the bank account. Could be either 8 or 11 symbols
bankCodestringDomestic bank code
branchCodestringDomestic branch code
holderNamestringName of the account holder
holderEmailstringEmail of the account holder
holderPhonestringPhone of the account holder
holderAddressAddressAddress of the account holder
Show fields
countryCodestringShow fields
ISO 3166 alpha-3 code of a country (upper-cased)
addressLine1stringShow fields
Address line 1
addressLine2stringShow fields
Address line 2
citystringShow fields
City
regionstringShow fields
State (applicable for certain countries)
postalCodestringPostal/zip code
bankNamestringName of the bank
bankAddressAddressAddress of the bank
Show fields
countryCodestringShow fields
ISO 3166 alpha-3 code of a country (upper-cased)
addressLine1stringShow fields
Address line 1
addressLine2stringShow fields
Address line 2
citystringShow fields
City
regionstringShow fields
State (applicable for certain countries)
postalCodestringPostal/zip code
accountTypestringShow fields
Type of the bank account, required for certain countries
documentIdstringShow fields
Document ID of the bank account. Required for certain countries, e.g CPF/CNPJ for Brazil
documentTypestringType of
documentId, see the Document Type table. Required for certain countriesholderDateOfBirthstring · dateDate of birth of the account holder. Required for certain countries
entityTypestringWhether the account holder is an individual or a company. Required for certain countries
Allowed values:
INDIVIDUALCOMPANYifscstringIndian Financial System Code. Used only for India
DestinationCryptoWallet
addressrequired stringPublic address of the crypto wallet
tagstringTag/memo of the crypto address. Required for some currencies (such as XRP) when initiating an external transfer.
DestinationPixAccount
accountNumberstringDomestic bank account number
ispbCodestringDomestic Ispb code
branchCodestringDomestic branch code
holderNamerequired stringName of the account holder
documentIdstringShow fields
Document ID of the bank account. Required for certain countries, e.g CPF/CNPJ for Brazil
pixKeystringShow fields
PIX key of the account. Can be used for PIX transfer.
DestinationInteracAccount
holderNamerequired stringName of the account holder
emailrequired string · emailShow fields
Email of the customer
phonerequired stringShow fields
Phone number with dial prefix
addressrequired stringShow fields
Address line 1
cityrequired stringShow fields
City
staterequired stringShow fields
State (applicable for certain countries)
postalCoderequired stringPostal/zip code
notificationUrlrequired string · uriHTTPS URL to which transfer status notifications are sent, see Webhooks
providerSpecificDataobjectCountry-specific fields listed under Country specific data, e.g.
transactionPurposefor Pakistan
Responses
201 External transfer created
transactionIdinteger · int64Platform transaction ID
accountIdinteger · int64ID of the currency account for which the transaction is created
merchantIdinteger · int64ID of the Merchant
parentMerchantIdinteger · int64ID of the Parent Merchant
merchantNamestringName of the Merchant
createdTimestring · date-timeWhen the transaction was created, UTC, ISO 8601 with second precision
lastStatusUpdateTimestring · date-timeWhen the transaction last changed status (confirmation time, or creation time if not yet confirmed), UTC
statusstringStatus of the transaction, see Transaction status above
Allowed values:
INITIALPENDINGSCHEDULEDPROCESSEDCANCELLEDFAILEDbalancenumberAccount balance after this transaction
transactionAmountnumberAmount of the transaction in the account currency, rounded to the currency precision
processingAmountnumberAmount in the processing (payment) currency
transactionCurrencystringCurrency of the transaction
processingCurrencystringProcessing (payment) currency
directionstringDirection of the transaction:
DEPOSIT, money going into your account (credit);WITHDRAW, money going out of your account (debit)Allowed values:
DEPOSITWITHDRAWtypestringHuman-readable type of the transaction. May change; use
categoryfor programmatic handlingcategorystringCategory of the transaction, see Transaction categories above. Not a closed list
paymentMethodstringKey of the payment method used for the transaction
requestIdinteger · int64ID of the payment request (if applicable)
payerNamestringName of the payer
payerEmailstringEmail of the payer
counterpartyEmailstringEmail of the counterparty
counterpartyNamestringName of the counterparty
counterpartyBankstringBank name of the counterparty
counterpartyIbanstringIBAN of the counterparty. For checkout payments only returned when full account info is enabled on your account
counterpartyLast4DigitsstringLast 4 digits of the counterparty bank account
foreignTransactionIdstringUnique identifier passed by the merchant for this transaction
referencestringBank reference/other descriptor used for this transaction
parentTransactionIdinteger · int64ID of the transaction's parent
linkedTransactionsarray of LinkedTransactionsApiResponseTransactions linked to this one. Only returned by Search transactions with
include: [LINKED_TRANSACTIONS]Show fields
linkTypestringFEE: the linked transaction is a fee for this one.FEE_FOR: this transaction is a fee for the linked one.REFUND: this is a refund of the linked transaction.REFUNDED_BY: the linked transaction refunds this oneAllowed values:
REFUNDED_BYFEE_FORREFUNDFEEtransactionTransactionApiResponseTransaction affecting your merchant currency account
Show fields
Recursive reference to TransactionApiResponse
destinationCryptoAddressDetailsCryptoAddressDetailsDeposit address details, only for pending crypto checkout payments
Show fields
addressstringThe address of a crypto transaction
tagstringThe address tag of a crypto transaction
currencystringThe currency of a crypto transaction
expectedAmountnumberThe expected amount of a crypto transaction
statusCodeinteger · int64Status code in case of failed transaction
statusMessagestringStatus message in case of failed transaction
userMessagestringLast message shown to the customer. Only returned when enabled on your account
feebooleanSame as
isFee(kept for compatibility)isFeebooleanWhether this transaction is a fee (transaction, service or otherwise)
400 The request is malformed or failed validation
traceIdstringtimestampstringcodeinteger · int32messagestringcausearray of ValidationCauseShow fields
fieldstringcausestringcauseKeystring
401 Missing or invalid API credentials, or invalid request signature
traceIdstringtimestampstringcodeinteger · int32messagestringcausearray of ValidationCauseShow fields
fieldstringcausestringcauseKeystring
409 The request conflicts with the merchant setup or the current state of the resource
traceIdstringtimestampstringcodeinteger · int32messagestringcausearray of ValidationCauseShow fields
fieldstringcausestringcauseKeystring
429 Rate limit exceeded
traceIdstringtimestampstringcodeinteger · int32messagestringcausearray of ValidationCauseShow fields
fieldstringcausestringcauseKeystring
500 Unexpected error
traceIdstringtimestampstringcodeinteger · int32messagestringcausearray of ValidationCauseShow fields
fieldstringcausestringcauseKeystring
Callbacks
Payment notification
POST notificationUrl
Sent to the request's notificationUrl whenever the transaction changes status. Answer with any 2xx status within 20 seconds, otherwise the notification is retried. The body is signed: check X-Signature against the raw body, see Webhooks.
Headers
X-Signaturerequired header · stringSignature of the raw body
X-Signature-Key-Idrequired header · stringKey ID of the Signature Key used
Body
notificationIdrequired integer · int64Identifier of the notification. A resent notification keeps the same
notificationIdforeignTransactionIdstringYour unique identifier, as sent with the request this notification is for
typerequired stringThe kind of transaction this notification is for
Allowed values:
PAYMENTREFUNDPAYOUTEXTERNAL_TRANSFERINTERNAL_TRANSFERrequestIdinteger · int64ID of the request (payment request, refund, payout or transfer) in The Kingdom Bank's system
transactionIdinteger · int64ID of the The Kingdom Bank transaction that affected your account. Different from
requestIdpaymentMethodstringPayment method of the request
timestamprequired stringTime of the event this notification is for, in RFC 3339 format
statusrequired stringStatus of the transaction
PENDING: Pending confirmation from the customer. The payment may or may not be processedSCHEDULED: The customer has instructed the payment but the money has not yet reached our settlement account, so it is not yet added to your balancePROCESSED: Completed. The money has been added to (or deducted from) your account balanceFAILED: Failed, cancelled by the customer or our backoffice, or timed outOVERPAID,UNDERPAID: Deprecated. Use theoverpaidandunderpaidflags insteadAllowed values:
PENDINGSCHEDULEDPROCESSEDFAILEDOVERPAIDUNDERPAIDunderpaidbooleanThe customer completed the payment, but paid less than the requested amount
overpaidbooleanThe customer completed the payment, but paid more than the requested amount
referencestringPayment reference: the reference generated by the system followed by the one sent with the request, separated by a space
requestAmountstringRequested amount, as a decimal string
requestCurrencystringISO 4217 currency code of
requestAmounttransactionAmountstringAmount added to or deducted from your account. Same as
requestAmountunless otherwise agreed with your integration managertransactionCurrencystringISO 4217 currency code of
transactionAmountpaidAmountstringAmount paid to you. May differ from
requestAmountafter rounding or conversionpaidCurrencystringISO 4217 currency code of
paidAmountprocessingAmountstringAmount that was processed. Crypto payments only
processingCurrencystringCurrency of
processingAmount. Crypto payments onlycustomerAmountstringAmount paid by the customer, before conversion
customerCurrencystringCurrency of
customerAmountexternalUserIdstringThe
externalUserIdsent with the requestoriginalTransactionIdinteger · int64ID of the original transaction. Refunds, chargebacks and other events derived from a transaction only
originalForeignTransactionIdstringforeignTransactionIdof the original transaction. Refunds, chargebacks and other events derived from a transaction onlycustomerPaymentNotificationCustomerDetails of the customer's (sender's) account, as obtained from the bank. Payments only
Show fields
bankHolderNamestringName of the account holder
ibanstringbicstringBIC/SWIFT of the bank
bankNamestringcountrystringISO 3166 alpha-3 country code of the account
accountNumberstringDomestic account number
bankCodestringDomestic bank code
branchCodestringDomestic branch code
typestringType of the account
currencystringISO 4217 currency code of the account
last4CharsstringLast 4 characters of the IBAN or account number
userIdstringUnique identifier of the customer
mobileNetworkstringMobile network. Mobile money payments only
errorPaymentNotificationErrorWhy the transaction failed or was cancelled. The money may still arrive, so don't treat it as final for payments with
manualCheckRecommendedShow fields
codestringError code, listed in the Errors guide
messagestring
feesarray of PaymentNotificationFeeFees applied to the transaction
Show fields
feeTypestringType of the fee
amountnumbercurrencystring
isRecurringbooleanThe payment is a recurring payment
isSubsequentbooleanThe payment is a subsequent payment of a recurring plan
recurringPlanIdinteger · int64ID of the recurring plan in The Kingdom Bank's system
onDemandTokenstringThe customer's on-demand token, to use when requesting subsequent on-demand payments
onDemandNotestringReason for the on-demand payment, as shown to the customer in the payment confirmation
manualCheckRecommendedbooleanThe payment failed, but may still have been paid. Check it manually before retrying
Expected response: 200 Any 2xx status acknowledges the notification; the body is ignored
Get requirements for external bank transfer
GET /v1/transfers/external/bank-transfer-requirements
Returns the bank details required for a bank transfer in the given country and currency, in fields. Assemble the destination of the
external transfer from them, using each field's fieldName as the property name.
Requires the X-Api-Key and X-Api-Secret headers.
Parameters
countryCoderequired query · stringcurrencyrequired query · stringaccountIdquery · integersettlementquery · boolean
Responses
200 Bank transfer requirements
fieldsarray of BankFieldMetadataFields the
destinationmust contain for this country and currencyShow fields
countryCodestringcodestringAllowed values:
UNKNOWNCOUNTRY_CODEBANK_CODEBRANCH_CODEACCOUNT_NUMBERACCOUNT_TYPEIBANBIC_SWIFTINTERBANK_ACCOUNT_CODENATIONAL_IDIFSCNATIONAL_ID_TYPENATIONAL_ID_EXPIRYPIX_KEYPAY_IDENTITY_TYPETITLEHOLDER_NAMEEMAILPHONEDATE_OF_BIRTHGENDERHOLDER_STREETHOLDER_CITYHOLDER_REGIONHOLDER_POST_CODEHOLDER_COUNTRYBANK_NAMEBRANCH_NAMEBANK_STREETBANK_CITYBANK_REGIONBANK_POST_CODEregexstringmandatorybooleanminLengthinteger · int32maxLengthinteger · int32digitsOnlybooleanplaceholderstringfieldTypestringfieldNamestringProperty name to use in the external transfer
destinationfieldCategorystringmandatoryForEntityTypestringselectionValuesarray of string
400 The request is malformed or failed validation
traceIdstringtimestampstringcodeinteger · int32messagestringcausearray of ValidationCauseShow fields
fieldstringcausestringcauseKeystring
401 Missing or invalid API credentials, or invalid request signature
traceIdstringtimestampstringcodeinteger · int32messagestringcausearray of ValidationCauseShow fields
fieldstringcausestringcauseKeystring
409 The request conflicts with the merchant setup or the current state of the resource
traceIdstringtimestampstringcodeinteger · int32messagestringcausearray of ValidationCauseShow fields
fieldstringcausestringcauseKeystring
429 Rate limit exceeded
traceIdstringtimestampstringcodeinteger · int32messagestringcausearray of ValidationCauseShow fields
fieldstringcausestringcauseKeystring
500 Unexpected error
traceIdstringtimestampstringcodeinteger · int32messagestringcausearray of ValidationCauseShow fields
fieldstringcausestringcauseKeystring