DenyWithdrawal

Introduction

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 parameters

Parameter nameDescriptionReqTypeExample
UsernameThe username.YesTextJoe
PasswordThe password.YesTextSecret
OrderIDThe OrderID of the withdrawal to deny.YesInt872673342
AttributesOptional attributes for this method. There are currently no available attributes for this method.NoHash

Response

The result returned is a hash with the following elements:

Hash keyDescriptionTypeExample
orderidThe OrderID specified when calling the method.BigInt72673342
result1 if the withdrawal could be denied and 0 otherwise.Boolean1

Code example

{
    "method": "DenyWithdrawal",
    "params": {
        "Signature": "oXVTVGyKZV...3qisvFjydxA==",
        "UUID": "0521f840-788a-88ad-86fa-64ef311921f7",
        "Data": {
            "Username": "*****",
            "Password": "*****",
            "OrderID": 2755547734,
            "Attributes": null
        }
    },
    "version": "1.1"
}
{
    "result": {
        "signature": "U+T3UUQNG...MqMbywrsTQ==",
        "method": "DenyWithdrawal",
        "data": {
            "result": "1",
            "orderid": "2755547734"
        },
        "uuid": "0521f840-788a-88ad-86fa-64ef311921f7"
    },
    "version": "1.1"
}

Error codes

Most common error codes:

Numeric codeText code
602ERROR_FUNCTION_ACCESS_DENIED
607ERROR_HOST_ACCESS_DENIED
616ERROR_INVALID_CREDENTIALS