POST api/v{version}/orders

Restiuisce gli ordini dell'ecommerce, filtrati e ordinati.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
version

string

None.

Body Parameters

ApiRequestOfApiOrderFilter
NameDescriptionTypeAdditional information
data

ApiOrderFilter

Required

client_id

string

Required

auth_token

string

Required

ts

string

Required

Request Formats

application/json, text/json

Sample:
{
  "data": {
    "skip": 0,
    "take": 10,
    "orderby": "date",
    "nickname": "",
    "state": "All",
    "pointId": null,
    "merchantId": "",
    "date_from": "2017-10-16T19:27:00.8756Z",
    "date_to": "2019-10-16T19:27:00.8756Z"
  },
  "client_id": "peHFRa141xCu4WFnyF8e",
  "auth_token": "9722487d44b88c093ea140fc771a43aa2ea6edccea8f40a3bf7e69f6729cd09b",
  "ts": "2014-10-21T08:03:25.4238996Z"
}

Response Information

Resource Description

Array di ApiOrder

ApiOrderList
NameDescriptionTypeAdditional information
orders_count

integer

None.

orders

Collection of ApiOrder

None.

Response Formats

application/json, text/json

Sample:
{
  "orders_count": 1,
  "orders": [
    {
      "ticketId": "A23AA33A1221",
      "merchant_id": "201810160001",
      "merchant_notes": "Ordine n.1",
      "point_id": 1,
      "nickname": "guest",
      "email": "utente@email.com",
      "phone_number": "333 8778902",
      "state": "Booked",
      "notes": [
        {
          "date": "2018-10-16T19:27:00.8912Z",
          "note": "Nota sull'ordine"
        },
        {
          "date": "2018-10-16T19:27:00.8912Z",
          "note": "Nota sull'ordine"
        }
      ],
      "last_update": "2018-10-16T19:27:00.8912Z"
    }
  ]
}