Show one payment link with allocations
AI agents: read /llms.txt; add .md to any page URL. This page as Markdown: /reference/payment-links/v2-payment-link-show.md. Index of every page and the rules for every call: /llms.txt. Guides and concepts in one file: /llms-full.txt. OpenAPI: /openapi.json.
GET/
A payment link records how payments already received on a sales order are split across its invoices (the web app calls this a payment allocation). It is not a URL or payment page your customer opens to pay, and it moves no money.
Returns the link with total (the sum of its allocations) and allocated_transactions: one row per allocation, with the invoice_id, the payment (transaction_id), the allocated total, the payment's unallocated_amount and state existing.
Path parameters
Your team slug, shown as Team ID next to your API key in Profile.
- Example
your-team
- Example
The payment link's hash id. Hash ids only: a unique key or a document number gives 404.
- Example
IirNDCwiaCVSKx
- Example
Request body
This operation takes no request body.
Response
200Successful response.
Child fields (7)
One row per allocation.
Fields of each item (6)
statestring- Always
"existing"
- Always
idstringThe allocation. Send it in
allocated_transactions[].idto update or delete it.invoice_idstringThe invoice it pays.
totaldecimal pairThe allocated amount (usually 3 decimal places; a finer stored amount comes back with a larger
dp). A decimal pair: the amount isvalue÷ 10^dp({ "value": 1250, "dp": 2 }is 12.50). Readdpevery time: it can differ between fields and records.- See Money and quantities.
transaction_idstringThe payment.
unallocated_amountdecimal pairWhat the payment still has to allocate (usually 3 decimal places; a finer stored amount comes back with a larger
dp). A decimal pair: the amount isvalue÷ 10^dp({ "value": 1250, "dp": 2 }is 12.50). Readdpevery time: it can differ between fields and records.- See Money and quantities.
The payment link.
The sales order.
The sum of its allocations. A decimal pair: the amount is
value÷ 10^dp({ "value": 175000, "dp": 4 }is 17.50). Kept at 4 decimal places;{ "value": 0, "dp": 0 }when the link has no allocations. Readdpevery time.- See Money and quantities.
notestring | null
Errors
401The API key is missing or wrong (
unauthenticated).403You are not allowed to do this.
api_access_not_in_plan: your team's plan doesn't include API access (Pro and above, with an active subscription or trial), so every request answers this until the team upgrades. When your role lacks the permission the operation needs, the body is only{"message": "Insufficient Permission"}. Other refusals use the error envelope, withunauthorizedoruser_is_not_authorized.404Not found.
page_not_found: the team slug is unknown, you are not a member of the team, or an id in the path is not one of this team's.code: null, with a message that starts "No query results for": there is no record with that id.- When
- The link isn't your team's.
- Fix
- Use an id from List the payment links of a sales order.
422The request was refused and changed nothing.
validation_failedlists what to fix inerror.fields; other codes name a business rule, explained inerror.message. A few checks answer with only{"message": "..."}. An operation that calls another service (a payment provider, a carrier, an accounting app) can answerconnect_timeout("Please retry again") when that service does not answer in time: the change may or may not have happened there, so read the record back before you retry.- When
- The order came from Shopify and was deleted there (
shopify_order_deleted_externally). - Fix
- Only local cleanup is allowed on that order.
Related
- GETList the payment links of a sales order
/v2/ api/ store/ {team_slug}/ v2/ sales_order/ {hash_id}/ payment_link - GETGet the starting point for editing a payment link
/v2/ api/ store/ {team_slug}/ v2/ payment_link/ {hash_id}/ get_update_template - PUTUpdate a payment link
/v2/ api/ store/ {team_slug}/ v2/ payment_link/ {hash_id}
