Payment links
Create a payment link
POST/api/v1/payment-links
A link you can share anywhere, for a fixed amount or an amount the payer chooses. A short address is made from the title unless you give a slug.
Authorization
Bearer sk_test_… or sk_live_…Headers#
Idempotency-KeystringRequiredClient-generated key that makes the request safe to retry. Replaying the key with an identical payload returns the original response; replaying it with a different payload is rejected. Up to 255 characters.
Body parameters#
pricingstringRequiredOne of
fixed,flexible.titlestringRequiredUp to 120 characters.
amount_minorintegerOptionalRequired for fixed pricing. At least 1.
descriptionstringOptionalUp to 1000 characters.
expires_attimestampOptionalmin_amount_minorintegerOptionalThe least a payer may enter. At least 1.
redirect_urlstringOptionalWhere the payer goes after paying. Up to 2000 characters.
slugstringOptionalThe short address. Made from the title when left out. Up to 60 characters.
statusstringOptionalOne of
active,disabled.
Responses#
- 201Payment link created
- 401The secret key is missing, invalid or revoked.
- 403The key is not allowed to do this, or the request came from an address that is not on its allowlist.
- 409The request clashes with the current state, such as a reference reused with different details.
- 422A field is missing or not valid.