put https://{shopdomain}.myshoplaza.com/openapi/2022-01/procurments//items
This function handles the batch update of procurement items for a specific procurement ID. The key operations include validating and preparing the request, invoking the backend RPC client, and logging the process for debugging or audit purposes.
Response Explanation
Procurement Response Fields
Status Code | Message | Possible Reason | Example Response |
---|---|---|---|
400 | Bad Request | Invalid input format or request structure (e.g., missing required fields or incorrect data types). | invalid |
Unauthorized | The request is missing valid authentication credentials or the credentials provided are invalid. | Unauthorized | |
422 | Invalid Input | One or more of the following conditions apply: - procurement_item_id is invalid, missing or not found.- received_quantity is negative or exceeds pending quantity.- rejected_quantity is negative or exceeds pending quantity. | |
Duplicated procurement item id | API request contains multiple entries with the same procurement_item_id |