post
https://api.durianpay.id/v1.0/global/payouts//actions
The following endpoint sends an action on a payout to cancel it.
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
Coming soonThe
cancelaction is coming soon.
cancel: send it while the status of the payout isprocessing, before Durianpay sends the payout.- After the cancel, the status of the payout becomes
failedwithCANCELLED. 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