Skip to content

Payment links

Open .md

API reference Invoices and payments

A payment link records how payments 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 a customer opens to pay, and it moves no money.

Learn more: Invoices and payments · Take payments and refunds

7 operations

  • POSTCreate a payment link for a sales order/v2/api/store/{team_slug}/v2/sales_order/{hash_id}/payment_linkA payment link (Allocations in the web app) records which invoices a payment pays: it splits payments received on the order across the order's invoices.
  • GETList the payment links of a sales order/v2/api/store/{team_slug}/v2/sales_order/{hash_id}/payment_linkA payment link (Allocations in the web app) records which invoices a payment pays: it splits payments received on the order across the order's invoices.
  • GETShow one payment link with allocations/v2/api/store/{team_slug}/v2/payment_link/{hash_id}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).
  • GETGet the starting point for editing a payment link/v2/api/store/{team_slug}/v2/payment_link/{hash_id}/get_update_templateReturns what you need to build an Update a payment link body: the link with its allocated_transactions (state existing, each with its allocation id), plus unallocated_transactions: every payment on the order that still has money…
  • GETGet what a new payment link can allocate/v2/api/store/{team_slug}/v2/sales_order/{hash_id}/payment_link/get_create_templateA payment link (Allocations in the web app) records which invoices a payment pays: it splits payments received on the order across the order's invoices.
  • PUTUpdate a payment link/v2/api/store/{team_slug}/v2/payment_link/{hash_id}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).
  • DELETEDelete a payment link/v2/api/store/{team_slug}/v2/payment_link/{hash_id}Deletes a payment link and all its allocations.