Skip to Content
Docs
Payment links

Retrieve a payment link

GET/payment_links/{link_id}

Headers

AuthorizationstringRequired
HTTP Basic auth: your API key as the password, with an empty username. See Authentication.

Path parameters

Returns

The payment link.

idstring
resourcestring
urlstring

Stays the same for the life of the link.

activeboolean
statusstring

One of active, inactive or sold_out.

namestring or null
typestring

One of fixed or dynamic.

line_itemsarray of objects
Show 11 child attributesHide child attributes
idstring

The line item (oli_ on orders, csli_ on sessions).

productstring or null

null for the line made from amount and description.

pricestring or null
price_versioninteger or null
namestring
quantityinteger
unit_amountinteger
amount_subtotalinteger
amount_taxinteger
amount_totalinteger
shippableboolean
Show 16 more attributesShow fewer attributes
amountinteger or null
currencystring

Three-letter ISO currency code, in lowercase.

descriptionstring or null
collectionobject

The details the checkout asks for. Pay.com adds any a payment method or tax needs, and lists them in collection.added.

Show 6 child attributesHide child attributes
nameobject
Show 1 child attributeHide child attributes
enabledboolean

Default: false

emailobject
Show 1 child attributeHide child attributes
enabledboolean

Default: true

phone_numberobject
Show 1 child attributeHide child attributes
enabledboolean

Default: false

billing_addressobject
Show 1 child attributeHide child attributes
levelstring

One of none, country, postal_code or full.

Default: country

shipping_addressobject

Asked for whenever an item ships, even if you leave this out. Use it to limit countries, or to ask for an address with no shippable items.

Show 2 child attributesHide child attributes
enabledboolean
allowed_countriesarray of strings
tax_idobject
Show 1 child attributeHide child attributes
enabledboolean

Default: false

shipping_optionsobject

The rates to offer. Without it, the checkout offers your active rates for the customer's country and the session's currency.

Show 2 child attributesHide child attributes
shipping_ratesarray of strings
shipping_rate_dataarray of objects
Show 6 child attributesHide child attributes
display_namestringRequired
amountintegerRequired
currencystringRequired

Three-letter ISO currency code, in lowercase.

delivery_estimateobject
Show 2 child attributesHide child attributes
minimumobject
Show 2 child attributesHide child attributes
unitstring

One of business_day, day or week.

valueinteger
maximumobject
Show 2 child attributesHide child attributes
unitstring

One of business_day, day or week.

valueinteger
tax_behaviorstring

exclusive adds tax to the amount, and inclusive includes it.

One of exclusive or inclusive.

tax_codestring
invoice_creationobject
Show 1 child attributeHide child attributes
enabledboolean
express_methodsobject

Where Apple Pay, Google Pay and the other express methods show. Both default to true.

Show 2 child attributesHide child attributes
express_rowobject
Show 1 child attributeHide child attributes
enabledboolean

Default: true

method_listobject
Show 1 child attributeHide child attributes
enabledboolean

Default: true

flowstring

one_page shows everything on one page. steps splits it into Details, Shipping (only when something ships and there's more than one rate) and Payment, with no review step. Details asks for the country when tax needs it, so the total is final before Payment, and billing details sit in Payment. Defaults to the design profile's flow (in the checkout builder: Layout, Flow).

One of one_page or steps.

design_profilestring or null

null goes back to your default profile. A profile must be published and not archived, or the request returns 422 with profile_not_published or profile_archived.

after_completionobject
restrictionsobject
completed_sessionsinteger

Paid sessions so far.

subscription_optionsobject or null
Show 2 child attributesHide child attributes
Option 1object

How a subscription runs. Taken by checkout sessions in subscription mode, payment links and POST /v1/subscriptions, and by nothing on the main API. Your tax figures travel in tax_options, not here.

Show 9 child attributesHide child attributes
enginestring

pay_com, stripe for Stripe Billing, external for your own system or shop plugin, or the engine of one of your connections. Defaults to the price's, then your settings', then pay_com.

connectionstring

The connection (subconn_), when you have more than one for the engine.

referencestring

Your ID for the subscription, unique in your workspace and environment.

trialobject
Show 5 child attributesHide child attributes
intervalstring

One of day, week, month or year.

interval_countinteger
end_atstring
payment_method_requiredboolean

Default: true

missing_payment_methodstring

One of cancel or pause.

Default: cancel

cycle_anchorstring

The first full renewal date.

cancel_atstring
externalobject

The IDs that already exist at an external engine.

Show 2 child attributesHide child attributes
customerstring
subscriptionstring
tax_figuresstring

When you sell with your own tax figures: stored charges each renewal with the figures you sent, per_invoice asks for each renewal's with invoice.drafted.

One of stored or per_invoice.

Default: stored

metadataobject

Your key-value pairs. Up to 50 keys of 40 characters, with string values of up to 500 characters.

Option 2null
metadataobject

Your key-value pairs. Up to 50 keys of 40 characters, with string values of up to 500 characters.

createdstring
test_modeboolean

Errors

401
The API key is missing or wrong.
403
The key's permissions don't allow this route.
404
No such object in this workspace and environment.
Was this page helpful?