List Orders

GET {{baseUrl}}/orders?keyword=shipping_number&payment_method=<string>&payment_method=<string>&status=<string>&status=<string>&from_date=yyyy-mm-dd&to_date=yyyy-mm-dd&country=<integer>&city=<string>&product=<string>&branch=<string>&branch=<string>&tags=<string>&tags=<string>&expanded=<boolean>&page=<integer>&reference_id=<integer>&coupon=<string>&customer_id=<number>&shipping_app_id=<string>&shipping_app_id=<string>&source=<string>&source=<string>&sort_by=updated_at&accounting_services=zoho_books&unread=<boolean>&assign_employee=<string>&assign_employee=<string>&selling_channel=mahly-app&selling_channel=affiliate&created_by=<integer>

This endpoint allows you to list all orders related to your store directly. In addition, it enables you to filter the orders using a set of optional parameters.

orders.read - Orders Read Only

Request Params

KeyDatatypeRequiredDescription
keywordstringListing the orders by keywords such as tag_name and shipping_number
payment_methodstringFind orders for specific payment method. List of available payment methods can be found here
payment_methodstringFind orders for specific payment method. List of available payment methods can be found here
statusstringFind orders for specific status (array of ID integers). List of statuses can be found here
statusstringFind orders for specific status (array of ID integers). List of statuses can be found here
from_datestringFind orders created after a specific date.
to_datestringFind orders created before a specific date.
countrystringInteger find orders for specific country. List of countries can be found here
citystringURL encoded city name in Arabic.
productstringFind orders for specific product via its name variable. List of products can be found here
branchstringFind orders for specific branch (array of integers). List of branches can be found here
branchstringFind orders for specific branch (array of integers). List of branches can be found here
tagsstringFind orders for specific tags (array of ID integers). List of tags can be found here here
tagsstringFind orders for specific tags (array of ID integers). List of tags can be found here here
expandedstringGet full details of orders same as order details response by setting the value to true.
pagestringThe Pagination page number
reference_idstringThis is the ID that appears to the store owner
couponstringDiscount code, extracted from discount.code
customer_idstringCustomer ID
shipping_app_idstringNumber array of Shipping Application IDs
shipping_app_idstringNumber array of Shipping Application IDs
sourcestringOrder Source
sourcestringOrder Source
sort_bystringSort the retrieved orders based on one attribute from the enum values. For example, if we need to sort the order by the id in ascending or descending order. we will concatenate either asc or desc with one of the enum values; in this case, we will use id-asc or id-desc.
accounting_servicesstringTo filter the orders that did not get sent to the accounting services.
unreadstringFInd the unread orders that merchant did not open yet.
assign_employeestringFind the orders that are assigned to one or more employees. List of employees can be found here
assign_employeestringFind the orders that are assigned to one or more employees. List of employees can be found here
selling_channelstringThe order-selling channel which can be one of the allowed enum values
selling_channelstringThe order-selling channel which can be one of the allowed enum values
created_bystringEmployee ID who created the order(s). List of employees can be found here

HEADERS

KeyDatatypeRequiredDescription
Acceptstring

RESPONSES

status: OK

{&quot;status&quot;:&quot;\u003cnumber\u003e&quot;,&quot;success&quot;:&quot;\u003cboolean\u003e&quot;,&quot;data&quot;:[{&quot;id&quot;:&quot;\u003cnumber\u003e&quot;,&quot;reference_id&quot;:&quot;\u003cnumber\u003e&quot;,&quot;total&quot;:{&quot;amount&quot;:&quot;\u003cnumber\u003e&quot;,&quot;currency&quot;:&quot;\u003cstring\u003e&quot;},&quot;amounts&quot;:{&quot;sub_total&quot;:{&quot;amount&quot;:&quot;\u003cinteger\u003e&quot;,&quot;currency&quot;:&quot;\u003cstring\u003e&quot;},&quot;shipping_cost&quot;:{&quot;amount&quot;:&quot;\u003cinteger\u003e&quot;,&quot;currency&quot;:&quot;\u003cstring\u003e&quot;},&quot;cash_on_delivery&quot;:{&quot;amount&quot;:&quot;\u003cinteger\u003e&quot;,&quot;currency&quot;:&quot;\u003cstring\u003e&quot;},&quot;tax&quot;:{&quot;percent&quot;:&quot;\u003cstring\u003e&quot;,&quot;amount&quot;:{&quot;amount&quot;:&quot;\u003cinteger\u003e&quot;,&quot;currency&quot;:&quot;\u003cstring\u003e&quot;}},&quot;discounts&quot;:[{&quot;title&quot;:&quot;\u003cstring\u003e&quot;,&quot;type&quot;:&quot;\u003cstring\u003e&quot;,&quot;code&quot;:&quot;\u003cstring\u003e&quot;,&quot;discount&quot;:&quot;\u003cstring\u003e&quot;,&quot;discounted_shipping&quot;:&quot;\u003cinteger\u003e&quot;},{&quot;title&quot;:&quot;\u003cstring\u003e&quot;,&quot;type&quot;:&quot;\u003cstring\u003e&quot;,&quot;code&quot;:&quot;\u003cstring\u003e&quot;,&quot;discount&quot;:&quot;\u003cstring\u003e&quot;,&quot;discounted_shipping&quot;:&quot;\u003cinteger\u003e&quot;}],&quot;total&quot;:{&quot;amount&quot;:&quot;\u003cinteger\u003e&quot;,&quot;currency&quot;:&quot;\u003cstring\u003e&quot;}},&quot;exchange_rate&quot;:{&quot;base_currency&quot;:&quot;\u003cstring\u003e&quot;,&quot;exchange_currency&quot;:&quot;\u003cstring\u003e&quot;,&quot;rate&quot;:&quot;\u003cinteger\u003e&quot;},&quot;date&quot;:{&quot;date&quot;:&quot;\u003cdateTime\u003e&quot;,&quot;timezone_type&quot;:&quot;\u003cnumber\u003e&quot;,&quot;timezone&quot;:&quot;\u003cstring\u003e&quot;},&quot;status&quot;:{&quot;id&quot;:&quot;\u003cnumber\u003e&quot;,&quot;name&quot;:&quot;\u003cstring\u003e&quot;,&quot;slug&quot;:&quot;\u003cstring\u003e&quot;,&quot;customized&quot;:{&quot;id&quot;:&quot;\u003cinteger\u003e&quot;,&quot;name&quot;:&quot;\u003cstring\u003e&quot;}},&quot;draft&quot;:&quot;\u003cboolean\u003e&quot;,&quot;read&quot;:&quot;\u003cboolean\u003e&quot;,&quot;can_cancel&quot;:&quot;\u003cboolean\u003e&quot;,&quot;can_reorder&quot;:&quot;\u003cboolean\u003e&quot;,&quot;payment_method&quot;:&quot;\u003cstring\u003e&quot;,&quot;is_pending_payment&quot;:&quot;\u003cboolean\u003e&quot;,&quot;pending_payment_ends_at&quot;:&quot;\u003cstring\u003e&quot;,&quot;items&quot;:[{&quot;name&quot;:&quot;\u003cstring\u003e&quot;,&quot;quantity&quot;:&quot;\u003cnumber\u003e&quot;,&quot;thumbnail&quot;:&quot;\u003cstring\u003e&quot;}],&quot;customer&quot;:{&quot;id&quot;:&quot;\u003cnumber\u003e&quot;,&quot;first_name&quot;:&quot;r\rJDUxlk&quot;,&quot;last_name&quot;:&quot;FKPdGf&quot;,&quot;mobile&quot;:&quot;\u003cnumber\u003e&quot;,&quot;mobile_code&quot;:&quot;\u003cstring\u003e&quot;,&quot;email&quot;:&quot;\u003cstring\u003e&quot;,&quot;urls&quot;:{&quot;customer&quot;:&quot;\u003cstring\u003e&quot;,&quot;admin&quot;:&quot;\u003cstring\u003e&quot;},&quot;avatar&quot;:&quot;\u003cstring\u003e&quot;,&quot;gender&quot;:&quot;\u003cstring\u003e&quot;,&quot;brithday&quot;:{&quot;date&quot;:&quot;\u003cstring\u003e&quot;,&quot;timezone_type&quot;:&quot;\u003cinteger\u003e&quot;,&quot;timezone&quot;:&quot;\u003cstring\u003e&quot;},&quot;city&quot;:&quot;\u003cstring\u003e&quot;,&quot;country&quot;:&quot;\u003cstring\u003e&quot;,&quot;country_code&quot;:&quot;\u003cstring\u003e&quot;,&quot;currency&quot;:&quot;\u003cstring\u003e&quot;,&quot;location&quot;:&quot;\u003cstring\u003e&quot;,&quot;updated_at&quot;:{&quot;date&quot;:&quot;\u003cdateTime\u003e&quot;,&quot;timezone_type&quot;:&quot;\u003cnumber\u003e&quot;,&quot;timezone&quot;:&quot;\u003cstring\u003e&quot;},&quot;groups&quot;:[&quot;\u003cinteger\u003e&quot;,&quot;\u003cinteger\u003e&quot;]}},{&quot;id&quot;:&quot;\u003cnumber\u003e&quot;,&quot;reference_id&quot;:&quot;\u003cnumber\u003e&quot;,&quot;total&quot;:{&quot;amount&quot;:&quot;\u003cnumber\u003e&quot;,&quot;currency&quot;:&quot;\u003cstring\u003e&quot;},&quot;amounts&quot;:{&quot;sub_total&quot;:{&quot;amount&quot;:&quot;\u003cinteger\u003e&quot;,&quot;currency&quot;:&quot;\u003cstring\u003e&quot;},&quot;shipping_cost&quot;:{&quot;amount&quot;:&quot;\u003cinteger\u003e&quot;,&quot;currency&quot;:&quot;\u003cstring\u003e&quot;},&quot;cash_on_delivery&quot;:{&quot;amount&quot;:&quot;\u003cinteger\u003e&quot;,&quot;currency&quot;:&quot;\u003cstring\u003e&quot;},&quot;tax&quot;:{&quot;percent&quot;:&quot;\u003cstring\u003e&quot;,&quot;amount&quot;:{&quot;amount&quot;:&quot;\u003cinteger\u003e&quot;,&quot;currency&quot;:&quot;\u003cstring\u003e&quot;}},&quot;discounts&quot;:[{&quot;title&quot;:&quot;\u003cstring\u003e&quot;,&quot;type&quot;:&quot;\u003cstring\u003e&quot;,&quot;code&quot;:&quot;\u003cstring\u003e&quot;,&quot;discount&quot;:&quot;\u003cstring\u003e&quot;,&quot;discounted_shipping&quot;:&quot;\u003cinteger\u003e&quot;},{&quot;title&quot;:&quot;\u003cstring\u003e&quot;,&quot;type&quot;:&quot;\u003cstring\u003e&quot;,&quot;code&quot;:&quot;\u003cstring\u003e&quot;,&quot;discount&quot;:&quot;\u003cstring\u003e&quot;,&quot;discounted_shipping&quot;:&quot;\u003cinteger\u003e&quot;}],&quot;total&quot;:{&quot;amount&quot;:&quot;\u003cinteger\u003e&quot;,&quot;currency&quot;:&quot;\u003cstring\u003e&quot;}},&quot;exchange_rate&quot;:{&quot;base_currency&quot;:&quot;\u003cstring\u003e&quot;,&quot;exchange_currency&quot;:&quot;\u003cstring\u003e&quot;,&quot;rate&quot;:&quot;\u003cinteger\u003e&quot;},&quot;date&quot;:{&quot;date&quot;:&quot;\u003cdateTime\u003e&quot;,&quot;timezone_type&quot;:&quot;\u003cnumber\u003e&quot;,&quot;timezone&quot;:&quot;\u003cstring\u003e&quot;},&quot;status&quot;:{&quot;id&quot;:&quot;\u003cnumber\u003e&quot;,&quot;name&quot;:&quot;\u003cstring\u003e&quot;,&quot;slug&quot;:&quot;\u003cstring\u003e&quot;,&quot;customized&quot;:{&quot;id&quot;:&quot;\u003cinteger\u003e&quot;,&quot;name&quot;:&quot;\u003cstring\u003e&quot;}},&quot;draft&quot;:&quot;\u003cboolean\u003e&quot;,&quot;read&quot;:&quot;\u003cboolean\u003e&quot;,&quot;can_cancel&quot;:&quot;\u003cboolean\u003e&quot;,&quot;can_reorder&quot;:&quot;\u003cboolean\u003e&quot;,&quot;payment_method&quot;:&quot;\u003cstring\u003e&quot;,&quot;is_pending_payment&quot;:&quot;\u003cboolean\u003e&quot;,&quot;pending_payment_ends_at&quot;:&quot;\u003cstring\u003e&quot;,&quot;items&quot;:[{&quot;name&quot;:&quot;\u003cstring\u003e&quot;,&quot;quantity&quot;:&quot;\u003cnumber\u003e&quot;,&quot;thumbnail&quot;:&quot;\u003cstring\u003e&quot;}],&quot;customer&quot;:{&quot;id&quot;:&quot;\u003cnumber\u003e&quot;,&quot;first_name&quot;:&quot;cyED-qVnmHSy Ibnbyd᠎uEKoF&quot;,&quot;last_name&quot;:&quot;uukPlS ByeWxEMIDfM AkZJld&quot;,&quot;mobile&quot;:&quot;\u003cnumber\u003e&quot;,&quot;mobile_code&quot;:&quot;\u003cstring\u003e&quot;,&quot;email&quot;:&quot;\u003cstring\u003e&quot;,&quot;urls&quot;:{&quot;customer&quot;:&quot;\u003cstring\u003e&quot;,&quot;admin&quot;:&quot;\u003cstring\u003e&quot;},&quot;avatar&quot;:&quot;\u003cstring\u003e&quot;,&quot;gender&quot;:&quot;\u003cstring\u003e&quot;,&quot;brithday&quot;:{&quot;date&quot;:&quot;\u003cstring\u003e&quot;,&quot;timezone_type&quot;:&quot;\u003cinteger\u003e&quot;,&quot;timezone&quot;:&quot;\u003cstring\u003e&quot;},&quot;city&quot;:&quot;\u003cstring\u003e&quot;,&quot;country&quot;:&quot;\u003cstring\u003e&quot;,&quot;country_code&quot;:&quot;\u003cstring\u003e&quot;,&quot;currency&quot;:&quot;\u003cstring\u003e&quot;,&quot;location&quot;:&quot;\u003cstring\u003e&quot;,&quot;updated_at&quot;:{&quot;date&quot;:&quot;\u003cdateTime\u003e&quot;,&quot;timezone_type&quot;:&quot;\u003cnumber\u003e&quot;,&quot;timezone&quot;:&quot;\u003cstring\u003e&quot;},&quot;groups&quot;:[&quot;\u003cinteger\u003e&quot;,&quot;\u003cinteger\u003e&quot;]}}],&quot;pagination&quot;:{&quot;count&quot;:&quot;\u003cnumber\u003e&quot;,&quot;total&quot;:&quot;\u003cnumber\u003e&quot;,&quot;perPage&quot;:&quot;\u003cnumber\u003e&quot;,&quot;currentPage&quot;:&quot;\u003cnumber\u003e&quot;,&quot;totalPages&quot;:&quot;\u003cnumber\u003e&quot;,&quot;links&quot;:[&quot;\u003cstring\u003e&quot;,&quot;\u003cstring\u003e&quot;]}}