Skip to main content
POST
Book a delivery in against an order.

Headers

Prefer
enum<string>

Preference

Available options:
params=single-object

Body

Book a delivery in against an order. A part line that is accepted goes into a store through the inventory ledger, and needs Parts & Stock and a store to go into. An asset line that is accepted puts its assets in the register, one for each unit unless its category is counted by quantity. Give an asset line units, one object per asset with the asset's fields as text keyed by field (custom:<key> for the tenant's own fields), and each asset is created from its row: names are matched the way an import matches them, and an empty cell keeps what the order says. A service or other line is confirmed as received and moves nothing. Pass the dispatch it answers and its paperwork is carried across. The order's receiving draft is deleted with the booking.

p_lines
string<jsonb>
required
p_purchase_order_id
string<uuid>
required
p_carrier
string<text>
p_delivery_note_number
string<text>
p_dispatch_id
string<uuid>
p_notes
string<text>
p_received_at
string<timestamp with time zone>
p_warehouse_id
string<uuid>
p_waybill_number
string<text>

Response

200

OK