Zamówienia

Pobierz listę zamówień wraz z koszykami

Changed on

Zwraca listę zamówień wraz z pozycjami koszyka oraz statusem realizacji pozycji.

get/orders_with_carts

Request

  • Base URL
    https://demo.sellasist.pl/api/v1
  • URL
    https://demo.sellasist.pl/api/v1/orders_with_carts
  • Auth
    API key in header apiKey

Query parameters

offsetinteger

Offset

limitinteger

Limit

status_idinteger

Identyfikator statusu

cart_status_idinteger

Identyfikator statusu koszyka (1 - Niezamówione, 2 - Zamówione, 3 - Brak, 4 - Dostarczone)

cart_status_mode'include' | 'only'

Tryb filtrowania pozycji koszyka: 'include' (domyślnie - zamówienia zawierające wskazany status) lub 'only' (zamówienie zawiera wyłącznie podany status)

emailstring

Adres email

payment_status'paid' | 'unpaid' | 'excess' | 'partial' | 'returned'

status płatności

payment_idinteger

Identyfikator metody płatności

shipment_idinteger

Identyfikator metody dostawy

currencystring

symbol waluty

sale_document'receipt' | 'invoice'

dokument sprzedaży

date_fromstring

Data zamówienia od

date_tostring

Data zamówienia do

sort_date'asc' | 'desc'
Example:desc

Kierunek sortowania po dacie utworzenia zamówienia (asc lub desc).

sort'asc' | 'desc'

Sortowanie po ID (asc / desc)

source'allegro' | 'ebay' | 'arena' | 'ceneo' | 'extsources' | 'amazon' | 'empik' | 'erli' | 'wms' | 'marketplace' | 'baselinker'

źródło zamówienia

Response

success

datestring

Data utworzenia zamówienia

idinteger

Identyfikator zamówienia

Example response

[
  {
    "bill_address": {
      "city": "Jurkowo",
      "company_name": "Jurex z.o.o",
      "company_nip": "0",
      "country": {
        "code": "PL",
        "id": 170,
        "name": "Poland"
      },
      "description": "Pod mostem",
      "flat_number": "255",
      "home_number": "13",
      "name": "Jerzy",
      "phone": "123456789",
      "postcode": "12-345",
      "state": "Mazowieckie",
      "street": "Jurkowska",
      "surname": "Jurkowski"
    },
    "carts": [
      {
        "additional_information": "Dodatkowe informacje",
        "catalog_number": "",
        "ean": "",
        "external_offer_id": "A21S95F",
        "id": 1,
        "image": "https://imge.pl/p/5924/n/fbde7548c104824523c479972ac6af94.png",
        "name": "Spodnie sztruksowe",
        "price": 232.42,
        "product_id": 341,
        "quantity": 1,
        "selected_options": "",
        "symbol": "",
        "tax_rate": 23,
        "variant_id": 3,
        "weight": 0,
        "status": {
          "id": 1,
          "name": "Niezamówione"
        }
      }
    ],
    "id": 1,
    "payment": {
      "cod": 1,
      "currency": "PLN",
      "name": "Przelewy zwykły",
      "paid_date": "2018-09-12 20:32:58",
      "status": "paid"
    },
    "status": {
      "id": 1,
      "name": "Nazwa statusu"
    }
  }
]

Changes

    • breaking

      removed the enum value shopee from the query request parameter source

    • breaking

      the query request parameter sort was restricted to a list of enum values

    • breaking

      for the query request parameter sort, default value desc was added

    • breaking

      the /// response's property type changed from id to integer for status

    • info

      added the new optional query request parameter cart_status_id

    • info

      added the new optional query request parameter cart_status_mode

    • info

      added the new optional query request parameter sort_date

    • info

      added the new enum value asc to the query request parameter sort

    • info

      added the new enum value desc to the query request parameter sort

    • info

      added the optional property /// to the response with the status