POST api/v{version}/orders/last?take={take}

Restiuisce gli ultimi ordini dell'ecommerce.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
take

Numero di ordini da ritornare

integer

Default value is 50

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

Array di ApiOrder

Collection of 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: (?:.{1,64}@(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?\.)+[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?)

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": "sample string 1",
    "merchant_id": "sample string 2",
    "merchant_notes": "sample string 3",
    "point_id": 4,
    "nickname": "sample string 5",
    "email": "sample string 6",
    "phone_number": "sample string 7",
    "state": "sample string 8",
    "notes": [
      {
        "date": "2018-12-12T13:28:00.5314+01:00",
        "note": "sample string 2"
      },
      {
        "date": "2018-12-12T13:28:00.5314+01:00",
        "note": "sample string 2"
      }
    ],
    "last_update": "2018-12-12T13:28:00.5314+01:00"
  },
  {
    "ticketId": "sample string 1",
    "merchant_id": "sample string 2",
    "merchant_notes": "sample string 3",
    "point_id": 4,
    "nickname": "sample string 5",
    "email": "sample string 6",
    "phone_number": "sample string 7",
    "state": "sample string 8",
    "notes": [
      {
        "date": "2018-12-12T13:28:00.5314+01:00",
        "note": "sample string 2"
      },
      {
        "date": "2018-12-12T13:28:00.5314+01:00",
        "note": "sample string 2"
      }
    ],
    "last_update": "2018-12-12T13:28:00.5314+01:00"
  }
]