Skip to main content
← All developer updates
improvement

Purchase Order Updates Clear Fields Sent As Null

Check integrations that call supplyUpdatePurchaseOrder and send null for empty fields. A field sent as null now clears its stored value. Before, the request succeeded and the old value stayed. A field you omit keeps its stored value, as before.

This applies to the description, special instructions, incoterms, payment terms, and contact on the order, and to unit cost, MOQ, lead time, HTS code, carton quantity, weight, and volume on existing lines. Send only the fields that changed.

Two related changes. A line without a unit cost no longer raises an error in the order total; the total adds only lines that have a cost. The company in the request now decides which purchase order is found. A purchase order from another company returns “Purchase Order not found,” and a user with several companies must send company context or the request fails with “Company context is required.”