Batch Update Procurement 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 CodeMessagePossible ReasonExample Response
400Bad RequestInvalid input format or request structure (e.g., missing required fields or incorrect data types).invalid
UnauthorizedThe request is missing valid authentication credentials or the credentials provided are invalid.Unauthorized
422Invalid InputOne 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 idAPI request contains multiple entries with the same procurement_item_id
Language
Credentials
Header
URL
Click Try It! to start a request and see the response here!