Payment links

Create a payment link

Make a shareable page that collects a payment. Send `account` to collect into one of your accounts other than the main one; every charge the link raises, and its webhooks and settlement, name it.

Before you call this endpoint

  • An API key needs the payments:write scope.
  • A link made with a test key is a test link: it collects test money only.
  • Once your business has an IP allowlist, every live key must call from an address on it.
  • Guide: Payment links
POST
/api/b/v1/payment-links

Make a shareable page that collects a payment.

Send account to collect into one of your accounts other than the main one; every charge the link raises, and its webhooks and settlement, name it.

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

A shareable page that collects a payment.

amount_type decides which of the amount fields apply: fixed wants amount_minor and nothing else; open lets the payer choose and takes the optional min_/max_ bounds. Sending a fixed amount alongside bounds is refused rather than silently resolved, because either reading of it would be a guess about what you meant to charge.

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/api/b/v1/payment-links" \  -H "Content-Type: application/json" \  -d '{    "title": "August retainer",    "currency": "RWF"  }'
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "slug": "string",  "title": "string",  "description": "string",  "amount_type": "string",  "amount_minor": 0,  "min_amount_minor": 0,  "max_amount_minor": 0,  "currency": "string",  "usage": "string",  "state": "active",  "redirect_url": "string",  "expires_at": "2019-08-24T14:15:22Z",  "created_at": "2019-08-24T14:15:22Z",  "payments": 0,  "account": "acct_4f1c9a2b7d3e8f6a0b1c2d3e",  "is_test": false}