Create SEPA payment
Here, you can find one of the examples of how to create a draft payment using the initialise payment API endpoint.
Use case
In this scenario, we will create an outgoing SEPA payment - ACC2SEPA 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-4184
.
"typeCode": "OUR_PARTY",
"accountId": "ID-4184"
Counterparty details.
{
"typeCode": "COUNTERPARTY",
"name": "Robert Receiver",
"accountNumber": {
"value": "EE871275295834652820",
"type": "IBAN"
}
Payment amount and currency.
"money": {
"amount": "25",
"currencyCode": "EUR" }
Payment details.
"details": "Test payment with our party accountId"
The payment also includes payment steering data, such as valueDate and ourFee. Note: the valueDate and ourFee parameters are optional.
"valueDate" : "2024-12-04",
"ourFee": {
"amount": 1.22,
"currencyCode": "EUR"
Sample API call
To initialise the payment, use the following endpoint:
https://payment-api.sandbox.tuumplatform.com/api/v3/payments/initialise
Sample request
The sample request body is as follows:
{
"paymentParties": [
{
"typeCode": "OUR_PARTY",
"accountId": "ID-4184"
},
{
"typeCode": "COUNTERPARTY",
"name": "Robert Receiver",
"accountNumber": {
"value": "EE871275295834652820",
"type": "IBAN"
}
}
],
"money": {
"amount": 25,
"currencyCode": "EUR"
},
"details": "Test payment with our party accountId",
"valueDate" : "2024-12-04",
"ourFee": {
"amount": 1.22,
"currencyCode": "EUR"
}
}
Sample response
Below you will find the response to the sample request:
Result
The draft payment has been created with a paymentId: PAYM-32706
and the statusCode: INSERTED
.
Possible next steps
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.
Last updated
Was this helpful?