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-Signature header · string
X-Signature-Key-Id header · string

Request body

destinationType required string

Allowed values: BANK_ACCOUNT CRYPTO_WALLET PIX_ACCOUNT INTERAC_ACCOUNT

currency required string

ISO 4217 currency of the intended transfer. Selects the country/currency bank requirements and is used to validate crypto addresses

destination required one of: TransferDestinationBankAccount | DestinationCryptoWallet | DestinationPixAccount | DestinationInteracAccount

Destination account details, different depending on destinationType

Show fields
TransferDestinationBankAccount
country string

Country of the bank account. Required unless iban is specified

Show fields

ISO 3166 alpha-3 code of a country (upper-cased)

iban string

IBAN

accountNumber string

Domestic bank account number

interbankAccountCode string

Used only for some countries like Peru - CCI number

bicSwift string
Show fields

BIC / SWIFT code associated with the bank account. Could be either 8 or 11 symbols

bankCode string

Domestic bank code

branchCode string

Domestic branch code

holderName string

Name of the account holder

holderEmail string

Email of the account holder

holderPhone string

Phone of the account holder

holderAddress Address

Address of the account holder

Show fields
countryCode string
Show fields

ISO 3166 alpha-3 code of a country (upper-cased)

addressLine1 string
Show fields

Address line 1

addressLine2 string
Show fields

Address line 2

city string
Show fields

City

region string
Show fields

State (applicable for certain countries)

postalCode string

Postal/zip code

bankName string

Name of the bank

bankAddress Address

Address of the bank

Show fields
countryCode string
Show fields

ISO 3166 alpha-3 code of a country (upper-cased)

addressLine1 string
Show fields

Address line 1

addressLine2 string
Show fields

Address line 2

city string
Show fields

City

region string
Show fields

State (applicable for certain countries)

postalCode string

Postal/zip code

accountType string
Show fields

Type of the bank account, required for certain countries

documentId string
Show fields

Document ID of the bank account. Required for certain countries, e.g CPF/CNPJ for Brazil

documentType string

Type of documentId, see the Document Type table. Required for certain countries

holderDateOfBirth string · date

Date of birth of the account holder. Required for certain countries

entityType string

Whether the account holder is an individual or a company. Required for certain countries

Allowed values: INDIVIDUAL COMPANY

ifsc string

Indian Financial System Code. Used only for India

DestinationCryptoWallet
address required string

Public address of the crypto wallet

tag string

Tag/memo of the crypto address. Required for some currencies (such as XRP) when initiating an external transfer.

DestinationPixAccount
accountNumber string

Domestic bank account number

ispbCode string

Domestic Ispb code

branchCode string

Domestic branch code

holderName required string

Name of the account holder

documentId string
Show fields

Document ID of the bank account. Required for certain countries, e.g CPF/CNPJ for Brazil

pixKey string
Show fields

PIX key of the account. Can be used for PIX transfer.

DestinationInteracAccount
holderName required string

Name of the account holder

email required string · email
Show fields

Email of the customer

phone required string
Show fields

Phone number with dial prefix

address required string
Show fields

Address line 1

city required string
Show fields

City

state required string
Show fields

State (applicable for certain countries)

postalCode required string

Postal/zip code

Responses

200 Destination validation result
valid boolean
cause array of ValidationCause
Show fields
field string
cause string
causeKey string
400 The request is malformed or failed validation
traceId string
timestamp string
code integer · int32
message string
cause array of ValidationCause
Show fields
field string
cause string
causeKey string
401 Missing or invalid API credentials, or invalid request signature
traceId string
timestamp string
code integer · int32
message string
cause array of ValidationCause
Show fields
field string
cause string
causeKey string
409 The request conflicts with the merchant setup or the current state of the resource
traceId string
timestamp string
code integer · int32
message string
cause array of ValidationCause
Show fields
field string
cause string
causeKey string
429 Rate limit exceeded
traceId string
timestamp string
code integer · int32
message string
cause array of ValidationCause
Show fields
field string
cause string
causeKey string
500 Unexpected error
traceId string
timestamp string
code integer · int32
message string
cause array of ValidationCause
Show fields
field string
cause string
causeKey string

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-Signature header · string
X-Signature-Key-Id header · string

Request body

accountId string

Account from which the funds are sent. Defaults to your primary account in currency

foreignTransactionId required string

Your unique identifier for the transfer. Cannot be reused

amount required string

Amount of the transfer, using a point as decimal separator

currency required string

ISO 4217 currency of the transfer

destinationEmail string

Email of the recipient account. Required if destinationUserId is missing

destinationUserId string

ID of the recipient account. Required if destinationEmail is missing

notificationUrl required string · uri

HTTPS URL to which transfer status notifications are sent, see Webhooks

Responses

201 Internal transfer created
transactionId integer · int64

Platform transaction ID

accountId integer · int64

ID of the currency account for which the transaction is created

merchantId integer · int64

ID of the Merchant

parentMerchantId integer · int64

ID of the Parent Merchant

merchantName string

Name of the Merchant

createdTime string · date-time

When the transaction was created, UTC, ISO 8601 with second precision

lastStatusUpdateTime string · date-time

When the transaction last changed status (confirmation time, or creation time if not yet confirmed), UTC

status string

Status of the transaction, see Transaction status above

Allowed values: INITIAL PENDING SCHEDULED PROCESSED CANCELLED FAILED

balance number

Account balance after this transaction

transactionAmount number

Amount of the transaction in the account currency, rounded to the currency precision

processingAmount number

Amount in the processing (payment) currency

transactionCurrency string

Currency of the transaction

processingCurrency string

Processing (payment) currency

direction string

Direction of the transaction: DEPOSIT, money going into your account (credit); WITHDRAW, money going out of your account (debit)

Allowed values: DEPOSIT WITHDRAW

type string

Human-readable type of the transaction. May change; use category for programmatic handling

category string

Category of the transaction, see Transaction categories above. Not a closed list

paymentMethod string

Key of the payment method used for the transaction

requestId integer · int64

ID of the payment request (if applicable)

payerName string

Name of the payer

payerEmail string

Email of the payer

counterpartyEmail string

Email of the counterparty

counterpartyName string

Name of the counterparty

counterpartyBank string

Bank name of the counterparty

counterpartyIban string

IBAN of the counterparty. For checkout payments only returned when full account info is enabled on your account

counterpartyLast4Digits string

Last 4 digits of the counterparty bank account

foreignTransactionId string

Unique identifier passed by the merchant for this transaction

reference string

Bank reference/other descriptor used for this transaction

parentTransactionId integer · int64

ID of the transaction's parent

linkedTransactions array of LinkedTransactionsApiResponse

Transactions linked to this one. Only returned by Search transactions with include: [LINKED_TRANSACTIONS]

Show fields
linkType string

FEE: 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 one

Allowed values: REFUNDED_BY FEE_FOR REFUND FEE

transaction TransactionApiResponse

Transaction affecting your merchant currency account

Show fields

Recursive reference to TransactionApiResponse

destinationCryptoAddressDetails CryptoAddressDetails

Deposit address details, only for pending crypto checkout payments

Show fields
address string

The address of a crypto transaction

tag string

The address tag of a crypto transaction

currency string

The currency of a crypto transaction

expectedAmount number

The expected amount of a crypto transaction

statusCode integer · int64

Status code in case of failed transaction

statusMessage string

Status message in case of failed transaction

userMessage string

Last message shown to the customer. Only returned when enabled on your account

fee boolean

Same as isFee (kept for compatibility)

isFee boolean

Whether this transaction is a fee (transaction, service or otherwise)

400 The request is malformed or failed validation
traceId string
timestamp string
code integer · int32
message string
cause array of ValidationCause
Show fields
field string
cause string
causeKey string
401 Missing or invalid API credentials, or invalid request signature
traceId string
timestamp string
code integer · int32
message string
cause array of ValidationCause
Show fields
field string
cause string
causeKey string
409 The request conflicts with the merchant setup or the current state of the resource
traceId string
timestamp string
code integer · int32
message string
cause array of ValidationCause
Show fields
field string
cause string
causeKey string
429 Rate limit exceeded
traceId string
timestamp string
code integer · int32
message string
cause array of ValidationCause
Show fields
field string
cause string
causeKey string
500 Unexpected error
traceId string
timestamp string
code integer · int32
message string
cause array of ValidationCause
Show fields
field string
cause string
causeKey string

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-Signature required header · string

Signature of the raw body

X-Signature-Key-Id required header · string

Key ID of the Signature Key used

Body
notificationId required integer · int64

Identifier of the notification. A resent notification keeps the same notificationId

foreignTransactionId string

Your unique identifier, as sent with the request this notification is for

type required string

The kind of transaction this notification is for

Allowed values: PAYMENT REFUND PAYOUT EXTERNAL_TRANSFER INTERNAL_TRANSFER

requestId integer · int64

ID of the request (payment request, refund, payout or transfer) in The Kingdom Bank's system

transactionId integer · int64

ID of the The Kingdom Bank transaction that affected your account. Different from requestId

paymentMethod string

Payment method of the request

timestamp required string

Time of the event this notification is for, in RFC 3339 format

status required string

Status of the transaction PENDING: Pending confirmation from the customer. The payment may or may not be processed SCHEDULED: The customer has instructed the payment but the money has not yet reached our settlement account, so it is not yet added to your balance PROCESSED: Completed. The money has been added to (or deducted from) your account balance FAILED: Failed, cancelled by the customer or our backoffice, or timed out OVERPAID, UNDERPAID: Deprecated. Use the overpaid and underpaid flags instead

Allowed values: PENDING SCHEDULED PROCESSED FAILED OVERPAID UNDERPAID

underpaid boolean

The customer completed the payment, but paid less than the requested amount

overpaid boolean

The customer completed the payment, but paid more than the requested amount

reference string

Payment reference: the reference generated by the system followed by the one sent with the request, separated by a space

requestAmount string

Requested amount, as a decimal string

requestCurrency string

ISO 4217 currency code of requestAmount

transactionAmount string

Amount added to or deducted from your account. Same as requestAmount unless otherwise agreed with your integration manager

transactionCurrency string

ISO 4217 currency code of transactionAmount

paidAmount string

Amount paid to you. May differ from requestAmount after rounding or conversion

paidCurrency string

ISO 4217 currency code of paidAmount

processingAmount string

Amount that was processed. Crypto payments only

processingCurrency string

Currency of processingAmount. Crypto payments only

customerAmount string

Amount paid by the customer, before conversion

customerCurrency string

Currency of customerAmount

externalUserId string

The externalUserId sent with the request

originalTransactionId integer · int64

ID of the original transaction. Refunds, chargebacks and other events derived from a transaction only

originalForeignTransactionId string

foreignTransactionId of the original transaction. Refunds, chargebacks and other events derived from a transaction only

customer PaymentNotificationCustomer

Details of the customer's (sender's) account, as obtained from the bank. Payments only

Show fields
bankHolderName string

Name of the account holder

iban string
bic string

BIC/SWIFT of the bank

bankName string
country string

ISO 3166 alpha-3 country code of the account

accountNumber string

Domestic account number

bankCode string

Domestic bank code

branchCode string

Domestic branch code

type string

Type of the account

currency string

ISO 4217 currency code of the account

last4Chars string

Last 4 characters of the IBAN or account number

userId string

Unique identifier of the customer

mobileNetwork string

Mobile network. Mobile money payments only

error PaymentNotificationError

Why the transaction failed or was cancelled. The money may still arrive, so don't treat it as final for payments with manualCheckRecommended

Show fields
code string

Error code, listed in the Errors guide

message string
fees array of PaymentNotificationFee

Fees applied to the transaction

Show fields
feeType string

Type of the fee

amount number
currency string
isRecurring boolean

The payment is a recurring payment

isSubsequent boolean

The payment is a subsequent payment of a recurring plan

recurringPlanId integer · int64

ID of the recurring plan in The Kingdom Bank's system

onDemandToken string

The customer's on-demand token, to use when requesting subsequent on-demand payments

onDemandNote string

Reason for the on-demand payment, as shown to the customer in the payment confirmation

manualCheckRecommended boolean

The 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

CountryDocument TypeDescription
ArgentinaCUILClave Unica de Identificacion Tributaria
CUITCodigo Unico de Identificacion Laboral
DNIDocumento Nacional de Identidad - National Identity Document
BrazilCPFCadastro de Pessoas Fisicas - Personal tax identification number
CNPJCadastro Nacional da Pessoa Juridica - Business identification number
ChilePassportPassport
RUTRol Unico Tributario - Tax identification number
RUNRol Unico Nacional - Identification number
CECedula de Extranjeria - An identification card for foreign residents living in Chile
PeruPassportPassport
DNIDocumento Nacional de Identidad
RUCRegistro Fnico de Contribuyentes - Tax identification number
CECarne de Extranjeria
PakistanPassportPassport
CNICComputerized National Identity Card
SNICSmart National Identity Card
NTNNational Tax Number
ColombiaPassportPassport
National IDNational Identity Card
Resident IDAn identification card for foreign residents
RUTA tax identification number
TIA national identity card for minors (ages 7-17)
EcuadorCedulaThe national identity card issued to Ecuadorian citizens and legal residents
PassportPassport
RUCThe tax identification number
MexicoINEInstituto Nacional Electoral ID - The official voter ID card
CURPClave Unica de Registro de Poblacion - A unique identity code assigned to all Mexican citizens and residents
RFCRegistro Federal de Contribuyentes - Tax identification number
PassportPassport

Country specific data

Send these fields inside providerSpecificData.

CountryField nameValidation
PakistantransactionPurposeAlphanumeric - Maximum 35 characters

Requires the X-Api-Key and X-Api-Secret headers.

Parameters

X-Signature header · string
X-Signature-Key-Id header · string

Request body

accountId string

Account from which the funds are sent. Defaults to your primary account in currency

foreignTransactionId required string

Your unique identifier for the transfer. Cannot be reused

reference string

Reference shown to the beneficiary where supported

amount required string

Amount of the transfer, using a point as decimal separator

currency required string

ISO 4217 currency of the transfer

destinationType required string

Type of the destination instrument; selects the shape of destination

Allowed values: BANK_ACCOUNT CRYPTO_WALLET PIX_ACCOUNT INTERAC_ACCOUNT

destination required one of: TransferDestinationBankAccount | DestinationCryptoWallet | DestinationPixAccount | DestinationInteracAccount

Destination account details, different depending on destinationType

Show fields
TransferDestinationBankAccount
country string

Country of the bank account. Required unless iban is specified

Show fields

ISO 3166 alpha-3 code of a country (upper-cased)

iban string

IBAN

accountNumber string

Domestic bank account number

interbankAccountCode string

Used only for some countries like Peru - CCI number

bicSwift string
Show fields

BIC / SWIFT code associated with the bank account. Could be either 8 or 11 symbols

bankCode string

Domestic bank code

branchCode string

Domestic branch code

holderName string

Name of the account holder

holderEmail string

Email of the account holder

holderPhone string

Phone of the account holder

holderAddress Address

Address of the account holder

Show fields
countryCode string
Show fields

ISO 3166 alpha-3 code of a country (upper-cased)

addressLine1 string
Show fields

Address line 1

addressLine2 string
Show fields

Address line 2

city string
Show fields

City

region string
Show fields

State (applicable for certain countries)

postalCode string

Postal/zip code

bankName string

Name of the bank

bankAddress Address

Address of the bank

Show fields
countryCode string
Show fields

ISO 3166 alpha-3 code of a country (upper-cased)

addressLine1 string
Show fields

Address line 1

addressLine2 string
Show fields

Address line 2

city string
Show fields

City

region string
Show fields

State (applicable for certain countries)

postalCode string

Postal/zip code

accountType string
Show fields

Type of the bank account, required for certain countries

documentId string
Show fields

Document ID of the bank account. Required for certain countries, e.g CPF/CNPJ for Brazil

documentType string

Type of documentId, see the Document Type table. Required for certain countries

holderDateOfBirth string · date

Date of birth of the account holder. Required for certain countries

entityType string

Whether the account holder is an individual or a company. Required for certain countries

Allowed values: INDIVIDUAL COMPANY

ifsc string

Indian Financial System Code. Used only for India

DestinationCryptoWallet
address required string

Public address of the crypto wallet

tag string

Tag/memo of the crypto address. Required for some currencies (such as XRP) when initiating an external transfer.

DestinationPixAccount
accountNumber string

Domestic bank account number

ispbCode string

Domestic Ispb code

branchCode string

Domestic branch code

holderName required string

Name of the account holder

documentId string
Show fields

Document ID of the bank account. Required for certain countries, e.g CPF/CNPJ for Brazil

pixKey string
Show fields

PIX key of the account. Can be used for PIX transfer.

DestinationInteracAccount
holderName required string

Name of the account holder

email required string · email
Show fields

Email of the customer

phone required string
Show fields

Phone number with dial prefix

address required string
Show fields

Address line 1

city required string
Show fields

City

state required string
Show fields

State (applicable for certain countries)

postalCode required string

Postal/zip code

notificationUrl required string · uri

HTTPS URL to which transfer status notifications are sent, see Webhooks

providerSpecificData object

Country-specific fields listed under Country specific data, e.g. transactionPurpose for Pakistan

Responses

201 External transfer created
transactionId integer · int64

Platform transaction ID

accountId integer · int64

ID of the currency account for which the transaction is created

merchantId integer · int64

ID of the Merchant

parentMerchantId integer · int64

ID of the Parent Merchant

merchantName string

Name of the Merchant

createdTime string · date-time

When the transaction was created, UTC, ISO 8601 with second precision

lastStatusUpdateTime string · date-time

When the transaction last changed status (confirmation time, or creation time if not yet confirmed), UTC

status string

Status of the transaction, see Transaction status above

Allowed values: INITIAL PENDING SCHEDULED PROCESSED CANCELLED FAILED

balance number

Account balance after this transaction

transactionAmount number

Amount of the transaction in the account currency, rounded to the currency precision

processingAmount number

Amount in the processing (payment) currency

transactionCurrency string

Currency of the transaction

processingCurrency string

Processing (payment) currency

direction string

Direction of the transaction: DEPOSIT, money going into your account (credit); WITHDRAW, money going out of your account (debit)

Allowed values: DEPOSIT WITHDRAW

type string

Human-readable type of the transaction. May change; use category for programmatic handling

category string

Category of the transaction, see Transaction categories above. Not a closed list

paymentMethod string

Key of the payment method used for the transaction

requestId integer · int64

ID of the payment request (if applicable)

payerName string

Name of the payer

payerEmail string

Email of the payer

counterpartyEmail string

Email of the counterparty

counterpartyName string

Name of the counterparty

counterpartyBank string

Bank name of the counterparty

counterpartyIban string

IBAN of the counterparty. For checkout payments only returned when full account info is enabled on your account

counterpartyLast4Digits string

Last 4 digits of the counterparty bank account

foreignTransactionId string

Unique identifier passed by the merchant for this transaction

reference string

Bank reference/other descriptor used for this transaction

parentTransactionId integer · int64

ID of the transaction's parent

linkedTransactions array of LinkedTransactionsApiResponse

Transactions linked to this one. Only returned by Search transactions with include: [LINKED_TRANSACTIONS]

Show fields
linkType string

FEE: 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 one

Allowed values: REFUNDED_BY FEE_FOR REFUND FEE

transaction TransactionApiResponse

Transaction affecting your merchant currency account

Show fields

Recursive reference to TransactionApiResponse

destinationCryptoAddressDetails CryptoAddressDetails

Deposit address details, only for pending crypto checkout payments

Show fields
address string

The address of a crypto transaction

tag string

The address tag of a crypto transaction

currency string

The currency of a crypto transaction

expectedAmount number

The expected amount of a crypto transaction

statusCode integer · int64

Status code in case of failed transaction

statusMessage string

Status message in case of failed transaction

userMessage string

Last message shown to the customer. Only returned when enabled on your account

fee boolean

Same as isFee (kept for compatibility)

isFee boolean

Whether this transaction is a fee (transaction, service or otherwise)

400 The request is malformed or failed validation
traceId string
timestamp string
code integer · int32
message string
cause array of ValidationCause
Show fields
field string
cause string
causeKey string
401 Missing or invalid API credentials, or invalid request signature
traceId string
timestamp string
code integer · int32
message string
cause array of ValidationCause
Show fields
field string
cause string
causeKey string
409 The request conflicts with the merchant setup or the current state of the resource
traceId string
timestamp string
code integer · int32
message string
cause array of ValidationCause
Show fields
field string
cause string
causeKey string
429 Rate limit exceeded
traceId string
timestamp string
code integer · int32
message string
cause array of ValidationCause
Show fields
field string
cause string
causeKey string
500 Unexpected error
traceId string
timestamp string
code integer · int32
message string
cause array of ValidationCause
Show fields
field string
cause string
causeKey string

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-Signature required header · string

Signature of the raw body

X-Signature-Key-Id required header · string

Key ID of the Signature Key used

Body
notificationId required integer · int64

Identifier of the notification. A resent notification keeps the same notificationId

foreignTransactionId string

Your unique identifier, as sent with the request this notification is for

type required string

The kind of transaction this notification is for

Allowed values: PAYMENT REFUND PAYOUT EXTERNAL_TRANSFER INTERNAL_TRANSFER

requestId integer · int64

ID of the request (payment request, refund, payout or transfer) in The Kingdom Bank's system

transactionId integer · int64

ID of the The Kingdom Bank transaction that affected your account. Different from requestId

paymentMethod string

Payment method of the request

timestamp required string

Time of the event this notification is for, in RFC 3339 format

status required string

Status of the transaction PENDING: Pending confirmation from the customer. The payment may or may not be processed SCHEDULED: The customer has instructed the payment but the money has not yet reached our settlement account, so it is not yet added to your balance PROCESSED: Completed. The money has been added to (or deducted from) your account balance FAILED: Failed, cancelled by the customer or our backoffice, or timed out OVERPAID, UNDERPAID: Deprecated. Use the overpaid and underpaid flags instead

Allowed values: PENDING SCHEDULED PROCESSED FAILED OVERPAID UNDERPAID

underpaid boolean

The customer completed the payment, but paid less than the requested amount

overpaid boolean

The customer completed the payment, but paid more than the requested amount

reference string

Payment reference: the reference generated by the system followed by the one sent with the request, separated by a space

requestAmount string

Requested amount, as a decimal string

requestCurrency string

ISO 4217 currency code of requestAmount

transactionAmount string

Amount added to or deducted from your account. Same as requestAmount unless otherwise agreed with your integration manager

transactionCurrency string

ISO 4217 currency code of transactionAmount

paidAmount string

Amount paid to you. May differ from requestAmount after rounding or conversion

paidCurrency string

ISO 4217 currency code of paidAmount

processingAmount string

Amount that was processed. Crypto payments only

processingCurrency string

Currency of processingAmount. Crypto payments only

customerAmount string

Amount paid by the customer, before conversion

customerCurrency string

Currency of customerAmount

externalUserId string

The externalUserId sent with the request

originalTransactionId integer · int64

ID of the original transaction. Refunds, chargebacks and other events derived from a transaction only

originalForeignTransactionId string

foreignTransactionId of the original transaction. Refunds, chargebacks and other events derived from a transaction only

customer PaymentNotificationCustomer

Details of the customer's (sender's) account, as obtained from the bank. Payments only

Show fields
bankHolderName string

Name of the account holder

iban string
bic string

BIC/SWIFT of the bank

bankName string
country string

ISO 3166 alpha-3 country code of the account

accountNumber string

Domestic account number

bankCode string

Domestic bank code

branchCode string

Domestic branch code

type string

Type of the account

currency string

ISO 4217 currency code of the account

last4Chars string

Last 4 characters of the IBAN or account number

userId string

Unique identifier of the customer

mobileNetwork string

Mobile network. Mobile money payments only

error PaymentNotificationError

Why the transaction failed or was cancelled. The money may still arrive, so don't treat it as final for payments with manualCheckRecommended

Show fields
code string

Error code, listed in the Errors guide

message string
fees array of PaymentNotificationFee

Fees applied to the transaction

Show fields
feeType string

Type of the fee

amount number
currency string
isRecurring boolean

The payment is a recurring payment

isSubsequent boolean

The payment is a subsequent payment of a recurring plan

recurringPlanId integer · int64

ID of the recurring plan in The Kingdom Bank's system

onDemandToken string

The customer's on-demand token, to use when requesting subsequent on-demand payments

onDemandNote string

Reason for the on-demand payment, as shown to the customer in the payment confirmation

manualCheckRecommended boolean

The 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

countryCode required query · string
currency required query · string
accountId query · integer
settlement query · boolean

Responses

200 Bank transfer requirements
fields array of BankFieldMetadata

Fields the destination must contain for this country and currency

Show fields
countryCode string
code string

Allowed values: UNKNOWN COUNTRY_CODE BANK_CODE BRANCH_CODE ACCOUNT_NUMBER ACCOUNT_TYPE IBAN BIC_SWIFT INTERBANK_ACCOUNT_CODE NATIONAL_ID IFSC NATIONAL_ID_TYPE NATIONAL_ID_EXPIRY PIX_KEY PAY_ID ENTITY_TYPE TITLE HOLDER_NAME EMAIL PHONE DATE_OF_BIRTH GENDER HOLDER_STREET HOLDER_CITY HOLDER_REGION HOLDER_POST_CODE HOLDER_COUNTRY BANK_NAME BRANCH_NAME BANK_STREET BANK_CITY BANK_REGION BANK_POST_CODE

regex string
mandatory boolean
minLength integer · int32
maxLength integer · int32
digitsOnly boolean
placeholder string
fieldType string
fieldName string

Property name to use in the external transfer destination

fieldCategory string
mandatoryForEntityType string
selectionValues array of string
400 The request is malformed or failed validation
traceId string
timestamp string
code integer · int32
message string
cause array of ValidationCause
Show fields
field string
cause string
causeKey string
401 Missing or invalid API credentials, or invalid request signature
traceId string
timestamp string
code integer · int32
message string
cause array of ValidationCause
Show fields
field string
cause string
causeKey string
409 The request conflicts with the merchant setup or the current state of the resource
traceId string
timestamp string
code integer · int32
message string
cause array of ValidationCause
Show fields
field string
cause string
causeKey string
429 Rate limit exceeded
traceId string
timestamp string
code integer · int32
message string
cause array of ValidationCause
Show fields
field string
cause string
causeKey string
500 Unexpected error
traceId string
timestamp string
code integer · int32
message string
cause array of ValidationCause
Show fields
field string
cause string
causeKey string