Skip to main content

Documentation

Set Payout Response

Accept or decline a payout to a Rapyd Wallet.

If the beneficiary accepts the payout, this method triggers the Payout Completed Webhook.

If the beneficiary declines the payout, this method triggers the Payout Failed Webhook.

Note

Relevant to payout to a Rapyd wallet. This method can be used only one time per payout.

Prerequisites

  • Create a payout to a Rapyd Wallet. See Create Payout.

  • In the beneficiary object, confirmation_required must be set to true. Do one of the following:

    • In the payout request, include the beneficiary object and set confirmation_required to true.

    • Create a beneficiary and set confirmation_required to true. See Create Beneficiary. Then create the payout.

    • id

    • ID of the payout object in the Create Payout response. String starting with payout_.

    • status

    • Determines how to handle the payout. One of the following values:

      • accept

      • decline

  • /v1/payouts/response

  • Accept

  • curl -X post
    https://sandboxapi.rapyd.net/v1/payouts/response
    -H 'access_key: your-access-key-here'
    -H 'Content-Type: application/json'
    -H 'idempotency: your-idempotency-parameter-here'
    -H 'salt: your-random-string-here'
    -H 'signature: your-calculated-signature-here'
    -H 'timestamp: your-unix-timestamp-here'
    -d '{
        "id": "payout_4362c213f2b5d9b12e5d52cce3a33a43",
        "status": "accept"
    }
    '
    
  • {
        "status": {
            "error_code": "",
            "status": "SUCCESS",
            "message": "",
            "response_code": "",
            "operation_id": "515dcb63-4f3e-4512-a972-f0ea7162104d"
        }
    }
  • Decline

  • curl -X post
    https://sandboxapi.rapyd.net/v1/payouts/response
    -H 'access_key: your-access-key-here'
    -H 'Content-Type: application/json'
    -H 'idempotency: your-idempotency-parameter-here'
    -H 'salt: your-random-string-here'
    -H 'signature: your-calculated-signature-here'
    -H 'timestamp: your-unix-timestamp-here'
    -d '{
        "id": "payout_4362c213f2b5d9b12e5d52cce3a33a43",
        "status": "decline"
    }
    '
    
  • {
        "status": {
            "error_code": "",
            "status": "SUCCESS",
            "message": "",
            "response_code": "",
            "operation_id": "98a43f75-68d0-4b0e-ac0e-4cb6a7b96c59"
        }
    }