Create payment template
A payment template allows you to save the payment information and create templates for regular payments.
Use case
Here we will create a payment template for outgoing SEPA payments with sample data.
Use case data
API parameters with values
The path parameter is the technical ID of the account to which the payment is being made.
".../ID-1002/payment-templates"
Template name
"templateName": "Payment template"
Amount details
"amount": {
"amount": 10,
"currencyCode": "EUR" }
Counterparty details
"paymentTemplateParties": [
{
"typeCode": "COUNTERPARTY",
"name": "Ben",
"surname": "Eficiary",
"personTypeCode": "P",
"accountNumber": {
"value": "EE212227575393349708",
"type": "IBAN"
},
"accountNumberCountryCode": "EE",
"financialInstitutionId": "PARXEE22XXX"
}
]
Sample API call
To create the payment template, use the following endpoint:
https://payment-api.sandbox.tuumplatform.com/api/v2/accounts/ID-1002/payment-templates
Sample request
The sample request body is as follows:
{
"templateName": "Payment template",
"amount": {
"amount": 10,
"currencyCode": "EUR"
},
"paymentTemplateParties": [
{
"typeCode": "COUNTERPARTY",
"name": "Ben",
"surname": "Eficiary",
"personTypeCode": "P",
"accountNumber": {
"value": "EE212227575393349708",
"type": "IBAN"
},
"accountNumberCountryCode": "EE",
"financialInstitutionId": "PARXEE22XXX"
}
]
}
Sample response
Below you will find the response to the sample request:
Result
The payment template is created with a template ID.
Last updated
Was this helpful?