Procurement List

🔒

Requires read_inventory access scope.

The Procurement List API retrieves a paginated list of procurement orders with detailed information. It supports filters based on state, creation time, update time, and specific order IDs.

This API is especially useful for:

  1. Fetching procurement orders for inventory tracking and management.
  2. Filtering procurement data for specific time ranges or statuses.
  3. Integrating procurement information into external inventory systems or applications.

Request Parameters

Public Request Parameters

📘

Public Request Parameters

Query Parameters

FieldTypeDescriptionRequiredExample
statestringStatus of the procurement order.Yes"1"
created_at_minstringFilter procurement orders created at or after a specific date.Yes"2016-01-18T23:41:00Z"
created_at_maxstringFilter procurement orders created at or before a specific date.Yes"2016-01-18T23:41:00Z"
updated_at_minstringFilter procurement orders updated at or after a specific date.Yes"2016-01-18T23:41:00Z"
updated_at_maxstringFilter procurement orders updated at or before a specific date.Yes"2016-01-18T23:41:00Z"
pagestringPage number for paginated results.Yes"1"
limitstringNumber of records per page (limit per page).Yes"10"
idsstringComma-separated list of procurement order IDs to fetch specific records.Yes"3955443440488797681,3955443440488797682"

Response Explanation

Public Response Parameters

📘

Public Response Parameters

Success Response

FieldTypeDescriptionExample
countint32Total number of procurement orders returned in the response.1
procurementsarrayList of procurement order objects.Array of objects
procurements[].idint64The unique identifier of the procurement order.3955443440488797700
procurements[].procurement_snstringSerial number of the procurement order."0000034"
procurements[].source_idint64ID of the source associated with the procurement order.385324614988721200
procurements[].location_idint64Location ID associated with the procurement order.329986727237187850
procurements[].notestringNotes associated with the procurement order.""
procurements[].statestringCurrent state of the procurement order."1"
procurements[].pending_quantityint32Quantity of items pending procurement.0
procurements[].received_quantityint32Quantity of items received.0
procurements[].rejected_quantityint32Quantity of items rejected.0
procurements[].transfer_quantityint32Quantity of items transferred.1
procurements[].created_bystringEmail address of the user who created the procurement order."[email protected]"
procurements[].created_atstringTimestamp indicating when the procurement order was created."2024-06-26T11:52:00Z"
procurements[].updated_atstringTimestamp indicating when the procurement order was last updated."2024-06-26T11:52:00Z"
procurements[].source_typeint32Type of the source related to the procurement order.1
procurements[].procurement_nostringProcurement order number."20240626"
procurements[].supplier_namestringName of the supplier."222222"
procurements[].tracking_numberstringTracking number associated with the procurement order.""
procurements[].estimated_delivery_timestringEstimated delivery time for the procurement.""

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.

FieldTypeExampleDescription
errorString "page not found"Indicates an error encountered during the process

Error Detail

Status CodeMessagePossible ReasonExample Response
400Bad RequestInvalid input format or request structure (e.g., missing required fields or incorrect data types).Bad Request
UnauthorizedThe request is missing valid authentication credentials or the credentials provided are invalid.Unauthorized

API Structure Overview

Language
Credentials
Header
URL
Click Try It! to start a request and see the response here!