Payment Links

Read the payment links created in the dashboard.

Read-only access to the payment links created in the dashboard. The url field is the exact public checkout URL (the merchant’s custom domain when one is active, paysio.com otherwise), and items carries product names and images — enough for an ads or email integration to advertise a link without guessing. Payment links are mode-aware: a test key sees test links, a live key sees live links. Scoped keys need payment_links:read. Creating and editing links stays a dashboard (or CLI) action — there is no write endpoint yet.

Create a payment link

Create a link for products that already exist in the catalogue. There are no ad-hoc prices on purpose: a link is a shop window onto the catalogue, so create the product first and reference it here. The link inherits the CALLER'S mode, so a test-mode app token can only ever produce a sandbox link. Requires the payment_links:write scope.

POSThttps://paysio.com/api/v1/payment-links

Authorizations

Authorizationstringheaderrequired

Secret key (sk_*) or app access token. Prepend your key with Bearer, e.g. Bearer sk_test_your_secret_key.

Body

namestringrequired

Internal name for the link

itemsarrayrequired

Line items: [{ product_id, quantity?, adjustable_quantity? }]. 1-50 items, each product must belong to this workspace.

slugstring

Preferred URL slug. Sanitised, and a numeric suffix is added if taken. Defaults to the name.

collect_shipping_addressboolean

Ask the buyer for a shipping address

success_urlstring

Where to send the buyer after payment

payment_methodsarray

Restrict to specific methods. Omit to use the workspace default.

metadataobject

Arbitrary key-value data stored on the link