POST api/v{version}/booking/book

Prenota un ritiro con Fermo!Point.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
version

string

None.

Body Parameters

ApiRequestOfApiOrderRequest
NameDescriptionTypeAdditional information
data

ApiOrderRequest

Required

client_id

string

Required

auth_token

string

Required

ts

string

Required

Request Formats

application/json, text/json

Sample:
{
  "data": {
    "merchant_id": "201810160001",
    "merchant_notes": "Ordine n.1",
    "point_id": 1,
    "existing_user": true,
    "user": null,
    "nickname": "guest",
    "born_date": "2015-01-01T00:00:00",
    "email": "utente@email.com",
    "phone_number": "333 8778902"
  },
  "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"
}