Make a checkout link

A hosted Swichi Checkout page your customer opens to pay by mobile money. A fixed amount is paid once and opens an order; with no amount the payer chooses between the minimum and the maximum, as many times as they like. The `url` is returned only now: keep it. Needs the `collections` scope.

POST
/checkout/links

A hosted Swichi Checkout page your customer opens to pay by mobile money. A fixed amount is paid once and opens an order; with no amount the payer chooses between the minimum and the maximum, as many times as they like. The url is returned only now: keep it. Needs the collections 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/checkout/links" \  -H "Idempotency-Key: string" \  -H "Content-Type: application/json" \  -d '{}'
{  "id": "string",  "object": "checkout_link",  "livemode": true,  "url": "string",  "amount": 0,  "min_amount": 0,  "max_amount": 0,  "currency": "TZS",  "description": "string",  "status": "active",  "uses": 0,  "order_number": 0,  "expires_at": "2019-08-24T14:15:22Z",  "created_at": "2019-08-24T14:15:22Z"}