POST api/v{version}/orders/order-by-merchant-id/{merchantId}

Restiuisce i dettagli dell'ordine corrispondente al merchantId.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
merchantId

Codice merchant associato all'ordine

string

Required

version

string

None.

Body Parameters

ApiRequest
NameDescriptionTypeAdditional information
client_id

string

Required

auth_token

string

Required

ts

string

Required

Request Formats

application/json, text/json

Sample:
{
  "client_id": "peHFRa141xCu4WFnyF8e",
  "auth_token": "9722487d44b88c093ea140fc771a43aa2ea6edccea8f40a3bf7e69f6729cd09b",
  "ts": "2014-10-21T08:03:25.4238996Z"
}

Response Information

Resource Description

Entità ApiOrder richiesta

ApiOrder
NameDescriptionTypeAdditional information
ticketId

string

None.

merchant_id

string

Required

Max length: 100

merchant_notes

string

Max length: 100

point_id

integer

None.

nickname

string

String length: inclusive between 3 and 100

email

string

Required

Matching regular expression pattern: \w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*

Max length: 255

phone_number

string

Data type: PhoneNumber

Matching regular expression pattern: ^[0-9- ]*$

Max length: 20

state

string

None.

notes

Collection of ApiNote

None.

last_update

date

None.

Response Formats

application/json, text/json

Sample:
{
  "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"
}