Version: 202506
Batch create procurement items
POST/openapi/2025-06/procurements/:procurement_id/items
Allows the bulk addition of procurement items to a procurement record.
Request
Path Parameters
procurement_id stringrequired
The unique identifier of the procurement record
- application/json
- Body
- Example
Bodyrequired
- Array [
- ]
items object[]required
The array of items to be added to the procurement record
product_idstringrequired
The unique identifier of the product
variant_idstringrequired
The unique identifier of the product variant
transfer_quantityint32required
The quantity of the item to be transferred
{
"items": [
{
"product_id": "string",
"variant_id": "string",
"transfer_quantity": 0
}
]
}
Responses
- 200
OK
- application/json
- Schema
- Example
Schema
- Array [
- ]
codestring
error code
messagestring
error message
data object
fail_items object[]
An array of items that failed to be added, with details of each failure
product_idstring
Product ID
variant_idstring
Variant ID
transfer_quantityint32
Transfer quantity
{
"code": "string",
"message": "string",
"data": {
"fail_items": [
{
"product_id": "string",
"variant_id": "string",
"transfer_quantity": 0
}
]
}
}