List Orders

GET https://api.salla.dev/admin/v2/orders?keyword=<string>&payment_method=<array>&status=<array>&from_date=<string>&to_date=<string>&country=<integer>&city=<string>&product=<string>&branch=<array>&tags=<array>&expanded=<boolean>&page=1&reference_id=<integer>&coupon=<string>&customer_id=<number>&shipping_app_id=<array>&source=complete_order

You can list all orders related to your store directly from this endpoint. Also, it allows you to filter them using a different set of optional parameters.

Request Params

KeyDatatypeRequiredDescription
keywordstring<br>- customer.mobile
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
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
citystringFind orders for specific city. List of cities can be found here
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
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.
pagenumberThe 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
sourcestringThe source of the order

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;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;can_cancel&quot;:&quot;\u003cboolean\u003e&quot;,&quot;can_reorder&quot;:&quot;\u003cboolean\u003e&quot;,&quot;is_pending_payment&quot;:&quot;\u003cboolean\u003e&quot;,&quot;status&quot;:{&quot;id&quot;:&quot;\u003cnumber\u003e&quot;,&quot;name&quot;:&quot;\u003cstring\u003e&quot;,&quot;type&quot;:&quot;custom&quot;,&quot;slug&quot;:&quot;\u003cstring\u003e&quot;,&quot;parent&quot;:{&quot;id&quot;:&quot;\u003cnumber\u003e&quot;,&quot;name&quot;:&quot;\u003cstring\u003e&quot;},&quot;original&quot;:{&quot;id&quot;:&quot;\u003cnumber\u003e&quot;,&quot;name&quot;:&quot;\u003cstring\u003e&quot;}},&quot;items&quot;:[{&quot;name&quot;:&quot;\u003cstring\u003e&quot;,&quot;quantity&quot;:&quot;\u003cnumber\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;]}}