Order

Each element of orders array actually is an array. It has order information like order date, payment or shipping. This array contains also 'order_items' key which has like name says data about ordered products. If want to know the customer, just take a look under 'customer' key.

Additional in fields list You have access to discount fields. Below there is o description of each discount field:

  • discount_code - discount code name
  • discount_type - describe type of given discount. 1 - for price discount, 2 - for percentage discount 3 - for free shipping
  • discount_value - depends on discount_type, it's discount in price or in percentage
  • discount_on_value - if not empty, it's a list of products identifiers on which discount has been given
  • discount_apply_once - if 1, discount was applied only to one variant in each order item

Order properties

status "status": "open" or "closed"
billing_address "billing_address": "{
    "name" : "Jan Kowalski",
    "phone" : "599 155 053",
    "address1" : "Biskupa 97",
    "street" : "Biskupa",
    "number" : "97",
    "zip_code" : "25-122",
    "city" : "Kielce",
    "region" : "Świętokrzyskie",
    "country" : "Poland",
    "country_code" : "pl",
    "tax_id" : "pl",
    "latitude" : "0.000000000000000",
    "longitude" : "0.000000000000000",
}"


This is the address to an invoice. If the customer do not want the invoice this address will be empty. It has the following properties:
  • name - The company associeted to billing address.
  • phone - The phone number at the billing address.
  • address1 - The street and number address of the billing address.
  • street - The street address of the billing address.
  • number - The number address of the billing address.
  • zip_code - The zip or postal code of the billing address.
  • city - The city of the billing address.
  • region - The state of the billing address.
  • country - The name of the country of the billing address.
  • country_code - The two-letter code for the country of the billing address.
  • tax_id - The tax identifier of the buyer.
  • latitude - The latitude of the billing address.
  • longitude - The longitude of the billing address.
cancelled_at "cancelled_at": "2016-12-02 23:32:22"
Date and time when an order was cancelled in format YYYY-MM-DD HH:ii:ss.
cancel_reason "cancel_reason": "fraud"

The reason why the order was cancelled. If the order was not cancelled, this value is blank. If the order was cancelled, the value will be one of the following:
  • customer - The customer cancelled the order.
  • inventory - Items in the order were not in inventory.
  • fraud - The order was fraudulent.
  • no-contact - There was no contact with a customer.
  • other - The order was cancelled for the other reason.
created_at "created_at": "2016-11-02 17:43:32.000000"

Date and time when an order was created in format YYYY-MM-DD HH:ii:ss.u.
customer "customer": "{
    "id" : 4,
    "uuid" : "f44829d7-f0a2-48de-99da-d11f30cabcfe,
    "name" : "Jan",
    "last_name" : "Kowalski",
    "full_name" : "Jan Kowalski",
    "email" : "[email protected]",
    "city" : "Warszawa",
    "orders_count" : 44,
    "orders_price_sum" : 378707,
    "accept_newsletter" : 0,
    "created_at" : "2011-12-19 21:42:37.000000",
    "updated_at" : "2012-05-21 10:35:59.000000",
}"


An object containing information about the customer. Customer objects may contain the following fields:
  • id - A unique numeric identifier for the customer.
  • uuid - A unique identifier for the customer.
  • name - The customer's first name.
  • last_name - The customer's last name.
  • full_name - Concatenation of fields name and last_name.
  • email - The customer's email address.
  • city - The customer's city.
  • orders_count - The number of orders made by this customer in a shop.
  • orders_price_sum - The total amount of money spent by this customer in a shop.
  • accept_newsletter - Indicates whether or not the customer accept newsletter or not. Valid values are 0 and 1.
  • created_at - The date and time when the customer was created in a format YYYY-MM-DD HH:ii:ss.u.
  • updated_at - The date and time when the customer was updated in a format YYYY-MM-DD HH:ii:ss.u.
delivery_name "delivery_name": "DHL Express"

Name of the shipping method which was used in order.
delivery_price "delivery_price": "1999"

The price of the shipping method.
discount_apply_once "discount_apply_once": 1

Flag which indicate if discount was applied on each product or only once.
discount_code "discount_code": "HDU7344"

Discount code which was applied to the order. If no code exist the value will default to blank.
discount_on_value "discount_on_value": "[764,2257,2297,1873]"

Json list of product identifiers which were used in discount.
discount_type "discount_type": 1

Type of the discount. Valid values are:
  • 1: Applies a fixed price discount as a unit of the store's currency. For example, if amount is 20 and the store's currency is USD, then 20 USD is deducted from the order total when the discount is applied.
  • 2: Applies a percentage discount of amount. For example, if amount is 20, then 20% of the order total will be deducted when the discount is applied.
  • 3: Applies a free shipping discount on order.
  • 5: Applies a progressive discount to the order.
discount_value "discount_value": 20

The value of the discount. The discount_type field determines how this amount is calculated.
fulfillment_status "fulfillment_status": "fulfilled"

Status of fulfillment. Valid values are:
  • unfulfilled - Order has been not packed yet.
  • fulfilled - Order has been fulfilled.
  • partial - Order has been partial fulfilled.
  • restocked - Items from the order has been restocked to magazine.
fulfillments "fulfillments" : {
    "id" : 434234,
    "order_id" : 80837,
    "status" : "done",
    "tracking_company" : "inpost",
    "tracking_number" : null,
    "tracking_url" : null,
    "inpost_machine" : "KIE100",
    "cac_point": "",
    "created_at" : "2013-03-12 12:43:29",
    "updated_at" : "2013-03-12 12:43:29",
}


An object containing information about the fulfillments. It contains the following fields:
  • id - Unique identifier of a order fulfillment.
  • order_id - Order identifier number.
  • status - The status of the fulfillment. Possible options are: "new" and "done".
  • tracking_company - The name of the shipping company.
  • tracking_number - The shipping number provided by the shipping company.
  • tracking_url - The website url where You can track your shipping provided by the shipping company.
  • inpost_machine - If the tracking company was Inpost (paczkomaty), then inpost machine number is filled in this field.
  • cac_point - If the tracking company was Poczta Polska (odbiór w punkcie), then click and collect point number is filled in this field.
  • created_at - Date and time when the fulfillment was created in format YYYY-MM-DD HH:ii:SS.
  • updated_at - Date and time when the fulfillment was updated in format YYYY-MM-DD HH:ii:SS.
id "id": "80837"

A unique number identifier for the order used by shop owner and customer.
uuid "uuid": "54876187-f2c1-466b-817d-2257757e3879"

Unique order identifier. Main object identifier in the future API.
ip "ip": "192.23.123.211"

The browser ip address.
landing_site "landing_site": "/category/sale"

The URI for the page where the buyer landed when entering the shop.
notes "notes": "Lorem ipsum"

The text of an optional note that a shop owner can attach to the order.
order_date "order_date": "2016-11-02 17:43:32"

Date and time when an order was created in format YYYY-MM-DD HH:ii:ss.
order_items "order_items": "[
{
    "id": 123,
    "uuid": "f260e62d-4db9-445f-9872-b455979d53a4",
    "product_id" : 10,
    "variant_id" : 22,
    "property_name_1" : "Size",
    "property_value_1" : "36",
    "property_name_2" : "Color",
    "property_value_2" : "Red",
    "property_name_3" : "",
    "property_value_3" : "",
    "sku" : "ADD13",
    "name" : "Adidas SAMOA SHOES Blue - 36 Red",
    "title" : "Adidas SAMOA SHOES Blue",
    "weight" : "300",
    "quantity" : 2,
    "tax" : "23",
    "price" : "24900",
    "tax_type" : "other",
    "require_shipping" : "1",
    "promotion": {
        "title": "Sale 50%",
        "amount": "24900",
        "type": "",
    },
    "properties": [
    {
        "title": "Additional logo",
        "value": "Yes",
    }
    ],
"discounts": [ { "discount_code": "CODE", "discount_type": "fixed", "discount_value": "500", "discount_title": "-5zł" } ], "item_discount": "500", "total_discount": "900"     "created_at": "",
    "updated_at": "",
}]"


A list of item objects. Each one contains information about each variant which was bought. Each order item object has the following properties:
  • id - Unique numeric identifier of the item.
  • uuid - Unique identifier of the item.
  • product_id - Unique numeric identifier of the product which was bought.
  • >
  • variant_id - Unique numeric identifier of the variant which was bought.
  • property_name_1 - If the variant has properties, in this field You can find first property name.
  • property_value_1 - If the variant has properties, in this field You can find first property value.
  • property_name_2 - If the variant has properties, in this field You can find second property name.
  • property_value_2 - If the variant has properties, in this field You can find second property value.
  • property_name_3 - If the variant has properties, in this field You can find third property name.
  • property_value_3 - If the variant has properties, in this field You can find third property value.
  • sku - Product variant sku.
  • name - The name of the product variant (it's a concatenation of product title and variants properties values).
  • title - The title of a product.
  • weight - Product variant weight.
  • quantity - The number of variants that were purchased.
  • tax - Tax amount for each variant.
  • price - The price of the item before discounts have been applied.
  • tax_type - Type of the tax which was applied to the variant. Possible options are: zw (zwolniony), np (nie podlega) and other.
  • require_shipping - States whether or not the fulfillment requires shipping. Values are: 0 or 1.
  • promotion - Object where You can find information about promotion which was on variant. It contains:
    • title - Title of the promotion.
    • amount - The value of the promotion. The type field determines how this amount is calculated.
    • type - Type of the promotion. Valid values are:
      • 1 - Dixed price (Applies a promotion of amount as a unit of the store's currency).
      • 2 - Percentage (Applies a percentage promotion of amount).
  • properties - An array of custom properties which were added to the item during adding it to cart.
  • discounts - An array of item only discounts which were added to the item during adding it to cart. Discount type can be "fixed" or "percentage".
  • item_discount - The price of the item after item only discounts have been applied.
  • total_discount - The price of the item after item only discounts and whole order discount have been applied.
order_number "order_number": "#80837"

A unique number identifier for the order used in API purpose.
order_status "order_status": 5

Orders status identifier. The order status list You can find on page Status.
payment "payment": 43

Payment method identifier which was used in order. Full list of payment methods You can find here.
payment_date "payment_date": "2016-11-02 21:43:32"

Date and time when an order was paid in format YYYY-MM-DD HH:ii:ss.
payment_name "payment_name": "Paypal"

Payment method name used in order.
payment_status "payment_status": "paid"

Status of payment. Valid values are:
  • pending - The finances are pending. Payment might fail in this state. Check again to confirm whether or not the finances have been paid successfully.
  • paid - The finances have been paid.
  • partially_refunded - The finances have been partially refunded.
  • refunded - The finances have been refunded.
price "price": 29999

The sum of all the prices of all the items in the order and taxes. Discounts are excluded.
price_after_discount "price_after_discount": 27999

The sum of all the prices of all the items in the order, taxes and discounts included.
price_tax "price_tax": 2999

The sum of all taxes in the order.
referring_site "referring_site": "https://www.google.pl/"

The site where the customer clicked on to come into the shop.
require_shipping "require_shipping": 1

States whether or not the fulfillment requires shipping. Values are: 1 or 0.
shipping_address "shipping_address": "{
    "company" : "ACME",
    "name" : "Jan Kowalski",
    "phone" : "599 155 053",
    "address1" : "Biskupa 97",
    "street" : "Biskupa",
    "number" : "97",
    "zip_code" : "25-122",
    "city" : "Kielce",
    "region" : "Świętokrzyskie",
    "country" : "Poland",
    "country_code" : "pl",
    "latitude" : "0.000000000000000",
    "longitude" : "0.000000000000000",
}"


This is the address to where the order will be shipped. If the all items not required shipping this address will be empty. It has the following properties:
  • company - The company name of the shipping address.
  • name - First name and last name of a customer.
  • phone - The phone number at the shipping address.
  • address1 - The street and number address of the shipping address.
  • street - The street address of the shipping address.
  • number - The number address of the shipping address.
  • zip_code - The zip or postal code of the shipping address
  • city - The city of the shipping address.
  • region - The state of the shipping address.
  • country - The name of the country of the shipping address.
  • country_code - The two-letter code for the country of the shipping address.
  • latitude - The latitude of the shipping address.
  • longitude - The longitude of the shipping address.
shipping_id "shipping_id": 84

Id of the shipping method which was used in order.
source "source": "web"

The source from where the order was created. The default values is "web". When the order was made on mobile the source is equal to "mobile". it can be override aby app and e.g. if the order was created by Allegro app the source can be "allegro".
updated_at "updated_at": "2016-11-02 17:43:32"

Date and time when an order was updated in format YYYY-MM-DD HH:ii:ss.
user_agent "user_agent": null

The user agent used to create an order.
user_key "user_key": "BeAtWF9e0xkML9fb979jZib3si33GtOw"

Unique identifier for a particular cart that is attached to a particular order.
weight "weight": 750

The total weight of the all items in grams.


Receive a list of all Orders

Query parameters:
  • fields - list of fields returning in response
  • limit - number of returned orders (default: 50, max: 200)
  • page - currently displayed page (default: 1)
  • since_id - restrict orders to greater identifiers than specified id
  • customer_id - filter with customer id
  • order_date - shows orders, where order date was later than specified (format: 2011-06-19 13:18:50)
  • order_status - filter with given order status
  • payment_status - filter with given payment status. Possible options are: 'pending', 'paid', 'partially_refunded', 'refunded'
  • fulfillment_status - filter with given fulfillment status. Possible options are: 'unfulfilled', 'fulfilled', 'partial', 'restocked'
  • weight - filter with weight greater than specified
  • price - filter with orders, in which the total price gross is greater than the specified
  • product_id - filter with product id
  • variant_id - filter with product variant id
  • sku - filter with product sku
  • require_shipping - filter with orders which require shipping or not if specified
  • order_by - sets the order (asc or desc)
  • status - shows archived ("closed" value) or not archived ("open" value) orders
  • created_at_min - shows orders, which creation date was later than specified (format: 2011-06-19 13:18:50)
  • created_at_max - shows orders, which creation date was earlier than specified (format: 2011-06-19 13:18:50)
  • updated_at_min - shows orders, which modification date was later than specified (format: 2011-06-19 13:18:50)
  • updated_at_max - shows orders, which modification date was earlier than specified (format: 2011-06-19 13:18:50)


GET /services/orders

Returns all orders

HTTP/1.1 200 OK
{
	"orders": [
		{
			"created_at" : "2011-12-19 21:42:37.000000",
			"delivery_name" : "OdbiĂłr osobisty",
			"delivery_price" : "850",
			"discount_code"  : "",
			"discount_on_value"  : "",
			"discount_type"  : "",
			"discount_value" : "0",
			"discount_apply_once" : "0",
			"id" : "1007",
			"uuid" : "1ed3a4d8-3bf3-4ba1-a84b-3b8d7c51c866",
			"ip" : "218.23.31.24",
			"landing_site" : "",
			"order_date" : "2011-12-19 21:42:37.000000",
			"order_number" : "1007",
			"order_status" : "3",
			"payment" : "2",
			"payment_date" : "2011-12-20 12:42:37",
			"payment_name" : "OdbiĂłr osobisty",
			"payment_status" : "pending",
			"fulfillment_status" : "fulfilled",
			"price" : "49800",
            "price_after_discount" : "49800",
			"cancelled_at" : null,
			"cancel_reason" : null,
			"referring_site" : "",
			"require_shipping" : "1",
            "notes" : "",
			"updated_at" : "2011-12-19 21:42:37.000000",
			"user_agent": null,
            "user_key" : "CnBsFw2F2diq0iFCUQO6vva2tzzmSMdv",
			"weight" : "600",
			"status" : "open",
			"shipping_id" : 84,
			"shipping_address" : {
                "company" : "ACME",
                "name" : "Jan Kowalski",
                "phone" : "599 155 053",
                "address1" : "Biskupa 97",
                "zip_code" : "25-122",
                "city" : "Kielce",
                "region" : "Świętokrzyskie",
                "country" : "Poland",
                "country_code" : "pl",
                "latitude" : "0.000000000000000",
                "longitude" : "0.000000000000000",
		    },
			"billing_address" : {
                "name" : null,
                "phone" : null,
                "address1" : null,
                "zip_code" : null,
                "city" : null,
                "region" : null,
                "country" : null,
                "country_code" : null,
                "tax_id" : null,
                "latitude" : null,
                "longitude" : null,
            },
			"fulfillments" : {
                "id" : 434234,
                "order_id" : 1001,
                "status" : "done",
                "tracking_company" : "inpost",
                "tracking_number" : null,
				"tracking_url" : null,
                "inpost_machine" : "KIE100",
				"cac_point": "",
                "created_at" : "2013-03-12 12:43:29",
                "updated_at" : "2013-03-12 12:43:29",
            }
			"order_items" : [
				{
					"id": 12,
					"uuid" : "bddfd723-f7de-43e5-90c1-5a7982b1d379",
					"name" : "Adidas SAMOA SHOES Blue - 34",
					"price" : "24900",
					"product_id" : "10",
					"promotion": [],
					"properties": [],
					"property_name_1": "Color",
					"property_value_1": "Blue",
					"property_name_2": "Size",
					"property_value_2": 34,
					"quantity" : "2",
					"require_shipping" : "1",
					"sku" : "ADD13",
					"barcode" : "D98-ds",
					"tax" : "23.00",
					"tax_type": "other",
					"title" : "Adidas SAMOA SHOES Blue",
					"variant_id" : "22",
					"weight" : "300",
				},
			],
			"customer" : {
                "id" : "4",
				"uuid" : "4e9f0fcc-c4d6-4e77-a753-fc8c1948bd62",
                "name" : "Jan",
                "last_name" : "Kowalski",
                "full_name" : "Jan Kowalski",
                "email" : "[email protected]",
                "orders_count" : "44",
                "orders_price_sum" : "378707",
                "accept_newsletter" : "0",
                "created_at" : "2011-12-19 21:42:37",
                "updated_at" : "2012-05-21 10:35:59",
            },
		},
	]
}

Receive a count of all Orders

Query parameters:
  • since_id - restrict orders to greater identifiers than specified id
  • customer_id - filter with customer id
  • order_date - filter with order date later than specified (format: 2011-06-19 13:18:50)
  • order_status - filter with given order status
  • payment_status - filter with given payment status. Possible options are: 'pending', 'paid', 'partially_refunded', 'refunded'
  • fulfillment_status - filter with given fulfillment status. Possible options are: 'unfulfilled', 'fulfilled', 'partial', 'restocked'
  • weight - filter with weight greater than specified
  • price - filter with orders, in which the total price gross is greater than the specified
  • product_id - filter with product id
  • variant_id - filter with product variant id
  • sku - filter with product sku
  • status - filter for archived ("closed" value) or not archived ("open" value) orders
  • require_shipping - filter with orders which require shipping or not if specified
  • created_at_min - counts orders, which creation date was later than specified (format: 2011-06-19 13:18:50)
  • created_at_max - counts orders, which creation date was earlier than specified (format: 2011-06-19 13:18:50)
  • updated_at_min - counts orders, which modification date was later than specified (format: 2011-06-19 13:18:50)
  • updated_at_max - counts orders, which modification date was earlier than specified (format: 2011-06-19 13:18:50)
GET /services/orders/count

Receive a count of all Orders

HTTP/1.1 200 OK
{
	"count": 250
}

Receive a single Order

Query parameters:
  • fields - list of fields returning in response
GET services/orders/{id}

Receive a single Order

Response
HTTP/1.1 200 OK
{
	"order": {
		"created_at" : "2011-12-19 21:42:37.000000",
		"delivery_name" : "OdbiĂłr osobisty",
		"delivery_price" : "850",
		"discount_code"  : "",
		"discount_on_value"  : "",
		"discount_type"  : "",
		"discount_value" : "0",
		"discount_apply_once" : "0",
		"id" : "1007",
		"uuid" : "53e6a331-ccb5-4121-ac35-59f4a9696bea",
		"ip" : "128.32.12.32",
		"landing_site" : "",
		"order_date" : "2011-12-19 21:42:37",
		"order_number" : "1007",
		"order_status" : "3",
		"payment" : "2",
		"payment_date" : "2011-12-20 12:42:37",
		"payment_name" : "OdbiĂłr osobisty",
		"payment_status" : "pending",
		"fulfillment_status" : "unfulfilled",
		"price" : "49800",
        "price_after_discount" : "49800",
		"cancelled_at" : null,
		"cancel_reason" : null,
		"referring_site" : "",
		"require_shipping" : "1",
        "notes" : "",
		"updated_at" : "2011-12-19 21:42:37.000000",
        "user_agent" : null,
		"user_key" : "CnBsFw2F2diq0iFCUQO6vva2tzzmSMdv",
		"weight" : "600",
		"status" : "open",
		"shipping_id" : 32,
		"shipping_address" : {
            "company" : "ACME",
            "name" : "Jan Kowalski",
            "phone" : "599 155 053",
            "address1" : "Biskupa 97",
            "zip_code" : "25-122",
            "city" : "Kielce",
            "region" : "Świętokrzyskie",
            "country" : "Poland",
            "country_code" : "pl",
            "latitude" : "0.000000000000000",
            "longitude" : "0.000000000000000",
        },
		"billing_address" : {
            "name" : null,
            "phone" : null,
            "address1" : null,
            "zip_code" : null,
            "city" : null,
            "region" : null,
            "country" : null,
            "country_code" : null,
            "latitude" : null,
            "longitude" : null,
        },
		"fulfillments" : {
            "id" : 434234,
            "order_id" : 1001,
            "status" : "done",
            "tracking_company" : "poczta_polska",
            "tracking_number" : null,
			"tracking_url" : null,
            "inpost_machine" : "",
			"cac_point" : 116744,
            "created_at" : "2013-03-12 12:43:29",
            "updated_at" : "2013-03-12 12:43:29",
        }
		"order_items" : [
			{
				"id": 12,
				"uuid" : "51b3fee9-a543-4595-b50b-9392c11a06f0",
				"name" : "Adidas SAMOA SHOES Blue - 34",
				"price" : "24900",
				"product_id" : "10",
				"promotion": [],
				"properties": [],
				"property_name_1": "Color",
				"property_value_1": "Blue",
				"property_name_2": "Size",
				"property_value_2": 34,
				"quantity" : "2",
				"require_shipping" : "1",
				"sku" : "ADD13",
				"barcode" : "DS923-3",
				"tax" : "23.00",
				"tax_type": "other",
				"title" : "Adidas SAMOA SHOES Blue",
				"variant_id" : "22",
				"weight" : "300",
			},
		],
		"customer" : {
            "id" : "4",
			"uuid" : "1f263f58-a6fd-46e6-8247-d59aac659f35",
            "name" : "Jan",
            "last_name" : "Kowalski",
            "full_name" : "Jan Kowalski",
            "email" : "[email protected]",
            "orders_count" : "44",
            "orders_price_sum" : "378707",
            "accept_newsletter" : "0",
            "created_at" : "2011-12-19 21:42:37",
            "updated_at" : "2012-05-21 10:35:59",
        },
	},
}

Create a Order

POST services/orders

Create order with specified parameters

Request
{
	"order": {
		"discount_code" : null,
		"landing_site" : "https://classicdark.shoplo.com/kolekcja/frontpage/adidas-samoa-shoes",
		"referring_site" : "https://classicdark.shoplo.com",
		"notes" : null,
		"order_date" : "2011-12-19 21:42:37",
		"payment_details" : {
            "payment_id" : "2",
            "title"	: "S#1007",
        },
		"shipping_details" : {
            "id" : 32,
			"title"	: "OdbiĂłr osobisty",
            "price"	: "850",
        },
		"shipping_address" : {
            "company" : null,
            "first_name" : null,
            "last_name" : null,
            "phone" : null,
            "street" : null,
            "number" : null,
            "city" : null,
            "region" : null,
            "zip_code" : null,
            "country_code" : null,
        },
		"billing_address" : {
            "company" : null,
            "street" : null,
            "number" : null,
            "city" : null,
            "zip_code" : null,
            "country_code" : null,
            "tax_id" : null,
            "latitude" : null,
            "longitude" : null,
        },
		"order_items" : [
			{
				"variant_id" : "22",
				"quantity" : "2",
				"price" : "24900",
			},
		],
		"customer" : {
            "email" : "[email protected]",
            "first_name" : "Jan",
            "last_name" : "Kowalski",
            "phone"	: "599 155 053",
            "address" : [
                {
                    "street" : "Biskupa",
                    "number" : "97",
                    "city"	: "Kielce",
                    "zip_code"	: "25-122",
                    "country_code"	: "pl",
                },
            ],
        },
	},
}
Response
HTTP/1.1 200 OK
{
	"order": {
		"created_at" : "2011-12-19 21:42:37.000000",
		"delivery_name" : "OdbiĂłr osobisty",
		"delivery_price" : "850",
		"discount_code"  : "",
		"discount_on_value"  : "",
		"discount_type"  : "",
		"discount_value" : "0",
		"discount_apply_once" : "0",
		"id" : "1007",
		"uuid" : "ddb95714-4582-4ac4-9249-bfdf4a6684ca",
		"ip": "",
		"landing_site" : "https://classicdark.shoplo.com/kolekcja/frontpage/adidas-samoa-shoes",
		"order_date" : "2011-12-19 21:42:37",
		"order_number" : "1007",
		"order_status" : "2",
		"payment" : "2",
		"payment_date" : "0000-00-00 00:00:00",
		"payment_name" : "OdbiĂłr osobisty",
		"payment_status" : "paid",
		"fulfillment_status" : "partial",
		"price" : "49800",
        "price_after_discount" : "49800",
		"cancelled_at" : null,
		"cancel_reason" : null,
		"referring_site" : "https://classicdark.shoplo.com",
		"require_shipping" : "1",
        "notes" : "",
		"updated_at" : "2011-12-19 21:42:37",
        "user_key" : null,
		"user_agent" : null,
		"weight" : "600",
		"status" : "open",
		"shipping_id" : 32,
		"shipping_address" : {
            "company" : "ACME",
            "name" : "Jan Kowalski",
            "phone" : "599 155 053",
            "address1" : "Biskupa 97",
            "zip_code" : "25-122",
            "city" : "Kielce",
            "region" : "Świętokrzyskie",
            "country" : "Poland",
            "country_code" : "pl",
            "latitude" : "0.000000000000000",
            "longitude" : "0.000000000000000",
        },
		"billing_address" : {
            "name" : null,
            "phone" : null,
            "address1" : null,
            "zip_code" : null,
            "city" : null,
            "region" : null,
            "country" : null,
            "country_code" : null,
            "tax_id" : null,
            "latitude" : null,
            "longitude" : null,
        },
		"fulfillments" : {
            "id" : 434234,
            "order_id" : 1001,
            "status" : "done",
            "tracking_company" : "inpost",
            "tracking_number" : null,
			"tracking_url" : null,
            "inpost_machine" : "KIE100",
			"cac_point" : "",
            "created_at" : "2013-03-12 12:43:29",
            "updated_at" : "2013-03-12 12:43:29",
        },
		"order_items" : [
			{
				"id": 12,
				"uuid" : "3c379f83-d74b-4238-a7fa-3a26ffceb691",
				"name" : "Adidas SAMOA SHOES Blue - 34",
				"price" : "24900",
				"product_id" : "10",
				"promotion": [],
				"properties": [],
				"property_name_1": "Color",
				"property_value_1": "Blue",
				"property_name_2": "Size",
				"property_value_2": 34,
				"quantity" : "2",
				"require_shipping" : "1",
				"sku" : "ADD13",
				"barcode" : "BD-321",
				"tax" : "23.00",
				"tax_type": "other",
				"title" : "Adidas SAMOA SHOES Blue",
				"variant_id" : "22",
				"weight" : "300",
			},
		],
		"customer" : {
            "id" : "4",
			"uuid" : "2556375e-519f-441b-ab43-0d1f79c9c3d3",
            "name" : "Grzegorz",
            "last_name" : "Nadany",
            "full_name" : "Grzegorz Nadany",
            "email" : "[email protected]",
            "orders_count" : "44",
            "orders_price_sum" : "378707",
            "accept_newsletter" : "0",
            "created_at" : "2011-12-19 21:42:37",
            "updated_at" : "2012-05-21 10:35:59",
        },
	},
}

Update an existing Order

PUT services/orders/{id}

You can update an order status and notes

Request
{
	"order": {
		"order_status" : "3",
            "order_notes" : "Tresc notatki do zamowienia",
            "payment_status" : "paid",
			"status" : "closed",
            "fulfillments" : {
                "tracking_company" : "UPS",
                "tracking_number" : "123198495734",
                "tracking_url" : "https://wwwapps.ups.com/etracking/tracking.cgi?tracknum=123198495734"
            },
            "shipping_address" : {
                "email" : "[email protected]",
                "company" : "ACME",
                "name" : "Greg",
                "last_name" : "Nowak",
                "phone" : "512 345 678",
                "city" : "Katowice",
                "street" : "Opolska",
                "number" : "23",
                "zip_code" : "23-212",
                "region" : "Śląskie"
                "country" : "pl"
            }
	},
}
Response
HTTP/1.1 200 OK
{
	"order": {
		"created_at" : "2011-12-19 21:42:37.000000",
		"delivery_name" : "OdbiĂłr osobisty",
		"delivery_price" : "850",
		"discount_code"  : "",
		"discount_on_value"  : "",
		"discount_type"  : "",
		"discount_value" : "0",
		"discount_apply_once" : "0",
		"id" : "1007",
		"uuid" : "3c379f83-d74b-4238-a7fa-3a26ffceb691",
		"ip" : "123.54.31.23",
		"landing_site" : "https://classicdark.shoplo.com/kolekcja/frontpage/adidas-samoa-shoes",
		"order_date" : "2011-12-19 21:42:37",
		"order_number" : "1007",
		"order_status" : "3",
		"payment" : "2",
		"payment_date" : "2011-12-20 21:42:37",
		"payment_name" : "OdbiĂłr osobisty",
		"payment_status" : "paid",
		"fulfillment_status" : "unfulfilled",
		"price" : "49800",
        "price_after_discount" : "49800",
		"cancelled_at" : null,
		"cancel_reason" : null,
		"referring_site" : "https://classicdark.shoplo.com",
		"require_shipping" : "1",
        "notes" : "",
		"updated_at" : "2011-12-19 21:42:37.000000",
		"user_agent" : null,
        "user_key" : "CnBsFw2F2diq0iFCUQO6vva2tzzmSMdv",
		"weight" : "600",
		"status": "closed",
		"shipping_id" : 32,
		"shipping_address" : {
            "company" : "ACME",
            "name" : "Greg Nowak",
            "phone" : "512 345 678",
            "address1" : "Opolska 23",
            "zip_code" : "25-122",
            "city" : "Katowice",
            "region" : "Śląskie",
            "country" : "Poland",
            "country_code" : "pl",
            "latitude" : "0.000000000000000",
            "longitude" : "0.000000000000000",
        },
		"billing_address" : {
            "name" : null,
            "phone" : null,
            "address1" : null,
            "zip_code" : null,
            "city" : null,
            "region" : null,
            "country" : null,
            "country_code" : null,
            "tax_id" : null,
            "latitude" : null,
            "longitude" : null,
        },
		"fulfillments" : {
            "id" : 434234,
            "order_id" : 1001,
            "status" : "done",
            "tracking_company" : "inpost",
            "tracking_number" : null,
			"tracking_url" : null,
            "inpost_machine" : "KIE100",
			"cac_point" : "",
            "created_at" : "2013-03-12 12:43:29",
            "updated_at" : "2013-03-12 12:43:29",
        }
		"order_items" : [
			{
				"id": 12,
				"uuid" : "bfcb05a2-cd78-46f6-ac2b-05d90181e894",
				"name" : "Adidas SAMOA SHOES Blue - 34",
				"price" : "24900",
				"product_id" : "10",
				"promotion": [],
				"properties": [],
				"property_name_1": "Color",
				"property_value_1": "Blue",
				"property_name_2": "Size",
				"property_value_2": 34,
				"quantity" : "2",
				"require_shipping" : "1",
				"sku" : "ADD13",
				"barcode" : "SD-321",
				"tax" : "23.00",
				"tax_type": "other",
				"title" : "Adidas SAMOA SHOES Blue",
				"variant_id" : "22",
				"weight" : "300",
			},
		],
		"customer" : {
            "id" : "4",
			"uuid" : "db5bde81-0e66-45a7-aa6d-f3ea09a552b8",
            "name" : "Grzegorz",
            "last_name" : "Nadany",
            "full_name" : "Grzegorz Nadany",
            "email" : "[email protected]",
            "orders_count" : "44",
            "orders_price_sum" : "378707",
            "accept_newsletter" : "0",
            "created_at" : "2011-12-19 21:42:37",
            "updated_at" : "2012-05-21 10:35:59",
        },
	},
}

Delete an existing Order

DELETE services/orders/{id}

Delete an existing order from a shop

Response
HTTP/1.1 200 OK
{
"status"	: "ok",
}