Fast-payout icon

Approve or cancel payouts

Allow members of your team to approve or cancel payouts before Adyen processes them.

To decrease the risk of unintentional or malicious payouts in your platform, you can trigger additional reviews for payouts. Additional reviews require a member of your team to verify a payout before Adyen processes it. You decide which members of your team are allowed to review transfers by assigning them the required API role in your Customer Area.

To complete the review, the reviewer must either approve or cancel the payout. If the payout is approved, then Adyen continues processing the payout.

Requirements

Before you begin, take into account the following requirements.

Requirement Description
API credential roles Make sure that your web service API key has the following role:
  • TransferService Approval role
Webhooks Subscribe to the following webhook:

How it works

The following diagram shows the approval flow for a transfer when you trigger an additional review.

As shown in the previous diagram, the approval flow is the following:

  1. You trigger an additional review by including the review object in a POST /transfers request.
  2. The payout request is pending approval until a member of your team completes the review.
  3. Depending on the decision of the reviewer, one of the following happens:
    • If the reviewer approves the payout, then the payout is authorized and Adyen continues processing the request.
    • If the reviewer cancels the payout, then the payout fails and Adyen can no longer processes the request.
    • If the reviewer takes no action within 30 days after initiating the payout request, then the payout fails and Adyen can no longer processes the request.

A reviewer can approve or cancel multiple transfers at the same time. The following sections explain how make API requests to approve or cancel transfers.

Approve payouts

To approve initiated payouts, make a POST  /transfers/approve request, specifying the following parameter:

Parameter name Type Required Description
transferIds Body -white_check_mark- An array containing the unique identifiers of the payouts that you decide to approve.

You can include one or multiple transferIds in the request. The following code sample shows how to make a POST /transfers/approve request with two transferIds.

If the request is successful, you receive an HTTP 200 OK response.

Cancel payouts

To cancel an initiated payout, make a POST  /transfers/cancel request, specifying the following parameter:

Parameter name Type Required Description
transferIds Body -white_check_mark- An array containing the unique identifiers of the payouts that you decide to cancel.

You can include one or multiple transferIds in the request. The following code sample shows how to make a POST /transfers/cancel request with two transferIds.

If the request is successful, you receive an HTTP 200 OK response.

Get status updates on transfer reviews

For every payout request, Adyen sends multiple webhooks to your server. Webhooks inform you about any status change in the transfers, including the approval status.

During the approval flow, you receive webhooks for the following events:

  • The transfer is initiated and requires an additional review.
  • The transfer is approved.
  • The transfer is canceled.
  • The transfer expires after 30 days because the review was not completed.

Adyen uses two types of webhooks to inform you about the approval status of a transfer:

The following tabs explain how you can identify updates related to the approval status of a transfer.

See also