Retrieve the list of purchase orders for a center

This API retrieves the list of purchase orders for the specified center during the specified time period.

You must specify appropriate details for the center_id,start_date, and end_date parameters. Optionally, you can provide details for the show_delivery_details,date_criteria, and status parameters.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

Response Details

NameTypeDescription
total_ordersintTotal number of purchase orders that are to be retrieved.
ordersobjectObject that contains the purchase orders-related elements. For more information, refer to the orders Object table.
ErrorobjectObject that contains error message and error code details.

orders Object

NameTypeDescription
order_idguidUnique 32-character identifier of the purchase order.
order_numberstringNumber of the purchase order.
center_namestringName of the center.
centerobjectDetails of the center.
codestringCode of the center.
addressobjectAddress of the center.
address1stringAddress1 of the center.
address2stringAddress2 of the center
citystringCity of the center.
statestringState of the center.
countryclosed_datestringCountry of the center.
zip_codestringZip code of the center.
vendor_namestringName of the vendor.
vendorobjectObject that contains all vendor details-related elements.
codestringCode of the vendor.
addressobjectAddress of the vendor.
address1stringAddress1 of the vendor.
address2stringAddress2 of the vendor.
citystringCity of the vendor.
statestringState of the vendor.
countrystringCountry of the vendor.
cststringCST details of the vendor.
tinDateTimeTIN details of the vendor.
ordered_dateDateTimeOrdered date of the order.
raised_dateDateTimeRaised date of the order.
closed_dateobjectclosed date of the order.
partialsintTotal quantity of the product.
invoice_noDateTimeinvoice details
delivered_dateobjectDelivered date of the order.
line_itemsstringObject that contains items in the order.
product_codestringProduct code.
product_namelistProduct name.
product_barcodesfloatProduct barcodes.
ordered_retail_quantityfloatRetail quantity ordered.
ordered_consumable_quantityfloatConsumable quantity ordered.
ordered_unit_pricestringUnit price ordered.
ordered_tax_group_namefloatOrdered tax group name.
ordered_tax_amountobjectOrdered tax amount.
ordered_tax_breakupstringOrdered tax breakup details.
tax_componentfloatOrdered tax component.
tax_amountfloatOrdered tax amount.
delivered_retail_quantityfloatRetail quantity delivered.
delivered_consumable_quantityfloatConsumable quantity delivered.
delivered_unit_pricefloatUnit price delivered.
delivered_discount_typefloatDelivered discount type.
delivered_discount_valuefloatDelivered discount value.
delivered_tax_group_namestringDelivered tax group name.
delivered_tax_amountfloatDelivered tax amount.
tax_componentstringTax component.
delivered_tax_breakupobjectDelivered tax breakup details.
tax_componentstringDelivery tax component.
tax_amountfloatDelivery tax amount.
notesstringInvoice notes.
discount_valuefloatOrder discount value.
shipping_and_handlingfloatShipping and handling charges.
other_chargesfloatOther charges.
notesstringOrder notes.
Query Params
string
required
Defaults to {center_id}

Mandatory Unique 32-character identifier of the center.

date
required
Defaults to 2022-11-11

Mandatory Format: YYYY-MM-DD Start date beginning from which the required purchase orders are to be retrieved. The type of purchase orders to be retrieved depends on the value of the date_criteria parameter. For example, if you specify start_date as 2020-09-05, end_date as 2020-09-07, and date_criteria as 2, this API will retrieve all the purchase orders that were delivered between Sep 5, 2020 and Sep 7, 2020 (both dates inclusive).

date
required
Defaults to 2022-11-12

Mandatory Format: YYYY-MM-DD Date until which the required purchase orders are to be retrieved. The type of purchase orders to be retrieved depends on the value of the date_criteria parameter. For example, if you specify start_date as 2020-09-05, end_date as 2020-09-07, and date_criteria as 2, this API will retrieve all the purchase orders that were delivered between Sep 5, 2020 and Sep 7, 2020 (both dates inclusive).

boolean
Defaults to false

Optional Indicates whether the delivery details of the purchase orders are to be displayed. Default value is false.

string
enum
Defaults to 4

Optional Indicates the type of purchase orders that are to be fetched. Default value is 4. Values are as follows: 1 - Raised, 2 - Delivered, 3 - Completed and 4 - All (fetch purchase orders across all statuses). Note: Delivered will only contain fully delivered purchase orders. It will not fetch partially delivered purchase orders. Completed will fetch both fully delivered and partially delivered purchase orders.`

Allowed:
string
enum
Defaults to -1

Optional Indicates the status of purchase orders Default value is -1. Values are as follows: 1 - Created, 2 - Raised, and -1 - Any. Note: To retrieve purchase orders in Created/Raised status, use date_criteria=4 with the appropriate status.

Allowed:
Responses

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json