Salla Docs
Merchant API
Partner APIs
Storefront
Salla CLI
Salla Docs
    Light Mode

    List Orders

    GET/orders
    Last modified: a month ago

    This endpoint allows you to list all orders related to your store.

    ::: tip[Tip]
    Also, the endpoint enables you to filter the orders using a set of optional parameters.
    :::

    :::danger[Deprecation Notice]
    All Apps created after 15th of August, 2024 will not be able to use the expanded query parameter.
    :::

    `orders.read` - Orders Read Only

    Request

    Authorization: Bearer Token
    Provide your bearer token in the
    Authorization
    header when making requests to protected resources.
    Example
    Authorization: Bearer 2f68dbbf-519d-4f01-9636-e2421b68f379
    Query Params
    keyword
    enum<string> 
    optional

    Listing the orders by keywords such as tag_name and shipping_number

    Allowed values:
    customer.mobilecustomer.nameshipping_numberreference_idtag_name
    payment_method
    array[string]
    optional

    Find orders for specific payment method. List of available payment methods can be found here

    status
    array[string]
    optional

    Find orders for specific status (array of ID integers). List of statuses can be found here

    from_date
    string <date>
    optional

    Find orders created after a specific date.

    Example:
    2024-01-01
    Match pattern:
    yyyy-mm-dd
    to_date
    string <date>
    optional

    Find orders created before a specific date.

    Example:
    2024-01-02
    Match pattern:
    yyyy-mm-dd
    country
    integer 
    optional

    find orders for specific country. List of countries can be found here

    city
    string 
    optional

    Find orders for specific city. List of cities can be found here

    Example:
    jeddah
    product
    string 
    optional

    Find orders for specific product via its name variable. List of products can be found here

    branch
    array[string]
    optional

    Find orders for specific branch (array of integers). List of branches can be found here

    tags
    array[string]
    optional

    Find orders for specific tags (array of ID integers). List of tags can be found here

    expanded
    boolean 
    deprecated

    Get full details of orders same as order details response by setting the value to true.

    page
    integer 
    optional

    The Pagination page number

    reference_id
    integer 
    optional

    This is the ID that appears to the store owner

    coupon
    string 
    optional

    Discount code, extracted from discount.code

    customer_id
    number 
    optional

    Customer ID

    shipping_app_id
    array[string]
    optional

    Number array of Shipping Application IDs

    source
    array[string]
    optional

    Order Source

    sort_by
    enum<string> 
    optional

    Sort 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.

    Allowed values:
    idtotalupdated_atcreated_at
    accounting_services
    enum<string> 
    optional

    To filter the orders that did not get sent to the accounting services.

    Allowed values:
    qoyoddaftrazoho_books
    unread
    boolean 
    optional

    FInd the unread orders that merchant did not open yet.

    assign_employee
    array[string]
    optional

    Find the orders that are assigned to one or more employees. List of employees can be found here

    selling_channel
    array[string]
    optional

    The order-selling channel which can be one of the allowed enum values

    Allowed values:
    mobilemobile-appdesktopaffiliatemahly-app
    created_by
    integer 
    optional

    Employee ID who created the order(s). List of employees can be found here

    Request samples

    Responses

    Success (200)
    HTTP Code: 200
    Content Type : JSONapplication/json
    Data Schema
    No schema defined
    Example
    {
      "status": 200,
      "success": true,
      "data": [
        {
          "id": 1017120475,
          "reference_id": 40497536,
          "total": {
            "amount": 55,
            "currency": "SAR"
          },
          "exchange_rate": {
            "base_currency": "SAR",
            "exchange_currency": "USD",
            "rate": 0.266592
          },
          "date": {
            "date": "2022-06-16 14:48:20.000000",
            "timezone_type": 3,
            "timezone": "Asia/Riyadh"
          },
          "status": {
            "id": 566146469,
            "name": "بإنتظار المراجعة",
            "slug": "under_review",
            "customized": {
              "id": 986688842,
              "name": "بإنتظار المراجعة"
            }
          },
          "can_cancel": false,
          "can_reorder": true,
          "payment_method": "bank",
          "is_pending_payment": false,
          "pending_payment_ends_at": 0,
          "features": {
            "digitalable": true,
            "shippable": true
          },
          "items": [
            {
              "name": "تي شيرت بلاك",
              "quantity": 1,
              "thumbnail": "https://salla-dev.s3.eu-central-1.amazonaws.com/Mvyk/c151972a-c2d1-4a4d-b374-b46fd0bca79e-500x333.33333333333-WfHaI7WVXTosOlksBhesYbWlxhMFf9fJVDK6JlJj.jpg"
            }
          ]
        },
        {
          "id": 1013578136,
          "reference_id": 40497469,
          "total": {
            "amount": 0,
            "currency": "SAR"
          },
          "date": {
            "date": "2022-06-16 14:46:42.000000",
            "timezone_type": 3,
            "timezone": "Asia/Riyadh"
          },
          "status": {
            "id": 525144736,
            "name": "ملغي",
            "slug": "canceled",
            "customized": {
              "id": 1718741844,
              "name": "ملغي"
            }
          },
          "can_cancel": false,
          "can_reorder": true,
          "is_pending_payment": true,
          "pending_payment_ends_at": 0,
          "items": [
            {
              "name": "Custom Shirt",
              "quantity": 3
            }
          ]
        }
      ],
      "pagination": {
        "count": 2,
        "total": 2,
        "perPage": 15,
        "currentPage": 1,
        "totalPages": 1,
        "links": {}
      }
    }
    Last modified: a month ago