Payout Action

The following endpoint sends an action on a payout to cancel it.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
📘

Coming soon

The cancel action is coming soon.

  • cancel: send it while the status of the payout is processing, before Durianpay sends the payout.
  • After the cancel, the status of the payout becomes failed with CANCELLED. See Payout Object.
  • If Durianpay already sent the payout, the API returns CANCEL_NOT_ALLOWED (4040020). Follow the current status of the payout. See Response Code Handling.
  • If a response is lost, you can send the same action again. The API returns the payout. The status does not change again, and Durianpay does not send a second event.

Sequence diagram: cancel

sequenceDiagram
    autonumber
    participant M as Merchant server
    participant API as Global Payout API
    M->>API: POST /v1.0/global/payouts/{referenceNo}/actions type cancel
    alt Durianpay has not sent the payout
        API-->>M: 200 status failed, failure CANCELLED
        Note over M,API: Durianpay returns any debit to your available balance. A repeated cancel is safe.
    else Durianpay sent the payout, or the payout is completed, refunded, or failed for another cause
        API-->>M: 4040020 CANCEL_NOT_ALLOWED
        Note over M: Follow the current status of the payout
    end
Path Params
string
required

The payout referenceNo.

Body Params
string
required

cancel.

Headers
string
required

The request time, RFC 3339 with an offset.

string
required

HMAC-SHA512 of the string to sign, with your client secret as the key, in standard base64.

string
required

Your SNAP client key. It must match the token.

string
required

Required. Use a unique ID for each request. It is not an idempotency key: see Idempotency.

string
required

Required. Any non-empty value is accepted, for example 95221.

Responses

Language
Credentials
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json