Purchase Orders
Purchase Orders API.
The purchase orders API and stock transfer API are common.
The URL param document_type is used to determine the type of document.
ordersfor purchase ordersstock-transfersfor stock transfers
A Stock Transfer (ST) is used for moving stock from one warehouse to another.
A Purchase Order (PO) is used for purchasing products from suppliers.
Against each PO/ST,
- You can make changes in relevant data only when PO status is
DRAFTorINCOMING. - You can make 1 or more Receive Notes (GRNs) to receive the goods.
List Orders
List Purchase Orders.
The purchase orders API and stock transfer API are common.
The URL param document_type is used to determine the type of document.
ordersfor purchase ordersstock-transfersfor stock transfers
A Stock Transfer (ST) is used for moving stock from one warehouse to another.
A Purchase Order (PO) is used for purchasing products from suppliers.
Against each PO/ST,
- You can make changes in relevant data only when PO status is
DRAFTorINCOMING. - You can make 1 or more Receive Notes (GRNs) to receive the goods.
path Parameters
document_type^orders|stock-transf… · requiredquery Parameters
confirmation_date_range_afterconfirmation_date_range_beforecontactcreated_range_aftercreated_range_beforeexpected_arrival_date_range_afterexpected_arrival_date_range_beforefrom_warehouseis_task_in_progresslimitNumber of results to return per page.
notesnumberoOrdering
id- Id-id- Id (descending)updated- Updated-updated- Updated (descending)
offsetThe initial index from which to return the results.
orderingWhich field to use when ordering the results.
payment_termsreferenceship_by_time_range_aftership_by_time_range_beforestatusupdated_range_afterupdated_range_beforewarehouseList Orders › Responses
countnextpreviousCreate Order
Create Purchase Order
The purchase orders API and stock transfer API are common.
The URL param document_type is used to determine the type of document.
ordersfor purchase ordersstock-transfersfor stock transfers
A Stock Transfer (ST) is used for moving stock from one warehouse to another.
A Purchase Order (PO) is used for purchasing products from suppliers.
Against each PO/ST,
-
You can make changes in relevant data only when PO status is
DRAFTorINCOMING. -
You can make 1 or more Receive Notes (GRNs) to receive the goods.
-
In stock transfer creation,
from_warehouse_idis required. -
In purchase order creation,
contact_id(Supplier) is required. -
numberis optional. When omitted, the next number in the sequence is assigned. When provided, it must be unique for the document type and the sequence still advances by one.
path Parameters
document_type^orders|stock-transf… · requiredCreate Order › Request Body
warehouse_ididcreatedupdatedis_task_in_progressIs any background task in progress. For example mark as complete task.
action_performedThe action performed on the document which initiated the task.
total_quantityTotal sum of quantities from all associated lines within the document.
total_shipping^-?\d{0,10}(?:\.\d{0… · requiredtotal_tax^-?\d{0,10}(?:\.\d{0… · requiredtotal_amount^-?\d{0,10}(?:\.\d{0… · requiredsubtotal^-?\d{0,10}(?:\.\d{0… · requiredstatuscurrencyconversion_rate^-?\d{0,10}(?:\.\d{0… · requiredbilling_address_idThis serializer makes all fields read-only. It also sets the user's account timezone for the date time fields.
shipping_address_idThis serializer makes all fields read-only. It also sets the user's account timezone for the date time fields.
contact_idRequired to create a purchase order
from_warehouse_idRequired to create a stock transfer
notesextra_charges^-?\d{0,10}(?:\.\d{0…extra_shipping^-?\d{0,10}(?:\.\d{0…confirmation_dateDate the order was confirmed
ship_by_timeDate by which the supplier is expected to ship the goods
expected_arrival_dateDate the goods are expected to arrive at the warehouse
payment_termsreferenceshipping_carriertracking_numbernumberMust be unique per client and document type. Generated automatically when not provided. The automatic number sequence advances even when a number is provided.
Create Order › Responses
warehouse_ididcreatedupdatedis_task_in_progressIs any background task in progress. For example mark as complete task.
action_performedThe action performed on the document which initiated the task.
total_quantityTotal sum of quantities from all associated lines within the document.
total_shipping^-?\d{0,10}(?:\.\d{0… · requiredtotal_tax^-?\d{0,10}(?:\.\d{0… · requiredtotal_amount^-?\d{0,10}(?:\.\d{0… · requiredsubtotal^-?\d{0,10}(?:\.\d{0… · requiredstatuscurrencyconversion_rate^-?\d{0,10}(?:\.\d{0… · requiredbilling_address_idThis serializer makes all fields read-only. It also sets the user's account timezone for the date time fields.
shipping_address_idThis serializer makes all fields read-only. It also sets the user's account timezone for the date time fields.
contact_idRequired to create a purchase order
from_warehouse_idRequired to create a stock transfer
notesextra_charges^-?\d{0,10}(?:\.\d{0…extra_shipping^-?\d{0,10}(?:\.\d{0…confirmation_dateDate the order was confirmed
ship_by_timeDate by which the supplier is expected to ship the goods
expected_arrival_dateDate the goods are expected to arrive at the warehouse
payment_termsreferenceshipping_carriertracking_numbernumberMust be unique per client and document type. Generated automatically when not provided. The automatic number sequence advances even when a number is provided.
Get Order
Get a Purchase Order
The purchase orders API and stock transfer API are common.
The URL param document_type is used to determine the type of document.
ordersfor purchase ordersstock-transfersfor stock transfers
A Stock Transfer (ST) is used for moving stock from one warehouse to another.
A Purchase Order (PO) is used for purchasing products from suppliers.
Against each PO/ST,
- You can make changes in relevant data only when PO status is
DRAFTorINCOMING. - You can make 1 or more Receive Notes (GRNs) to receive the goods.
path Parameters
document_type^orders|stock-transf… · requiredidGet Order › Responses
contact_idwarehouse_idfrom_warehouse_ididcreatedupdatedis_task_in_progressIs any background task in progress. For example mark as complete task.
action_performedThe action performed on the document which initiated the task.
total_quantityTotal sum of quantities from all associated lines within the document.
total_shipping^-?\d{0,10}(?:\.\d{0… · requiredtotal_tax^-?\d{0,10}(?:\.\d{0… · requiredtotal_amount^-?\d{0,10}(?:\.\d{0… · requiredsubtotal^-?\d{0,10}(?:\.\d{0… · requiredstatuscurrencyconversion_rate^-?\d{0,10}(?:\.\d{0… · requiredbilling_address_idThis serializer makes all fields read-only. It also sets the user's account timezone for the date time fields.
shipping_address_idThis serializer makes all fields read-only. It also sets the user's account timezone for the date time fields.
notesextra_charges^-?\d{0,10}(?:\.\d{0…extra_shipping^-?\d{0,10}(?:\.\d{0…confirmation_dateDate the order was confirmed
ship_by_timeDate by which the supplier is expected to ship the goods
expected_arrival_dateDate the goods are expected to arrive at the warehouse
payment_termsreferenceshipping_carriertracking_numbernumberNot editable once the order is closed or cancelled. Must be unique per client and document type.
Update Order
Update Purchase Order
The purchase orders API and stock transfer API are common.
The URL param document_type is used to determine the type of document.
ordersfor purchase ordersstock-transfersfor stock transfers
A Stock Transfer (ST) is used for moving stock from one warehouse to another.
A Purchase Order (PO) is used for purchasing products from suppliers.
Against each PO/ST,
- You can make changes in relevant data only when PO status is
DRAFTorINCOMING. - You can make 1 or more Receive Notes (GRNs) to receive the goods.
path Parameters
document_type^orders|stock-transf… · requiredidUpdate Order › Request Body
contact_idwarehouse_idfrom_warehouse_ididcreatedupdatedis_task_in_progressIs any background task in progress. For example mark as complete task.
action_performedThe action performed on the document which initiated the task.
total_quantityTotal sum of quantities from all associated lines within the document.
total_shipping^-?\d{0,10}(?:\.\d{0… · requiredtotal_tax^-?\d{0,10}(?:\.\d{0… · requiredtotal_amount^-?\d{0,10}(?:\.\d{0… · requiredsubtotal^-?\d{0,10}(?:\.\d{0… · requiredstatuscurrencyconversion_rate^-?\d{0,10}(?:\.\d{0… · requiredbilling_address_idThis serializer makes all fields read-only. It also sets the user's account timezone for the date time fields.
shipping_address_idThis serializer makes all fields read-only. It also sets the user's account timezone for the date time fields.
notesextra_charges^-?\d{0,10}(?:\.\d{0…extra_shipping^-?\d{0,10}(?:\.\d{0…confirmation_dateDate the order was confirmed
ship_by_timeDate by which the supplier is expected to ship the goods
expected_arrival_dateDate the goods are expected to arrive at the warehouse
payment_termsreferenceshipping_carriertracking_numbernumberNot editable once the order is closed or cancelled. Must be unique per client and document type.
Update Order › Responses
contact_idwarehouse_idfrom_warehouse_ididcreatedupdatedis_task_in_progressIs any background task in progress. For example mark as complete task.
action_performedThe action performed on the document which initiated the task.
total_quantityTotal sum of quantities from all associated lines within the document.
total_shipping^-?\d{0,10}(?:\.\d{0… · requiredtotal_tax^-?\d{0,10}(?:\.\d{0… · requiredtotal_amount^-?\d{0,10}(?:\.\d{0… · requiredsubtotal^-?\d{0,10}(?:\.\d{0… · requiredstatuscurrencyconversion_rate^-?\d{0,10}(?:\.\d{0… · requiredbilling_address_idThis serializer makes all fields read-only. It also sets the user's account timezone for the date time fields.
shipping_address_idThis serializer makes all fields read-only. It also sets the user's account timezone for the date time fields.
notesextra_charges^-?\d{0,10}(?:\.\d{0…extra_shipping^-?\d{0,10}(?:\.\d{0…confirmation_dateDate the order was confirmed
ship_by_timeDate by which the supplier is expected to ship the goods
expected_arrival_dateDate the goods are expected to arrive at the warehouse
payment_termsreferenceshipping_carriertracking_numbernumberNot editable once the order is closed or cancelled. Must be unique per client and document type.
Perform Action on Order
Perform action on the purchase order or stock trasnfer.
The URL param document_type is used to determine the type of document.
ordersfor purchase ordersstock-transfersfor stock transfers
The action can have the following values:
mark-incomingMark the PO as incoming.undo-mark-incomingUndo mark incoming.closeMark the PO as closed.undo-closeReopen the PO.cancelCancel the order.receive-all-productsReceive all due products in a PO. This will create a GRN for receiving the products.generate-pdfGenerate a PDF for the PO.
The above actions are async. You will get the task status using the field is_task_in_progress.
path Parameters
actiondocument_type^orders|stock-transf… · requiredidPerform Action on Order › Responses
warehouse_ididcreatedupdatedis_task_in_progressIs any background task in progress. For example mark as complete task.
action_performedThe action performed on the document which initiated the task.
total_quantityTotal sum of quantities from all associated lines within the document.
total_shipping^-?\d{0,10}(?:\.\d{0… · requiredtotal_tax^-?\d{0,10}(?:\.\d{0… · requiredtotal_amount^-?\d{0,10}(?:\.\d{0… · requiredsubtotal^-?\d{0,10}(?:\.\d{0… · requiredstatuscurrencyconversion_rate^-?\d{0,10}(?:\.\d{0… · requiredbilling_address_idThis serializer makes all fields read-only. It also sets the user's account timezone for the date time fields.
shipping_address_idThis serializer makes all fields read-only. It also sets the user's account timezone for the date time fields.
contact_idRequired to create a purchase order
from_warehouse_idRequired to create a stock transfer
notesextra_charges^-?\d{0,10}(?:\.\d{0…extra_shipping^-?\d{0,10}(?:\.\d{0…confirmation_dateDate the order was confirmed
ship_by_timeDate by which the supplier is expected to ship the goods
expected_arrival_dateDate the goods are expected to arrive at the warehouse
payment_termsreferenceshipping_carriertracking_numbernumberMust be unique per client and document type. Generated automatically when not provided. The automatic number sequence advances even when a number is provided.