Change payment
Use case
In this example, we will review how to change a payment draft. We will update counterparty and payment amount.
We are going to update the PAYM-21826
payment.
...v3/payments/PAYM-21826/change
Payer information. In this example, the payer details remained the same as in the original request.
{
"typeCode": "OUR_PARTY",
"accountNumber": {
"value": "21824474",
"type": "BBAN"
},
"accountNumberCountryCode": "GB",
"financialInstitutionId": "608382"
}
Updated counterparty details. The counterparty name, account information, and financial institution id were updated.
{
"typeCode": "COUNTERPARTY",
"name": "Test Receiver",
"accountNumber": {
"value": "56497232",
"type": "BBAN"
},
"accountNumberCountryCode": "GB",
"financialInstitutionId": "BARCGB22"
}
Updated payment amount.
"money": {
"amount": 20,
"currencyCode": "GBP"
}
Sample API call
To change the payment, use the following endpoint:
https://payment-api.sandbox.tuumplatform.com/api/v3/payments/{paymentId}/change
Sample request
The sample request body is as follows:
{
"paymentParties": [
{
"typeCode": "OUR_PARTY",
"accountNumber": {
"value": "21824474",
"type": "BBAN"
},
"accountNumberCountryCode": "GB",
"financialInstitutionId": "608382",
},
{
"typeCode": "COUNTERPARTY",
"name": "Test Receiver",
"accountNumber": {
"value": "56497232",
"type": "BBAN"
},
"accountNumberCountryCode": "GB",
"financialInstitutionId": "BARCGB22"
}
],
"money": {
"amount": 20,
"currencyCode": "GBP"
}
}
Sample response
Below you will find the response to the sample request:
Result
The payment draft with the paymentId: PAYM-21826
was updated. The payment status remained as INSERTED
.
Possible next steps
After updating a payment draft, you have the following options:
Change the draft payment - modify the draft payment.
Confirm the draft payment - complete payment to initiate further payment processing.
Cancel the draft payment - discard the draft payment if it is no longer required.
Last updated
Was this helpful?