Deny payouts made by customers
Overview
Denies a withdrawal prepared by the user. Please contact your integration manager at Trustly if you want to enable automatic approval of the withdrawals.
Request example
{
"method": "DenyWithdrawal",
"params": {
"Signature": "oXVTVGyKZV...3qisvFjydxA==",
"UUID": "0521f840-788a-88ad-86fa-64ef311921f7",
"Data": {
"Username": "*****",
"Password": "*****",
"OrderID": 2755547734,
"Attributes": null
}
},
"version": "1.1"
}
Request parameters
Parameter name | Description | Req | Type | Example |
---|---|---|---|---|
Username | The username. | Yes | Text | Joe |
Password | The password. | Yes | Text | Secret |
OrderID | The OrderID of the withdrawal to deny. | Yes | Int8 | 72673342 |
Attributes | Optional attributes for this method. There are currently no available attributes for this method. | No | Hash |
Response example
{
"result": {
"signature": "U+T3UUQNG...MqMbywrsTQ==",
"method": "DenyWithdrawal",
"data": {
"result": "1",
"orderid": "2755547734"
},
"uuid": "0521f840-788a-88ad-86fa-64ef311921f7"
},
"version": "1.1"
}
Response attributes
The result returned is a hash with the following attributes.
Hash key | Description | Type | Example |
---|---|---|---|
orderid | The OrderID specified when calling the method. | BigInt | 72673342 |
result | 1 if the withdrawal could be denied and 0 otherwise. | Boolean | 1 |
Error codes
These error codes can be returned for DenyWithdrawal calls. To handle errors, see Error handling.
Error number | Error code |
---|---|
602 | ERROR_FUNCTION_ACCESS_DENIED |
607 | ERROR_HOST_ACCESS_DENIED |
616 | ERROR_INVALID_CREDENTIALS |