SET Merchant API · Payment links
Create a payment link
POST/v1/payment_links
A page payers open at url. With {amount, description}: a fixed USD amount paid by card through the merchant's SET Connect account. With {invoice}: the invoice's link, for the amount still due in the invoice's currency, by card when the invoice is in USD and by the invoice's own way to pay (the exact stablecoin amount to its Cash-Out Address, or bank details with the invoice number as reference). One link per invoice: a repeat returns it (200).
Headers
Idempotency-Keystring- Optional. The same key and body run once; a replay answers with
Idempotent-Replayed: true. Kept 24 hours.
Body
amountdecimal string- Without an invoice: USD, 0.50 to 999,999.99.
descriptionstring- Up to 120 plain characters shown to payers (required without an invoice). Never personal data.
invoicestring- An open or short invoice (
inv_…). cardboolean- Invoice links only:
falseto offer no card. expiresAtISO time- A future time after which the page takes no payment.
Notes
- A card payment started from an invoice's link is matched to the invoice when Stripe reports it succeeded (rule
card). A paid, void, expired or deactivated link says so and takes no payment. - Events
payment_link.created,payment_link.deactivated.
Errors
400 body_invalid400 amount_invalid400 currency_invalid400 card_required400 description_invalid400 description_required400 expires_at_invalid400 field_not_used404 invoice_unknown409 invoice_settled409 set_connect_not_ready403 payment_links_merchant_only401 api_key_required401 api_key_invalid401 api_key_wrong_mode403 scope_missing429 rate_limited