Skip to main content

Get Stripe Public Pay Page

GET 

/api/public/stripe/pay/:token

Returns what the pay page shows the customer for a Stripe payment link: the merchant, the document, the amount and the payment methods on offer with their totals.

Called by the public pay page, not by an integrator. No bearer token: the payment link token in the URL is the only credential. The request must be sent to the seller's own workspace host (e.g. https://acme.sku.io), because the workspace is identified from the host. Limited to 60 requests per minute.

Response fields

  • status — pending (payable), processing (a bank debit is settling), paid, expired, voided, or unavailable (the seller's Stripe account cannot take payments, or the amount owed changed since the link was sent). status_message explains a non-payable status, or is null.
  • merchant_name — the store name on the document (falls back to the workspace name).
  • document_type — sales_order or quote_deposit; order_number, request_number and quote_number identify the document (null when not applicable).
  • amount (2 decimals) and currency; note — the seller's message.
  • methods — each offered method with method (card or us_bank_account), surcharge and total.
  • show_method_choice — true when the customer must choose a method because the price depends on it (a card surcharge applies).
  • surcharge_percentage / surcharge_disclosure — set only when a card surcharge applies.
  • paid_amount (amount plus surcharge) and paid_at — set once paid; expires_at — when the link stops being payable.

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

Request​

Responses​

OK

Response Headers
    Content-Type