POST api/v{version}/deliveries

Restiuisce le spedizioni dell'ecommerce, filtrate e ordinate.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
version

string

None.

Body Parameters

ApiRequestOfApiDeliveryFilter
NameDescriptionTypeAdditional information
data

ApiDeliveryFilter

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",
    "state": "All",
    "destinationPointId": null,
    "merchantId": "",
    "date_from": "2017-10-16T19:27:00.8912Z",
    "date_to": "2019-10-16T19:27:00.8912Z"
  },
  "client_id": "peHFRa141xCu4WFnyF8e",
  "auth_token": "9722487d44b88c093ea140fc771a43aa2ea6edccea8f40a3bf7e69f6729cd09b",
  "ts": "2014-10-21T08:03:25.4238996Z"
}

Response Information

Resource Description

Array di ApiOrder

ApiDeliveryList
NameDescriptionTypeAdditional information
deliveries_count

integer

None.

deliveries

Collection of ApiDelivery

None.

Response Formats

application/json, text/json

Sample:
{
  "deliveries_count": 1,
  "deliveries": [
    {
      "deliveryId": "SA234FB123456",
      "merchant_id": "201810160001",
      "merchant_notes": "Ordine n.1",
      "source_point_id": null,
      "source_name": null,
      "source_address": null,
      "source_contact": null,
      "source_phone_number": null,
      "destination_point_id": 1,
      "destination_name": "Negozio Fermo!Point - Milano",
      "destination_address": {
        "s": "Corso Buenos Aires 100",
        "e": null,
        "c": "Milano",
        "l": null,
        "p": "20124",
        "d": "MI"
      },
      "destination_contact": "Nome Negoziante",
      "destination_phone_number": "02 111 111 11",
      "fullname": "Ospite Test Ecommerce",
      "email": "utente@email.com",
      "phone_number": "333 8778902",
      "packs": [
        {
          "notes": "nota pacco",
          "barcode_text": null,
          "barcode_code128_base64": null,
          "weight": 2.0,
          "size1": 10,
          "size2": 10,
          "size3": 10
        },
        {
          "notes": "nota pacco",
          "barcode_text": null,
          "barcode_code128_base64": null,
          "weight": 2.0,
          "size1": 10,
          "size2": 10,
          "size3": 10
        },
        {
          "notes": "nota pacco",
          "barcode_text": null,
          "barcode_code128_base64": null,
          "weight": 2.0,
          "size1": 10,
          "size2": 10,
          "size3": 10
        }
      ],
      "weight": 6.0,
      "price": 9.9,
      "shipping_insurance": false,
      "state": "InDelivery",
      "pickup_order": {
        "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"
      },
      "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",
      "shipping_label_url": "https://console.sandbox.fermopoint.it/get-shipping-label.aspx?id=0&deliveryId=A23AA33A1221&token=vcFH8xrhwQvoJ63a1LqYOtFkZxK%2bBomsIFvZBm62Hi12WXeTMEQuL2GmKYTij9IaxLdIV2SUW1Bhwsxhi8V8zg",
      "shipping_label_urls": [
        {
          "type": "pdf",
          "url": "http://label.spedizioniere.it/label/012345679?type=pdf"
        },
        {
          "type": "zpl",
          "url": "http://label.spedizioniere.it/label/012345679?type=zpl"
        },
        {
          "type": "jpg",
          "url": "http://label.spedizioniere.it/label/012345679?type=jpg"
        }
      ]
    }
  ]
}