Get a Link for the User to Pay by Card
Get a ready-made web page link that lets one of your users pay a fixed amount with their card. You show this page inside your own website (inside an iframe). The user enters their card on that page, taps Pay, and we charge the card.
What you need to send
user_id— the user who will pay.amount— the amount to charge, in major units (e.g.12.50).currency— optional ISO currency code; defaults toUSD.card_processing_id— optional; pin the charge to one specific approved card-processing account.
What you get back
payment_intent_id— the recorded payment. It is created straight away in apendingstate and shows up in your payment listings, so you can track or reconcile it. It becomessucceededorfailedonce the user pays.pay_url— the link to load inside an iframe. It can be used once.expires_at— the time the link stops working (about 10 minutes).
How you find out the result
The user sees the outcome on the page itself. Your server is also
notified by a payment_intent.succeeded or payment_intent.failed
webhook carrying the payment_intent_id.
The page also offers the user a “save card for future use” choice; when they accept, the card is stored so they can reuse it later.
The link contains no details about which company processes the card behind the scenes. Treat it as a plain string with no meaning of its own.
Authorizations
The access token received from the authorization server in the OAuth 2.0 flow.
Body
Request body for POST /v1/platform/card/payment-link.
Mints a one-time hosted card-payment page for the end user. The
amount is recorded on the resulting payment record and is the
authoritative figure charged — it is never re-read from the browser.
The end-user who will pay. Must be an end_user belonging to the calling tenant.
Amount to charge, in major units (e.g. 12.50).
x > 0ISO-4217 currency code. Defaults to USD.
3Optional. Pins the charge to a specific approved card-processing merchant account (the id returned by GET /v1/platform/card-processing/users/{user_id}). Omit to use the user's deterministically selected default merchant.
Response
Successful Response
Standard response wrapper for single-object responses and errors.
Generic over the payload type. A route that declares
CommonResponse[SomeModel] gets the real data schema rendered in
OpenAPI/Swagger; a bare CommonResponse leaves data untyped.

