curl --request GET \
--url https://api.parceltracer.com/v1/external/orders/ \
--header 'X-Api-Key: <api-key>'{
"count": 123,
"next": "http://api.example.org/accounts/?page=4",
"previous": "http://api.example.org/accounts/?page=2",
"results": [
[
{
"order_id": "11",
"reference_id": "",
"is_exchange": "false",
"workflow": "STANDARD",
"tracking_link": "https://prod.parceltracer.app/tracking/xxxxx-yyyyyyy",
"is_critical": "false",
"merchant_location": 1,
"cod": [
[
"USD",
"20.00"
]
],
"number_of_packages": 1,
"description": "",
"notes": "",
"return_reason": "",
"delivery_state": "CREATED",
"payment_state": "UNPAID",
"merchant_invoice": "null",
"customer": {
"id": 6635,
"name": "Joe",
"phone_number": "+9613123456",
"secondary_phone_number": "",
"email": "[email protected]"
},
"customer_location": {
"id": 6635,
"area": {
"id": 1,
"name_en": "Aaiyat",
"name_ar": "عيات",
"lat": 34.53534,
"long": 36.19682,
"district": "Akkar",
"maps_link": "http://maps.google.com/maps?q=34.53534,36.19682"
},
"directions": ""
}
},
{
"order_id": "17",
"reference_id": "",
"is_exchange": "false",
"workflow": "STANDARD",
"tracking_link": "https://prod.parceltracer.app/tracking/xxxxx-yyyyyyy",
"is_critical": "false",
"merchant_location": 1,
"cod": [
[
"USD",
"20.00"
]
],
"number_of_packages": 1,
"description": "",
"notes": "",
"return_reason": "",
"delivery_state": "CREATED",
"payment_state": "UNPAID",
"merchant_invoice": "null",
"customer": {
"id": 6635,
"name": "Sara",
"phone_number": "+9613853335",
"secondary_phone_number": "",
"email": ""
},
"customer_location": {
"id": 6635,
"area": {
"id": 2,
"name_en": "El Hamra",
"name_ar": "حمرا",
"lat": 33.89631,
"long": 35.48196,
"district": "Beirut",
"maps_link": "http://maps.google.com/maps?q=33.89631,35.48196"
},
"directions": ""
}
}
]
]
}Retrieve a paginated list of orders.
curl --request GET \
--url https://api.parceltracer.com/v1/external/orders/ \
--header 'X-Api-Key: <api-key>'{
"count": 123,
"next": "http://api.example.org/accounts/?page=4",
"previous": "http://api.example.org/accounts/?page=2",
"results": [
[
{
"order_id": "11",
"reference_id": "",
"is_exchange": "false",
"workflow": "STANDARD",
"tracking_link": "https://prod.parceltracer.app/tracking/xxxxx-yyyyyyy",
"is_critical": "false",
"merchant_location": 1,
"cod": [
[
"USD",
"20.00"
]
],
"number_of_packages": 1,
"description": "",
"notes": "",
"return_reason": "",
"delivery_state": "CREATED",
"payment_state": "UNPAID",
"merchant_invoice": "null",
"customer": {
"id": 6635,
"name": "Joe",
"phone_number": "+9613123456",
"secondary_phone_number": "",
"email": "[email protected]"
},
"customer_location": {
"id": 6635,
"area": {
"id": 1,
"name_en": "Aaiyat",
"name_ar": "عيات",
"lat": 34.53534,
"long": 36.19682,
"district": "Akkar",
"maps_link": "http://maps.google.com/maps?q=34.53534,36.19682"
},
"directions": ""
}
},
{
"order_id": "17",
"reference_id": "",
"is_exchange": "false",
"workflow": "STANDARD",
"tracking_link": "https://prod.parceltracer.app/tracking/xxxxx-yyyyyyy",
"is_critical": "false",
"merchant_location": 1,
"cod": [
[
"USD",
"20.00"
]
],
"number_of_packages": 1,
"description": "",
"notes": "",
"return_reason": "",
"delivery_state": "CREATED",
"payment_state": "UNPAID",
"merchant_invoice": "null",
"customer": {
"id": 6635,
"name": "Sara",
"phone_number": "+9613853335",
"secondary_phone_number": "",
"email": ""
},
"customer_location": {
"id": 6635,
"area": {
"id": 2,
"name_en": "El Hamra",
"name_ar": "حمرا",
"lat": 33.89631,
"long": 35.48196,
"district": "Beirut",
"maps_link": "http://maps.google.com/maps?q=33.89631,35.48196"
},
"directions": ""
}
}
]
]
}A page number within the paginated result set.
Number of results to return per page.
123
Show child attributes
Unique order identifier.
Reference ID of the order, for internal tracking by the shop.
Mark the order as critical for prioritized handling (subject to the delivery company load and availability)
('Require pickup of a return package upon delivery.\n', 'This option is only applicable when workflow is STANDARD')
Order workflow: STANDARD or RETURN.
STANDARD - STANDARDRETURN - RETURNSTANDARD, RETURN ("Unique identifier of the merchant's location.\n", 'This identifier should correspond to one of the pickup locations visible on the pickup locations page on Parcel Tracer.')
Customer location for delivery or pickup.
Show child attributes
A ModelSerializer that takes an additional fields argument that
controls which fields should be displayed.
Show child attributes
200200Zahleh - ZahlehHasbaya - HasbayaBaalbek - BaalbekJezzine - JezzineBaabda - BaabdaJbeil - JbeilZgharta - ZghartaBint Jbeil - Bint JbeilHermel - HermelMarjeyoun - MarjeyounBsharri - BsharriAley - AleyRashaya - RashayaMiniyeh-Danniyeh - Miniyeh-DanniyehTripoli - TripoliTyre - TyreNabatieh - NabatiehChouf - ChoufMaatn - MaatnWestern Beqaa - Western BeqaaAkkar - AkkarSidon - SidonBatroun - BatrounKeserwan - KeserwanKoura - KouraBeirut - BeirutZahleh, Hasbaya, Baalbek, Jezzine, Baabda, Jbeil, Zgharta, Bint Jbeil, Hermel, Marjeyoun, Bsharri, Aley, Rashaya, Miniyeh-Danniyeh, Tripoli, Tyre, Nabatieh, Chouf, Maatn, Western Beqaa, Akkar, Sidon, Batroun, Keserwan, Koura, Beirut 200Total amount to be collected upon delivery (or upon return). Example: [['USD', '123.5']]
2 elements('Number of packages in the order.\n', 'Should be greater than or equal to 1.')
Optional description of the order contents.
Extra notes about the order, visible to delivery company, carriers and customers.
Payment state of the order.
UNPAID - UNPAIDPENDING_PAYMENT_BY_DRIVER - PENDING_PAYMENT_BY_DRIVERPAID_BY_DRIVER - PAID_BY_DRIVERPENDING_PAYMENT_TO_MERCHANT - PENDING_PAYMENT_TO_MERCHANTPAID_TO_MERCHANT - PAID_TO_MERCHANTUNPAID, PENDING_PAYMENT_BY_DRIVER, PAID_BY_DRIVER, PENDING_PAYMENT_TO_MERCHANT, PAID_TO_MERCHANT Total amount charged for the delivery operation. Required only if workflow is STANDARD. Example: [['USD', '123.5']]
2 elementsApplicable if the order is a return. Reason for the return.
"http://api.example.org/accounts/?page=4"
"http://api.example.org/accounts/?page=2"