Get Procurement List

Retrieves a list of Procurement objects, representing the associations between products and Procurementions.

🔒

Requires read_inventory access scope. More access scope

The Get Procurement List API allows users to retrieves a paginated list of procurement records with filtering capabilities.

This API is especially useful for:

  1. Tracking inventory replenishment orders
  2. Monitoring supplier deliveries
  3. Managing warehouse receiving processes
  4. Analyzing procurement workflows

Request Parameters

Public Request Parameters

📘

Query Parameters

ParameterTypeRequiredDescriptionExample
cursorstringNoPagination cursor"abc123"
page_sizeint32NoResults per page (1-100)50
idsarray[string]NoFilter by procurement IDs["proc_123","proc_456"]
stateint32NoProcurement state filter. Accepted values: 1 (waiting for stock), 2 (partial receipt), 3 (complete receipt), 4 (cancelled).2
created_at_minstringNoFilter records created after (ISO-8601)"2023-01-01T00:00:00Z"
created_at_maxstringNoFilter records created before (ISO-8601)"2023-12-31T23:59:59Z"
updated_at_minstringNoFilter records updated after (ISO-8601)"2023-06-01T00:00:00Z"
updated_at_maxstringNoFilter records updated before (ISO-8601)"2023-06-30T23:59:59Z"

Response Explanation

Public Response Parameters

📘

Successful Response

ParameterTypeExampleDescription
codestring"success"Status code of the API response
messagestring"Order retrieved successfully"Descriptive message about the response
data.procurementsarray[object]-List of procurement objects
data.cursorstring"def456"Pagination token
data.has_morebooleantrueMore results available

Procurement Object

Parameter

Type

Example

Description

id

string

"proc_123"

Unique procurement ID

procurement_sn

string

"PO-2023-001"

Procurement serial number

supplier_id

string

"sup_456"

Supplier reference ID

location_id

string

"wh_789"

Warehouse location ID

note

string

"Urgent order"

Procurement notes

state

int32

2

Current state (1-4)
1 : pending
2 : partial
3 : completed
4 : cancelled

pending_quantity

int32

50

Items awaiting receipt

received_quantity

int32

100

Items successfully received

rejected_quantity

int32

2

Items rejected

transfer_quantity

int32

0

Items in transit

created_by

string

"user_123"

Creator user ID

created_at

string

"2023-06-15T10:30:00Z"

Creation timestamp

updated_at

string

"2023-06-16T09:15:00Z"

Last update timestamp

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!