Get all Orders (manager)

GET /manager/orders

Query parameters

  • sort string

    example :to sort the orders by id_order (-id_order: descending, id_order: ascending)

    Values are id_order, id_order_external, total_paid, or date_order.

  • filter[id_ambassador] integer

    Filter by id_ambassador in attribution ambassador

  • filter[attribution] string

    Filter assigned orders

    Values are assigned, affiliation_assigned, or conversation_assigned.

  • filter[last_status] string

    Filter by last_status

    Values are OK, OK_DELAY, E-BOOKING, CANCELLED, RETURNED, PENDING, or FULFILLED.

  • filter[type] string

    Filter by order type

    Values are MAG, STORE, WEB, or .

  • filter[id_ambassador_post] integer

    Filter orders by linked ambassador post

  • filter[id_chatroom] integer

    Filter orders by linked chatroom

  • filter[id_buyer] integer

    Filter orders by linked buyer

  • page integer

    page number

  • per_page integer

    number of items per page

Responses

  • 200 application/json

    returns all orders (paginated)

    Hide response attributes Show response attributes object
    • current_page integer(int32)
    • data array[object]

      Additional properties are allowed.

    • first_page_url string
    • from integer(int32)
    • last_page integer(int32)
    • last_page_url string
    • next_page_url string
    • path string
    • per_page integer(int32)
    • prev_page_url string(nullable)
    • to integer(int32)
    • total integer(int32)
  • 401 application/json

    Unauthorized.

    Hide response attribute Show response attribute object
    • message string
  • 403

    Forbidden - You don't have permission to access this route

GET /manager/orders
curl \
 --request GET 'https://domain.tld/api/v2/manager/orders' \
 --header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
  "current_page": 42,
  "data": [
    {}
  ],
  "first_page_url": "string",
  "from": 42,
  "last_page": 42,
  "last_page_url": "string",
  "links": [
    {
      "url": "string",
      "label": "string",
      "active": true
    }
  ],
  "next_page_url": "string",
  "path": "string",
  "per_page": 42,
  "prev_page_url": "string",
  "to": 42,
  "total": 42
}
Response examples (401)
{
  "message": "Unauthorized."
}