Batch Create Procurement Items

Allows the bulk addition of procurement items to a procurement record.

🔒

Requires write_inventory access scope. More access scope

The Batch Update Procurement Items API allows users to add bulk addition of procurement items to a procurement record.

This API is especially useful for:

  1. Bulk importing procurement items from external systems
  2. Quickly setting up new procurement orders with multiple products
  3. Synchronizing procurement data across platforms

Request Parameters

Public Request Parameters

📘

Path Parameters

ParameterTypeRequiredDescriptionExample
procurement_idstringYesUnique identifier of the procurement record"proc_123456789"

Body Parameters

ParameterTypeRequiredDescriptionExample
itemsarray of objectsYesCollection of items to create-
items.product_idstringYesUnique identifier of the product"prod_123456"
items.variant_idstringYesUnique identifier of the product variant"var_789012"
items.transfer_quantityint32YesInitial transfer quantity (must be ≥1)50

Response Explanation

Public Response Parameters

📘

Successful Response

ParameterTypeExampleDescription
codestring"200"HTTP status code
messagestring"Items created successfully"Operation result message
data.created_itemsarray of objects-Successfully added items
data.created_items.procurement_item_idstring"item_987654"New item ID
data.created_items.product_idstring"prod_123456"Product reference
data.created_items.variant_idstring"var_789012"Variant reference
data.created_items.transfer_quantityint3250Initial quantity
data.created_items.created_atstring"2025-06-24T17:00:00Z"Creation timestamp
data.fail_itemsarray of objects-Failed creation attempts
data.fail_items.product_idstring"prod_999999"Failed product ID
data.fail_items.variant_idstring"var_888888"Failed variant ID
data.fail_items.transfer_quantityint320Failed quantity
data.fail_items.errorstring"Invalid product variant"Failure reason

Error Response

FieldTypeExampleDescription
codestringInvalidParameterError http message
messagestring``Error message
Language
Credentials
Header
URL
Click Try It! to start a request and see the response here!