Set Purchase Order Landed Costs

Replaces the landed costs (freight, customs, etc.) on the purchase order and distributes them across the lines in proportion to line value. Allowed in the same states as setting lines (draft or approved). Landed costs are reflected in each line's landed_cost_price and the PO's total_landed_cost_price; they feed into stock cost on receive but are not part of total.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
integer
required

Purchase order id.

Body Params
costs
array of objects

Each entry: title (string, required, max 255) and total_cost_price (number > 0, required). Send an empty array to clear all landed costs.

costs
Headers
string
required

The merchant install this request acts on (install.store_id from the app.installed webhook).

Response

Language
Credentials
Bearer
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json