Create a payment link
Creates a reusable, shareable payment link.
Request
- Base URL: https://api.agentaos.ai/api/v1
- URL: https://api.agentaos.ai/api/v1/gateway/payment-links
- Auth: API key in header x-api-key
Request body
Amount in currency units, e.g. 49.99.
Defaults to your org's settlement currency. A fiat code is mapped to your org's default settlement token internally; the link stores the resolved token.
Product name, for the catalog-style link surfaces. Separate from description.
HTTPS only.
A subscription link requires billingInterval and settles on the card/bank rail (Merchant of Record); it can't be a crypto-settlement link.
Required when type is subscription, must be omitted for one_time.
Free-trial length in days. Subscription links only. The buyer's card is saved with nothing due today; the first charge happens when the trial ends.
1 for single-use, N for a limited quantity, omitted for unlimited.
Must belong to your organization.
Arbitrary key-value data, returned unchanged on webhooks. Up to 8KB serialized.
CAIP-2 network IDs (e.g. eip155:8453), for crypto-settlement links. Ignored (and taken from your key's configuration instead) if your API key is scoped to specific networks.
Response
Payment link created.
Payment link UUID.
Public ID used in the checkout URL.
Currency units.
Settlement currency or token.
Your custom data.
Successful payments against this link so far.
null means unlimited.
mor (card + bank) or crypto (on-chain). The snake_case column equivalent of the computed sellerMode.
Full URL to share with buyers. Computed, camelCase, no snake_case equivalent.
Changes
No recorded changes to this operation across all 1 revision of this API.