In this scenario, we will initialise an outgoing SWIFT (cross border) payment to a counterparty account with an IBAN and some sample data - ACC2SWIFT payment type.
Our party details gives the information about the sender of the payment. In this example, the payment is initialised from the Tuum account ID-1887
.
Counterparty details.
Payment amount.
Payment details.
The payment also includes additional transferable data, such as chargeBearer and endToEndId. Note: the chargeBearer and endToEndId parameters are optional.
To initialise the payment, use the following endpoint:
https://payment-api.sandbox.tuumplatform.com/api/v3/payments/initialise
The sample request body is as follows:
{
"paymentParties": [
{
"typeCode": "OUR_PARTY",
"accountId": "ID-21508"
},
{
"typeCode": "COUNTERPARTY",
"name": "Ben Eficiary",
"accountNumber": {
"value": "EE871275295834652820",
"type": "IBAN"
},
"financialInstitutionId": "PARXEE22XXX",
"address": {
"street1": "First street 123",
"street2": "Second street 321",
"cityCounty": "Some city",
"zip": "06777",
"countryCode": "EE"
}
}
],
"money": {
"amount": 1,
"currencyCode": "DKK"
},
"details": "Test payment",
"endToEndId": "20240103-E000003",
"chargeBearer": "DEBT"
}
curl --location 'https://payment-api.sandbox.tuumplatform.com/api/v3/payments/initialise' \
--header 'x-channel-code: SYSTEM' \
--header 'x-auth-token: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJuYW1lIjoiSm9obiBPZmZpY2VyIiwiZW1wbG95ZWVJZCI6IjEiLCJ0ZW5hbnRDb2RlIjoiTUIiLCJleHBpcnlEVGltZSI6IjIwMjQtMTItMDZUMTM6Mjc6MzUiLCJleHAiOjE3MzM0OTE2NTUsInJvbGVzIjpbIkFETUlOIiwiUE9TVElOR1NfVEVBTSJdfQ.r4Efnh8m_waGXaTRBQDLhLDb2M6no_SRJpZCGPoO6K8' \
--header 'Content-Type: application/json' \
--data '{
"paymentParties": [
{
"typeCode": "OUR_PARTY",
"accountId": "ID-21508"
},
{
"typeCode": "COUNTERPARTY",
"name": "Ben Eficiary",
"accountNumber": {
"value": "EE871275295834652820",
"type": "IBAN"
},
"financialInstitutionId": "PARXEE22XXX",
"address": {
"street1": "First street 123",
"street2": "Second street 321",
"cityCounty": "Some city",
"zip": "06777",
"countryCode": "EE"
}
}
],
"money": {
"amount": 1,
"currencyCode": "DKK"
},
"details": "Test payment",
"endToEndId": "20240103-E000003",
"chargeBearer": "DEBT"
}'
Below you will find the response to the sample request:
The draft payment has been created with a paymentId: PAYM-21846
and the statusCode: INSERTED
.
After creating a draft payment, you have the following options:
Change the draft payment - modify the draft payment.
Cancel the draft payment - discard the draft payment if it is no longer required.
Confirm the draft payment - complete payment to initiate further payment processing.
"typeCode": "OUR_PARTY",
"accountId": "ID-1887"
"typeCode": "COUNTERPARTY",
"name": "Ben Eficiary",
"accountNumber": {
"value": "EE871275295834652820",
"type": "IBAN"
"money": {
"amount": "10",
"currencyCode": "DKK" }
"details": "Lunch payment"
"endToEndId": "20240103-E000003",
"chargeBearer": "DEBT"
Here, you can find one of the examples of how to create a draft payment using the initialise payment API endpoint.