Skip to content
SETSimple Easy Transactions
SET DocsSET Crypto API Suite and SET API referenceCurrent as of 2026-11-21 · wallet release 7d8a79fb
Browse: SET API

SET API · Payment links

Create a payment link

POST/v1/payment_links

Key scope: write · Business accounts · Success: 201

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-Key string
Optional. The same key and body run once; a replay answers with Idempotent-Replayed: true. Kept 24 hours.

Body

amount decimal string
Without an invoice: USD, 0.50 to 999,999.99.
description string
Up to 120 plain characters shown to payers (required without an invoice). Never personal data.
invoice string
An open or short invoice (inv_…). With an invoice, amount and currency may be left out; if given, they must be what is still due and the invoice's currency (409 invoice_amount_mismatch, 409 invoice_currency_mismatch).
card boolean
Invoice links only: false to offer no card. true on an invoice that is not in USD is refused (409 invoice_currency_not_card): card payments are in USD.
expiresAt ISO 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_invalid
  • 400 amount_invalid
  • 400 currency_invalid
  • 400 card_required
  • 400 description_invalid
  • 400 description_required
  • 400 expires_at_invalid
  • 404 invoice_unknown
  • 409 invoice_settled
  • 409 invoice_amount_mismatch
  • 409 invoice_currency_mismatch
  • 409 invoice_currency_not_card
  • 409 set_connect_not_ready
  • 403 payment_links_merchant_only
  • 401 api_key_required
  • 401 api_key_invalid
  • 401 api_key_wrong_mode
  • 401 api_key_expired
  • 403 scope_missing
  • 403 platform_api_paused
  • 429 rate_limited
  • 503 api_disabled

All codes: Errors.