Update Purchase Order
Changed onOperates on Purchase Orders. In the Zuper client app this module is labeled "Purchase Order" for most companies, and "Material Order" for companies in the roofing industry — the API and data shape are identical either way. Purchase Orders and Work Orders (Service Orders) share the exact same underlying schema and endpoints; they're distinguished only by the purchase_order_type field (PURCHASE_ORDER here) and the /purchase_orders vs /service_orders route prefix. All fields are optional (partial update semantics), but the full purchase_order wrapper object is still expected. Only allowed while the order is in an editable status; some statuses restrict edits to line_items only.
Request
- Base URLhttps://dc-region.zuperpro.com/api
- URLhttps://dc-region.zuperpro.com/api/purchase_orders/{purchase_order_uid}
- AuthAPI key in header x-api-key
Path parameters
Request body
Response
200
Changes
- breaking
request property
/was restricted to a list of enum values - breaking
request property
///was restricted to a list of enum values - breaking
request property
///was restricted to a list of enum values - breaking
the
/request property type changed fromstringtoarray - breaking
the
/request property type changed fromstringtoarray - warning
removed the request property
/ - warning
removed the request property
/// - warning
removed the request property
/// - info
added the new optional request property
/ - info
added the new optional request property
/ - info
added the new optional request property
/ - info
added the new optional request property
/// - info
added the new optional request property
/// - info
added the new optional request property
/// - info
added the new optional request property
/// - info
added the new optional request property
/ - info
added the new optional request property
/ - info
added the new optional request property
/ - info
added the new optional request property
/ - info
added the new optional request property
/ - info
added the new optional request property
/ - info
added the new optional request property
// - info
the
request property default valueITEMwas added - info
added the new
BUNDLEenum value to the request property/// - info
added the new
GROUPenum value to the request property/// - info
added the new
HEADERenum value to the request property/// - info
added the new
ITEMenum value to the request property/// - info
added the new
JOB_ADDRESSenum value to the request property/ - info
added the new
LABORenum value to the request property/// - info
added the new
PARTSenum value to the request property/// - info
added the new
PARTSenum value to the request property/// - info
added the new
PICKUPenum value to the request property/ - info
added the new
PRODUCTenum value to the request property/// - info
added the new
SERVICEenum value to the request property/// - info
added the new
WAREHOUSEenum value to the request property/ - info
added the media type
application/jsonfor the response with the status
- breaking