Retrieve a payment link
/payment_links/{link_id}Headers
AuthorizationstringRequiredPath parameters
link_idstringRequiredThe payment link's ID (plink_).
Returns
The payment link.
idstringresourcestringurlstringStays the same for the life of the link.
activebooleanstatusstringnamestring or nulltypestringline_itemsarray of objectsShow 11 child attributesHide child attributes
idstringThe line item (oli_ on orders, csli_ on sessions).
productstring or nullnull for the line made from amount and description.
pricestring or nullprice_versioninteger or nullnamestringquantityintegerunit_amountintegeramount_subtotalintegeramount_taxintegeramount_totalintegershippablebooleanShow 16 more attributesShow fewer attributes
amountinteger or nullcurrencystringThree-letter ISO currency code, in lowercase.
descriptionstring or nullcollectionobjectThe 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
nameobjectShow 1 child attributeHide child attributes
enabledbooleanemailobjectShow 1 child attributeHide child attributes
enabledbooleanphone_numberobjectShow 1 child attributeHide child attributes
enabledbooleanbilling_addressobjectShow 1 child attributeHide child attributes
levelstringshipping_addressobjectAsked 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
enabledbooleanallowed_countriesarray of stringstax_idobjectShow 1 child attributeHide child attributes
enabledbooleanshipping_optionsobjectThe 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 stringsshipping_rate_dataarray of objectsShow 6 child attributesHide child attributes
display_namestringRequiredamountintegerRequiredcurrencystringRequiredThree-letter ISO currency code, in lowercase.
delivery_estimateobjectShow 2 child attributesHide child attributes
minimumobjectShow 2 child attributesHide child attributes
unitstringvalueintegermaximumobjectShow 2 child attributesHide child attributes
unitstringvalueintegertax_behaviorstringexclusive adds tax to the amount, and inclusive includes it.
tax_codestringinvoice_creationobjectShow 1 child attributeHide child attributes
enabledbooleanexpress_methodsobjectWhere Apple Pay, Google Pay and the other express methods show. Both default to true.
Show 2 child attributesHide child attributes
express_rowobjectShow 1 child attributeHide child attributes
enabledbooleanmethod_listobjectShow 1 child attributeHide child attributes
enabledbooleanflowstringone_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).
design_profilestring or nullnull 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_completionobjectrestrictionsobjectcompleted_sessionsintegerPaid sessions so far.
subscription_optionsobject or nullShow 2 child attributesHide child attributes
Option 1objectHow 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
enginestringpay_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.
connectionstringThe connection (subconn_), when you have more than one for the engine.
referencestringYour ID for the subscription, unique in your workspace and environment.
trialobjectShow 5 child attributesHide child attributes
intervalstringinterval_countintegerend_atstringpayment_method_requiredbooleanmissing_payment_methodstringcycle_anchorstringThe first full renewal date.
cancel_atstringexternalobjectThe IDs that already exist at an external engine.
Show 2 child attributesHide child attributes
customerstringsubscriptionstringtax_figuresstringWhen 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.
metadataobjectYour key-value pairs. Up to 50 keys of 40 characters, with string values of up to 500 characters.
Option 2nullmetadataobjectYour key-value pairs. Up to 50 keys of 40 characters, with string values of up to 500 characters.
createdstringtest_modebooleanErrors
401403404