Skip to main content

Link to Sales Order Line

POST 

/api/amazon/:integrationInstance/awd/ledgers/:awdLedger/link-sales-order-line

Link an AWD departure (a DEPARTED ledger entry whose reference is not an FBA or STAR shipment) to the sales order line it shipped. The line must be routed to an AWD warehouse of the same Amazon integration and carry the same product.

Not yet available to API tokens

This endpoint currently requires session authentication; Personal Access Token scope support is in progress.

Returns 422 when the link is refused: the ledger is not a sales-order departure, it is already linked, the line is not routed to AWD, the products differ, or the line already has units shipped from a stock-deducting warehouse that, together with this departure, exceed the line quantity. In that last case void the other shipment first, then link.

Returns 404 when the AWD ledger entry belongs to a different Amazon account than the one in the URL.

Request​

Responses​

OK

Response Headers
    Content-Type