List Inbound Shipments for Invoice
GET/api/purchase-invoices/:purchaseInvoice/inbound-shipments
List all inbound shipments linked to this purchase invoice — whether created from it or linked to it afterwards. Each shipment also lists every invoice it is linked to under purchase_invoices, since a consolidated shipment is billed once per purchase order it carries.
purchase-orders:readGrant this scope to your token under Settings → Developer → Personal Access Tokens.
Each row also says how it came to be linked to this invoice:
linked_via—manual(linked by hand),auto(linked by the shipment matcher because its lines matched this invoice's lines unambiguously),created_from_invoice(the shipment was created from this invoice) orbackfill(linked during a data migration)linked_via_label— the same in wordslinked_by— ID of the user who linked it, or null when nobody chose itlinked_at— when the link was made
The response also carries a meta object:
has_lines— whether the invoice has any line itemsis_fully_shipped— whether every invoiced quantity is already covered by a shipmentsuggested_shipment_ids— IDs of shipments on the purchase order that are not linked to this invoice yet but that the shipment matcher ratesexactorpartial(see List Linkable Inbound Shipments for Invoice and Auto-Link Inbound Shipments)auto_link_enabled— the account-levelpurchase_invoice_auto_link_shipmentssetting: when true, anexactmatch is linked automatically as invoices and shipments are saved; when false it is only suggesteddue_date_basis— where the invoice's due date came from, in the same shape as on Get Purchase Invoice; itsneeds_shipment_linkis true when a per-shipment payment term is still waiting for a shipment to be linked
Authentication: Requires Bearer token.
Request
Responses
- 200
- 401
- 403
- 404
- 429
OK
Unauthenticated — the bearer token is missing, revoked, expired, or malformed. Never retry automatically; fix the credential. See the Errors guide.
Forbidden — the token lacks a required scope, the endpoint is not available to API tokens, or the user behind the token lacks the permission. A human must adjust the token scopes or user permissions; do not retry.
Not found — no record with the given identifier (or the route does not exist). Verify the ID before retrying.
Rate limited — platform limit is 1,000 requests/min; individual tokens may carry lower limits. Honor the Retry-After header before retrying. See the Rate Limits guide.