GetReturnOrders (REST)

Description

Endpoint used to retrieve a list of return orders of a customer. These orders will come directly from the ERP system and can contain our web orders but also orders placed in the shop or by phone.

Note that the orders should be returned in reversed order. The return order history is shown on the shop in a paged manner. The first page contains the most recent orders with the latest order on top of the list.

REST API:

URL: /Shoxl/v1/GetReturnOrders Method: POST

Request body:

GetOrderHistoryRequest{

}

Example:

{
  "accountNumber": "123456",
  "pageNumber": 1,
  "pageSize": 20
}

Response body:

GetReturnOrdersResult{

}

ReturnOrderItem{

}

Example:

{
  "errorCode": "string",
  "errorDescription": "string",
  "orders": [
    {
      "orderDate": "2021-07-21T12:55:00.826Z",
      "orderNumber": "123456",
      "reference": "string",
      "orderState": 1
    }
  ],
  "request": {
    "accountNumber": "string",
    "pageNumber": 1
    "pageSize": 20
  },
  "totalPages": 12,
  "pageNumber": 1
}

Last updated