Get a payout
Authorization
apiKey AuthorizationBearer <token>
A Swichi Gateway payments key.
In: header
Path Parameters
id*string
Response Body
application/json
application/json
curl -X GET "https://example.com/payouts/string"{ "id": "string", "object": "payout", "livemode": true, "amount": 0, "fee": 0, "currency": "TZS", "status": "pending", "destination": { "type": "mobile_money", "hint": "string", "name": "string" }, "reference": "string", "description": "string", "metadata": { "property1": "string", "property2": "string" }, "failure": { "code": "string", "message": "string" }, "release_at": "2019-08-24T14:15:22Z", "created_at": "2019-08-24T14:15:22Z"}Pay out POST
Holds the amount and the fee on your wallet and sends it to mobile money or a bank. It answers `pending`, or `pending_approval` above your approval threshold (Finance approves it), or `in_cooldown` while it waits (a new merchant's payouts wait until the next day; a first large payout to a new destination waits too). Until it is sent it can be cancelled. Needs the `payouts` scope.
Cancel a payout not yet sent POST
Cancels a payout that is `pending_approval` or `in_cooldown`; the money goes back to your wallet.