put https://{shopdomain}.myshoplaza.com/openapi/2022-01/procurments//items
Requires
write_product
access scope. More access scope
The Batch Update Procurement Items API allows bulk updating of procurement item quantities in a specified procurement. This API is useful for efficiently managing procurement item updates in bulk.This API is especially useful for:
- Updating multiple procurement items' transfer quantities at once.
- Streamlining procurement item management in large datasets.
- Ensuring consistency in procurement records during bulk updates.
Request Parameters
Public Request Parameters
Path Parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
procurement_id | string | Yes | "38245198 5837728044" | The unique identifier of the procurement record. |
Body Parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
items | array | Yes | See below | The array of items to be added to the procurement record. |
items. product_id | string | Yes | "382453603 865993516" | The unique identifier of the product. |
items. variant_id | string | No | "5723299f-2 38a-4491-8b42-a187462e748a" | The unique identifier of the product variant. |
items. transfer_quantity | integer | Yes | 100 | The quantity of the item to be transferred. |
Response Explanation
Public Response Parameters
Success Response
Error Response
Error responses in the API can be represented using two different fields: errors
and error
. Both fields provide details about issues encountered during request processing. Below is an explanation of the fields with their respective examples and descriptions.
Field | Type | Example | Description |
---|---|---|---|
error | Array | "error": "store is not active" | Indicates an error encountered during the process. |
Error Details
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 |