Skip to main content

Create Stripe Public Pay Page Checkout

POST 

/api/public/stripe/pay/:token/checkout

Starts a Stripe-hosted checkout for the payment method the customer picked and returns its URL; redirect the customer there. The amount and any card surcharge are computed on the server — only the method is accepted.

Called by the public pay page, not by an integrator. No bearer token: the payment link token in the URL is the only credential, and the request must be sent to the seller's own workspace host. Limited to 20 requests per minute.

Request body:

  • method (string, required) — card or us_bank_account; must be one of the link's payment methods.

Returns 422 with status when the link can no longer be paid (paid, processing, expired, voided, or the amount owed changed), or with errors when the method is not accepted. Returns 404 when the token is unknown.

Authentication: none (payment link token in the URL).

Request​

Responses​

OK

Response Headers
    Content-Type