POST api/v{version}/booking/approve/{ticketId}

Conferma una prenotazione tramite numero di Fermo!Ticket.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
ticketId

Numero di Fermo!Ticket associato al ritiro

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

ApiOrder aggiornato

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"
}