logo
Trustly Docs
BETA

ApproveWithdrawal

Approve payouts made by customers
Updated 1 month ago

Approves a withdrawal prepared by the user. Please contact your integration manager at Trustly if you want to enable automatic approval of the withdrawals.


Request
{
    "method": "ApproveWithdrawal",
    "params": {
        "Signature": "MAafmXeZ65J...gW8l2mz9G1w==",
        "UUID": "ca5a90bb-7f34-de7f-6918-6570d154c422",
        "Data": {
            "Username": "*****",
            "Password": "*****",
            "OrderID": 3298150342,
            "Attributes": null
        }
    },
    "version": "1.1"
}

The result returned is a hash with the following attributes.


Response
{
    "result": {
        "signature": "xgvpShhUsEaM...wbwFsVkw==",
        "method": "ApproveWithdrawal",
        "data": {
            "result": "1",
            "orderid": "3298150342"
        },
        "uuid": "ca5a90bb-7f34-de7f-6918-6570d154c422"
    },
    "version": "1.1"
}

These error codes can be returned for ApproveWithdrawal calls. To handle errors, see Error handling.

Error numberError code
602ERROR_FUNCTION_ACCESS_DENIED
607ERROR_HOST_ACCESS_DENIED
616ERROR_INVALID_CREDENTIALS