Pay out

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.

POST
/payouts

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.

Authorization

apiKey
AuthorizationBearer <token>

A Swichi Gateway payments key.

In: header

Header Parameters

Idempotency-Key*string

A unique value you keep and send again when you retry (up to 255 characters).

Lengthlength <= 255

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

curl -X POST "https://example.com/payouts" \  -H "Idempotency-Key: string" \  -H "Content-Type: application/json" \  -d '{    "amount": 1,    "currency": "TZS",    "destination": {      "type": "mobile_money"    }  }'
{  "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"}