Overview
This API method will initiate a settlement of funds, which will always be sent to the last settlement account for that specific currency.
Note:
The first settlement is required to be done through Trustly Back Office as the receiving bank account needs to be registered before a settlement can be processed.
SenderInformation attributes
Request example
Request
{
"method": "MerchantSettlement",
"params": {
"Signature": "K5+hjuMqbsH0Ku ... S16VbzRsw==",
"UUID": "258a2184-2842-b485-25ca-293525152425",
"Data": {
"Amount": "800.00",
"Currency": "EUR",
"MessageID": "771463386074",
"Password": "*",
"Username": "your_username",
"Attributes": null
}
},
"version": "1.1"
}
Response attributes
The result returned is a hash with the following elements:
Response example
Response
{
"result": {
"signature": "K47hjudG6sH0Ku ... S16VbzfG8==",
"uuid": "258a2184-2842-b485-25ca-293525152425",
"method": "MerchantSettlement",
"data": {
"reference": "7653345737",
}
},
"version":"1.1"
}
Error codes
These error codes can be returned for MerchantSettlement calls. To handle errors, see Error handling.
Error number | Error code | Description |
---|---|---|
603 | ERROR_INSUFFICIENT_FUNDS | The amount requested is higher than the balance. Try with a lower amount. |
621 | ERROR_NO_SUITABLE_BANK_ACCOUNT_FOUND | No settlement has been performed before for this specific currency. |