Checkout links

A hosted Swichi page your customer opens to pay, for a fixed amount or one they choose.

A checkout link is a Swichi page your customer opens to pay. A fixed amount is paid once and opens an order; give min_amount and max_amount instead for the payer to choose.

# A hosted checkout link for one order. Keep the url: it is shown only now.
curl https://gateway.swichi.cc/v1/checkout/links \
  -H "Authorization: Bearer $SWICHI_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: link-order-1043" \
  -d '{"amount": 15000, "description": "Order 1043", "order_reference": "1043", "expires_in_days": 3}'

When a link is paid, Swichi sends a link.paid webhook with the link, the payment's amount and its receipt. Read a link with GET /v1/checkout/links/{id}, and stop it taking payments with POST /v1/checkout/links/{id}/disable.

Next steps

On this page