Skip to main content

List Stripe Payment Links

GET 

/api/stripe/payment-links

Lists the Stripe payment links of one sales order or one quote (newest first), together with a meta block describing what a new link on that document may collect.

Required scope: accounting:read

Grant this scope to your token under Settings → Developer → Personal Access Tokens.

Authentication: Requires Bearer token.

Query parameters: send exactly one of sales_order_id or quote_id (422 when neither is sent).

Payment link fields

  • url — the customer-facing pay page on your own SKU.io domain (https://{your-domain}/pay/stripe/{token}). Send this to the customer; it stays valid until the link expires, is paid or is voided.
  • status — pending (payable), processing (a bank debit was started and has not settled), paid, expired (a pending link past expires_at reads expired) or voided.
  • amount — what the link collects, in currency_code. surcharge_preview — the card surcharge a card payment would add today (0 when card is not offered or surcharging is off). surcharge_amount — the surcharge actually charged once paid.
  • payment_methods — card and/or us_bank_account (US bank debit / ACH). checkout_method — the method the customer last chose.
  • payment_id / payment_reference — the recorded payment and its Stripe PaymentIntent id once paid.
  • last_failure_message / last_failed_at — the last failed attempt (e.g. a bank debit that bounced), if any.
  • sales_payment_request — the payment request ({id, number}) a sales-order link collects for; null on a quote link.
  • can_void — true while the link is pending or processing.

meta fields

  • owner_type — sales_order or quote.
  • amount_due — the most a new link may ask for: the order balance less bank debits still settling on its links, or the unpaid quote deposit.
  • open_payment_requests — (sales orders) open payment requests that still have money to collect: id, number, collectible and has_open_link (a request can carry only one open link).
  • deposit — (quotes) amount, paid and due of the quote deposit.
  • blocked_reason — why no link can be created right now (e.g. "Approve the order before collecting payment."), or null.
  • currency_code, stripe_connected, instances (connected Stripe accounts that can take payments: id, name, default_currency), ach_enabled, ach_available (ACH is on and the document is in USD), surcharge (enabled, percentage, label, disclosure) and default_expiry_days.

Returns 404 when the sales order or quote does not exist.

Request​

Responses​

OK

Response Headers
    Content-Type