Order

An order is a customer's completed request to purchase one or more products from a shop. An order is created when a customer completes the checkout process, during which time s/he provides an email address, billing address and payment information.

#

You should note that orders can be created through the API, but no payment information will be collected, and no transaction performed. You can mark the order with any payment status. Orders cannot be created through the store's admin panel. The only way to create an order and accept payments via Shopify is by entering the storefront, adding items to cart, and completing checkout.

You should also note that you can change only a few of an order's attributes using the API. You cannot change the items or the quantities in an order.

Orders that have been created via the Shopify POS will not necessarily have customer information attached to them.

What can you do with Order?

The Shopify API lets you do the following with the Order resource. More detailed versions of these general actions may be available:

Order Properties

billing_address
{ "address1" : "Chestnut Street 92" }
{ "address2" : "" }
{ "city" : "Louisville" }
{ "company" : "null" }
{ "country" : "US" }
{ "first_name" : "null" }
{ "id" : 207119551 }
{ "last_name" : "null" }
{ "phone" : "555-625-1199" }
{ "province" : "KY" }
{ "zip" : "40202" }
{ "name" : "null" }
{ "province_code" : "null" }
{ "country_code" : "null" }
{ "default" : true }

The mailing address associated with the payment method. This address is an optional field that will not be available on orders that do not require one. It has the following properties:

  • address1: The street address of the billing address.
  • address2: An optional additional field for the street address of the billing address.
  • city: The city of the billing address.
  • company: The company of the person associated with the billing address.
  • country: The name of the country of the billing address.
  • country_code: The two-letter code (ISO 3166-1 alpha-2 two-letter country code) for the country of the billing address.
  • first_name: The first name of the person associated with the payment method.
  • last_name: The last name of the person associated with the payment method.
  • latitude: The latitude of the billing address.
  • longitude: The longitude of the billing address.
  • name: The full name of the person associated with the payment method.
  • phone: The phone number at the billing address.
  • province: The name of the state or province of the billing address.
  • province_code: The two-letter abbreviation of the state or province of the billing address.
  • zip:The zip or postal code of the billing address.

browser_ip
{ "browser_ip" : "null" }

The IP address of the browser used by the customer when placing the order.

buyer_accepts_marketing
{ "buyer_accepts_marketing" : false }

Indicates whether or not the person who placed the order would like to receive email updates from the shop. This is set when checking the "I want to receive occasional emails about new products, promotions and other news" checkbox during checkout. Valid values are "true" and "false."

cancel_reason
{ "cancel_reason" : "null" }

The reason why the order was cancelled. If the order was not cancelled, this value is "null." If the order was cancelled, the value will be one of the following:

  • customer: The customer changed or cancelled the order.
  • fraud: The order was fraudulent.
  • inventory: Items in the order were not in inventory.
  • other: The order was cancelled for a reason not in the list above.

cancelled_at
{ "cancelled_at" : "null" }

The date and time when the order was cancelled. If the order was cancelled, the API returns this value in ISO 8601 format. If the order was not cancelled, this value is "null."

cart_token
{ "cart_token" : "68778783ad298f1c80c3bafcddeea" }

Unique identifier for a particular cart that is attached to a particular order.

client_details
{ "accept_language" : "null" }
{ "browser_height" : "null" }
{ "browser_ip" : "0.0.0.0" }
{ "browser_width" : "null" }
{ "session_hash" : "null" }
{ "user_agent" : "null" }

An object containing information about the client:

  • accept_language:
  • browser_height: The browser screen height in pixels, if available.
  • browser_ip: The browser IP address.
  • browser_width: The browser screen width in pixels, if available.
  • session_hash: A hash of the session.
  • user_agent

closed_at
{ "closed_at" : "null" }

The date and time when the order was closed. If the order was closed, the API returns this value in ISO 8601 format. If the order was not closed, this value is null.

created_at
{ "created_at" : "2008-01-10T11:00:00-05:00" }

The date and time when the order was created. The API returns this value in ISO 8601 format.

currency
{ "currency" : "USD" }

The three letter code (ISO 4217) for the currency used for the payment.

customer
{ "accepts_marketing" : false }
{ "created_at" : "2012-03-13T16:09:55-04:00" }
{ "email" : "bob.norman@hostmail.com" }
{ "first_name" : "Bob" }
{ "id" : 207119551 }
{ "last_name" : "Norman" }
{ "note" : "null" }
{ "last_name" : "null" }
{ "orders_count" : "0" }
{ "state" : "null" }
{ "total_spent" : "0.00" }
{ "updated_at" : "2012-03-13T16:09:55-04:00" }
{ "tags" : "tagcity" }

An object containing information about the customer. It is important to note that the order may not have a customer and consumers should not depend on the existance of a customer object. This value may be null if the order was created through Shopify POS

Customer objects may contain the following fields:
  • accepts_marketing: Indicates whether or not the customer would like to receive email updates from the shop. Valid values are true and false.
  • created_at: The date and time when the customer record was created.
  • email: The customer's email address.
  • first_name: The customer's first name.
  • order_id: A unique numeric identifier for the customer.
  • last_name: The customer's last name.
  • note: Extra information about the customer
  • orders_count: The number of orders placed by this customer to a shop. Pulls the current information
  • state:
  • total_spent:
  • updated_at: The date and time when the customer record was last updated.
  • tags: Tags are additional short descriptors. Tags are formatted as a string of comma-separated values. For example, if an order has three tags: tag1, tag2, tag3.

discount_codes
{ "discount_codes" : "[]" }

Applicable discount codes that can be applied to the order. If no codes exist the value will default to blank.

A Discount code will include the following fields:
  • amount: The amount of the discount.
  • code: The discount code.
  • type: The type of discount. Can be one of: "percentage", "shipping", "fixed_amount" (default).

email
{ "email" : "bob.norman@hostmail.com" }

The customer's email address. Is required when a billing address is present.

financial_status
{ "financial_status" : "authorized" }

  • pending: The finances are pending.
  • authorized: The finances have been authorized.
  • partially_paid: The finances have been partially paid.
  • paid: The finances have been paid. (This is the default value.)
  • partially_refunded: The finances have been partially refunded.
  • refunded: The finances have been refunded.
  • voided: The finances have been voided.

fulfillments
{ "created_at" : "2012-03-13T16:09:54-04:00" }
{ "id" : 255858046 }
{ "order_id" : 450789469 }
{ "status" : "failure" }
{ "tracking_company" : "null" }
{ "tracking_number" : "1Z2345" }
{ "updated_at" : "2012-05-01T14:22:25-04:00" }

  • created_at: The date and time when the fulfillment was created. The API returns this value in ISO 8601 format.
  • id: The unique numeric identifier for the fulfillment.
  • line_items: A historical record of each item in the fulfillment.
  • order_id: The unique numeric identifier for the order.
  • receipt: A textfield with information about the receipt.
  • status: The status of the fulfillment.
  • tracking_company: The name of the shipping company.
  • tracking_number: The shipping number, provided by the shipping company.
  • updated_at: The date and time when the fulfillment was last modified. The API returns this value in ISO 8601 format.

fulfillment_status
{ "fulfillment_status" : "null" }

  • fulfilled: Every line item in the order has been fulfilled.
  • null: None of the line items in the order have been fulfilled.
  • partial: At least one line item in the order has been fulfilled.

tags
{ "tags" : "tagsational" }

Tags are additional short descriptors formatted as a string of comma-separated values. For example, if an order has three tags: tag1, tag2, tag3.

gateway
{ "gateway" : "authorize_net" }

Deprecated as of July 14, 2014. This information is instead available on transactions The payment gateway used.

id
{ "id" : "450789469" }

The unique numeric identifier for the order. This one is used for API purposes. This is different from the order_number property (see below), which is also a unique numeric identifier for the order, but used by the shop owner and customer.

landing_site
{ "landing_site" : "http://www.example.com?source=abc" }

The URL for the page where the buyer landed when entering the shop.

line_items
{ "fulfillable_quantity" : 1 }
{ "fulfillment_service" : "amazon" }
{ "fulfillment_status" : "fulfilled" }
{ "grams" : 500 }
{ "id" : 669751112 }
{ "price" : "199.99" }
{ "product_id" : 7513594 }
{ "quantity" : 1 }
{ "requires_shipping" : true }
{ "sku" : "IPOD-342-N" }
{ "title" : "IPod Nano" }
{ "variant_id" : 4264112 }
{ "variant_title" : "Pink" }
{ "vendor" : "Apple" }
{ "name" : "IPod Nano - Pink" }
{ "gift_card" : false }
{ "taxable" : true }
{ "tax_lines" : "[]" }

A list of line item objects, each one containing information about an item in the order. Each line_item object has the following properties:

  • fulfillable_quantity: The amount available to fulfill. This is the quantity - max(refunded_quantity, fulfilled_quantity) - pending_fulfilled_quantity.
  • fulfillment_service: Service provider who is doing the fulfillment. Valid values are either "manual" or the name of the provider. eg: "amazon", "shipwire", etc.
  • fulfillment_status: How far along an order is in terms line items fulfilled. Valid values are: fulfilled, null or partial.
  • grams: The weight of the item in grams.
  • id: The id of the line item.
  • price: The price of the item.
  • product_id: The unique numeric identifier for the product in the fulfillment. Can be null if the original product associated with the order is deleted at a later date
  • quantity: The number of products that were purchased.
  • requires_shipping: States whether or not the fulfillment requires shipping. Values are: true or false.
  • sku: A unique identifier of the item in the fulfillment.
  • title: The title of the product.
  • variant_id: The id of the product variant.
  • variant_title: The title of the product variant.
  • vendor: The name of the supplier of the item.
  • name: The name of the product variant.
  • gift_card: States wether or not the line_item is a gift card. If so, the item is not taxed or considered for shipping charges.
  • taxable: States whether or not the product was taxable. Values are: true or false.
  • tax_lines: A list of tax_line objects, each of which details the taxes applicable to this line_item.

name
{ "name" : "#1001" }

The customer's order name as represented by a number.

note
{ "note" : "null" }

The text of an optional note that a shop owner can attach to the order.

note_attributes
{ "note_attributes" : [{ "name" : "custom name" }, { "value" : "custom value" }] }

Extra information that is added to the order. Each array entry must contain a hash with "name" and "value" keys as shown above.

number
{ "number" : "1" }

Numerical identifier unique to the shop. A number is sequential and starts at 1000.

order_number
{ "order_number" : 1001 }

A unique numeric identifier for the order. This one is used by the shop owner and customer. This is different from the id property, which is also a unique numeric identifier for the order, but used for API purposes.

payment_details
{ "avs_result_code" : "null" }
{ "credit_card_bin" : "null" }
{ "cvv_result_code" : "null" }
{ "credit_card_number" : "•••• •••• •••• 4242" }
{ "credit_card_company" : "Visa" }

Deprecated as of July 7, 2014. This information is instead available on transactions An object containing information about the payment. It has the following properties:

  • avs_result_code: The Response code from AVS the address verification system. The code is a single letter; see this chart for the codes and their definitions.
  • credit_card_bin: The issuer identification number (IIN), formerly known as bank identification number (BIN) ] of the customer's credit card. This is made up of the first few digits of the credit card number.
  • credit_card_company: The name of the company who issued the customer's credit card.
  • credit_card_number: The customer's credit card number, with most of the leading digits redacted with Xs.
  • cvv_result_code: The Response code from the credit card company indicating whether the customer entered the card security code, a.k.a. card verification value, correctly. The code is a single letter or empty string; see this chart for the codes and their definitions.

processing_method
{ "processing_method" : "direct" }

States the type of payment processing method. Valid values are: checkout, direct, manual, offsite or express.

referring_site
{ "referring_site" : "http://www.anexample.com" }

The website that the customer clicked on to come to the shop.

refund

The list of refunds applied to the order.

shipping_address
{ "address1" : "Chestnut Street 92" }
{ "address2" : "Apt 2" }
{ "city" : "Louisville" }
{ "company" : "null" }
{ "country" : "United States" }
{ "first_name" : "Bob" }
{ "last_name" : "Norman" }
{ "latitude" : "45.41634" }
{ "longitude" : "-75.6868" }
{ "phone" : "555-625-1199" }
{ "province" : "Kentucky" }
{ "zip" : "40202" }
{ "name" : "Bob Norman" }
{ "country_code" : "US" }
{ "province_code" : "KY" }

The mailing address to where the order will be shipped. This address is optional and will not be available on orders that do not require one. It has the following properties:

  • address1: The street address of the shipping address.
  • address2: An optional additional field for the street address of the shipping address.
  • city: The city of the shipping address.
  • company: The company of the person associated with 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.
  • first_name: The first name of the person associated with the payment method.
  • last_name: The last name of the person associated with the payment method.
  • latitude: The latitude of the shipping address.
  • longitude: The longitude of the shipping address.
  • name: The full name of the person associated with the payment method.
  • phone: The phone number at the shipping address.
  • province: The name of the state or province of the shipping address.
  • province_code: The two-letter abbreviation of the state or province of the shipping address.
  • zip: The zip or postal code of the shipping address.

shipping_lines
{ "code" : "Free Shipping" }
{ "price" : 0.0 }
{ "source" : "shopify" }
{ "title" : "Free Shipping" }
{ "tax_lines" : "[]" }

An array of shipping_line objects, each of which details the shipping methods used. Each shipping_line has the following properties:

  • code: A reference to the shipping method.
  • price: The price of this shipping method.
  • source: The source of the shipping method.
  • title: The title of the shipping method.
  • tax_lines: A list of tax_line objects, each of which details the taxes applicable to this shipping_line.
source_name
{ "source_name" : "web" }

Where the order originated. May only be set during creation, and is not writeable thereafter. Orders created through official Shopify channels have protected values that cannot be assigned by other API clients during order creation. These protected values are: "web", "pos", "iphone", and "android" Orders created via the API may be assigned any other string of your choice. If source_name is unspecified, new orders are assigned the value "api".

subtotal_price
{ "subtotal_price" : 398.0 }

Price of the order before shipping and taxes

tax_lines
{ "price" : 11.94 }
{ "rate" : 0.06 }
{ "title" : "State Tax" }

An array of tax_line objects, each of which details the total taxes applicable to the order. Each tax_line has the following properties:

  • price: The amount of tax to be charged.
  • rate: The rate of tax to be applied.
  • title: The name of the tax.

taxes_included
{ "taxes_included" : "false" }

States whether or not taxes are included in the order subtotal. Valid values are "true" or "false".

token
{ "token" : "b1946ac92492d2347c6235b4d2611184" }

Unique identifier for a particular order.

total_discounts
{ "total_discounts" : "0.00" }

The total amount of the discounts to be applied to the price of the order.

total_line_items_price
{ "total_line_items_price" : "398.00" }

The sum of all the prices of all the items in the order.

total_price
{ "total_price" : "409.94" }

The sum of all the prices of all the items in the order, taxes and discounts included (must be positive).

total_tax
{ "total_tax" : "11.94" }

The sum of all the taxes applied to the order (must be positive).

total_weight
{ "total_weight" : "0" }

The sum of all the weights of the line items in the order, in grams.

updated_at
{ "updated_at" : "2012-08-24T14:02:15-04:00" }

The date and time when the order was last modified. The API returns this value in ISO 8601 format.

Endpoints

GET/admin/orders.json

Retrieve a list of all Orders (open Orders by default)

limit

Amount of results

(default: 50) (maximum: 250)
page

Page to show

(default: 1)
since_id

Restrict results to after the specified ID

created_at_min

Show orders created after date (format: 2008-12-31 03:00)

created_at_max

Show orders created before date (format: 2008-12-31 03:00)

updated_at_min

Show orders last updated after date (format: 2008-12-31 03:00)

updated_at_max

Show orders last updated before date (format: 2008-12-31 03:00)

status
  • open - All open orders (default)
  • closed - Show only closed orders
  • cancelled - Show only cancelled orders
  • any - Any order status
financial_status
  • authorized - Show only authorized orders
  • pending - Show only pending orders
  • paid - Show only paid orders
  • partially_paid - Show only partially paid orders
  • refunded - Show only refunded orders
  • voided - Show only voided orders
  • partially_refunded - Show only partially_refunded orders
  • any - Show all authorized, pending, and paid orders (default). This is a filter, not a value.
  • unpaid - Show all authorized, or partially_paid orders. This is a filter, not a value.
fulfillment_status
  • shipped - Show orders that have been shipped
  • partial - Show partially shipped orders
  • unshipped - Show orders that have not yet been shipped
  • any - Show orders with any fulfillment_status. (default)
fields

comma-separated list of fields to include in the response

List all orders

GET /admin/orders.json
View Response
HTTP/1.1 200 OK

{
  "orders": [
    {
      "buyer_accepts_marketing": false,
      "cancel_reason": null,
      "cancelled_at": null,
      "cart_token": "68778783ad298f1c80c3bafcddeea02f",
      "checkout_token": null,
      "closed_at": null,
      "confirmed": false,
      "created_at": "2008-01-10T11:00:00-05:00",
      "currency": "USD",
      "email": "bob.norman@hostmail.com",
      "financial_status": "authorized",
      "fulfillment_status": null,
      "gateway": "authorize_net",
      "id": 450789469,
      "landing_site": "http://www.example.com?source=abc",
      "location_id": null,
      "name": "#1001",
      "note": null,
      "number": 1,
      "reference": "fhwdgads",
      "referring_site": "http://www.otherexample.com",
      "source_identifier": "fhwdgads",
      "source_name": "web",
      "source_url": null,
      "subtotal_price": "398.00",
      "taxes_included": false,
      "test": false,
      "token": "b1946ac92492d2347c6235b4d2611184",
      "total_discounts": "0.00",
      "total_line_items_price": "398.00",
      "total_price": "409.94",
      "total_price_usd": "409.94",
      "total_tax": "11.94",
      "total_weight": 0,
      "updated_at": "2008-01-10T11:00:00-05:00",
      "user_id": null,
      "browser_ip": null,
      "landing_site_ref": "abc",
      "order_number": 1001,
      "discount_codes": [
        {
          "code": "TENOFF",
          "amount": "10.00",
          "type": "percentage"
        }
      ],
      "note_attributes": [
        {
          "name": "custom engraving",
          "value": "Happy Birthday"
        },
        {
          "name": "colour",
          "value": "green"
        }
      ],
      "processing_method": "direct",
      "source": "browser",
      "checkout_id": 450789469,
      "tax_lines": [
        {
          "price": "11.94",
          "rate": 0.06,
          "title": "State Tax"
        }
      ],
      "tags": "",
      "line_items": [
        {
          "fulfillment_service": "manual",
          "fulfillment_status": null,
          "gift_card": false,
          "grams": 200,
          "id": 466157049,
          "price": "199.00",
          "product_id": 632910392,
          "quantity": 1,
          "requires_shipping": true,
          "sku": "IPOD2008GREEN",
          "taxable": true,
          "title": "IPod Nano - 8gb",
          "variant_id": 39072856,
          "variant_title": "green",
          "vendor": null,
          "name": "IPod Nano - 8gb - green",
          "variant_inventory_management": "shopify",
          "properties": [
            {
              "name": "Custom Engraving",
              "value": "Happy Birthday"
            }
          ],
          "product_exists": true,
          "fulfillable_quantity": 1,
          "tax_lines": [

          ]
        },
        {
          "fulfillment_service": "manual",
          "fulfillment_status": null,
          "gift_card": false,
          "grams": 200,
          "id": 518995019,
          "price": "199.00",
          "product_id": 632910392,
          "quantity": 1,
          "requires_shipping": true,
          "sku": "IPOD2008RED",
          "taxable": true,
          "title": "IPod Nano - 8gb",
          "variant_id": 49148385,
          "variant_title": "red",
          "vendor": null,
          "name": "IPod Nano - 8gb - red",
          "variant_inventory_management": "shopify",
          "properties": [

          ],
          "product_exists": true,
          "fulfillable_quantity": 1,
          "tax_lines": [

          ]
        },
        {
          "fulfillment_service": "manual",
          "fulfillment_status": null,
          "gift_card": false,
          "grams": 200,
          "id": 703073504,
          "price": "199.00",
          "product_id": 632910392,
          "quantity": 1,
          "requires_shipping": true,
          "sku": "IPOD2008BLACK",
          "taxable": true,
          "title": "IPod Nano - 8gb",
          "variant_id": 457924702,
          "variant_title": "black",
          "vendor": null,
          "name": "IPod Nano - 8gb - black",
          "variant_inventory_management": "shopify",
          "properties": [

          ],
          "product_exists": true,
          "fulfillable_quantity": 1,
          "tax_lines": [

          ]
        }
      ],
      "shipping_lines": [
        {
          "code": "Free Shipping",
          "price": "0.00",
          "source": "shopify",
          "title": "Free Shipping",
          "tax_lines": [

          ]
        }
      ],
      "billing_address": {
        "address1": "Chestnut Street 92",
        "address2": "",
        "city": "Louisville",
        "company": null,
        "country": "United States",
        "first_name": "Bob",
        "last_name": "Norman",
        "latitude": 45.41634,
        "longitude": -75.6868,
        "phone": "555-625-1199",
        "province": "Kentucky",
        "zip": "40202",
        "name": "Bob Norman",
        "country_code": "US",
        "province_code": "KY"
      },
      "shipping_address": {
        "address1": "Chestnut Street 92",
        "address2": "",
        "city": "Louisville",
        "company": null,
        "country": "United States",
        "first_name": "Bob",
        "last_name": "Norman",
        "latitude": 45.41634,
        "longitude": -75.6868,
        "phone": "555-625-1199",
        "province": "Kentucky",
        "zip": "40202",
        "name": "Bob Norman",
        "country_code": "US",
        "province_code": "KY"
      },
      "fulfillments": [
        {
          "created_at": "2014-08-27T14:04:32-04:00",
          "id": 255858046,
          "order_id": 450789469,
          "service": "manual",
          "status": "failure",
          "tracking_company": null,
          "updated_at": "2014-08-27T14:04:32-04:00",
          "tracking_number": "1Z2345",
          "tracking_numbers": [
            "1Z2345"
          ],
          "tracking_url": "http://wwwapps.ups.com/etracking/tracking.cgi?InquiryNumber1=1Z2345&TypeOfInquiryNumber=T&AcceptUPSLicenseAgreement=yes&submit=Track",
          "tracking_urls": [
            "http://wwwapps.ups.com/etracking/tracking.cgi?InquiryNumber1=1Z2345&TypeOfInquiryNumber=T&AcceptUPSLicenseAgreement=yes&submit=Track"
          ],
          "receipt": {
            "testcase": true,
            "authorization": "123456"
          },
          "line_items": [
            {
              "fulfillment_service": "manual",
              "fulfillment_status": null,
              "gift_card": false,
              "grams": 200,
              "id": 466157049,
              "price": "199.00",
              "product_id": 632910392,
              "quantity": 1,
              "requires_shipping": true,
              "sku": "IPOD2008GREEN",
              "taxable": true,
              "title": "IPod Nano - 8gb",
              "variant_id": 39072856,
              "variant_title": "green",
              "vendor": null,
              "name": "IPod Nano - 8gb - green",
              "variant_inventory_management": "shopify",
              "properties": [
                {
                  "name": "Custom Engraving",
                  "value": "Happy Birthday"
                }
              ],
              "product_exists": true,
              "fulfillable_quantity": 1,
              "tax_lines": [

              ]
            }
          ]
        }
      ],
      "client_details": {
        "accept_language": null,
        "browser_height": null,
        "browser_ip": "0.0.0.0",
        "browser_width": null,
        "session_hash": null,
        "user_agent": null
      },
      "refunds": [
        {
          "created_at": "2014-08-27T14:04:32-04:00",
          "id": 509562969,
          "note": "it broke during shipping",
          "order_id": 450789469,
          "restock": true,
          "user_id": 799407056,
          "refund_line_items": [
            {
              "id": 104689539,
              "line_item_id": 703073504,
              "quantity": 1,
              "line_item": {
                "fulfillment_service": "manual",
                "fulfillment_status": null,
                "gift_card": false,
                "grams": 200,
                "id": 703073504,
                "price": "199.00",
                "product_id": 632910392,
                "quantity": 1,
                "requires_shipping": true,
                "sku": "IPOD2008BLACK",
                "taxable": true,
                "title": "IPod Nano - 8gb",
                "variant_id": 457924702,
                "variant_title": "black",
                "vendor": null,
                "name": "IPod Nano - 8gb - black",
                "variant_inventory_management": "shopify",
                "properties": [

                ],
                "product_exists": true,
                "fulfillable_quantity": 1,
                "tax_lines": [

                ]
              }
            },
            {
              "id": 709875399,
              "line_item_id": 466157049,
              "quantity": 1,
              "line_item": {
                "fulfillment_service": "manual",
                "fulfillment_status": null,
                "gift_card": false,
                "grams": 200,
                "id": 466157049,
                "price": "199.00",
                "product_id": 632910392,
                "quantity": 1,
                "requires_shipping": true,
                "sku": "IPOD2008GREEN",
                "taxable": true,
                "title": "IPod Nano - 8gb",
                "variant_id": 39072856,
                "variant_title": "green",
                "vendor": null,
                "name": "IPod Nano - 8gb - green",
                "variant_inventory_management": "shopify",
                "properties": [
                  {
                    "name": "Custom Engraving",
                    "value": "Happy Birthday"
                  }
                ],
                "product_exists": true,
                "fulfillable_quantity": 1,
                "tax_lines": [

                ]
              }
            }
          ],
          "transactions": [
            {
              "amount": "209.00",
              "authorization": "authorization-key",
              "created_at": "2005-08-05T12:59:12-04:00",
              "gateway": "bogus",
              "id": 179259969,
              "kind": "refund",
              "location_id": null,
              "message": null,
              "order_id": 450789469,
              "parent_id": null,
              "source_name": null,
              "status": "success",
              "test": false,
              "user_id": null,
              "device_id": null,
              "receipt": {}
            }
          ]
        }
      ],
      "payment_details": {
        "avs_result_code": null,
        "credit_card_bin": null,
        "cvv_result_code": null,
        "credit_card_number": "•••• •••• •••• 4242",
        "credit_card_company": "Visa"
      },
      "customer": {
        "accepts_marketing": false,
        "created_at": "2014-08-27T14:04:32-04:00",
        "email": "bob.norman@hostmail.com",
        "first_name": "Bob",
        "id": 207119551,
        "last_name": "Norman",
        "last_order_id": 450789469,
        "multipass_identifier": null,
        "note": null,
        "orders_count": 1,
        "state": "disabled",
        "total_spent": "200.94",
        "updated_at": "2014-08-27T14:04:32-04:00",
        "verified_email": true,
        "tags": "",
        "last_order_name": "#1001",
        "default_address": {
          "address1": "Chestnut Street 92",
          "address2": "",
          "city": "Louisville",
          "company": null,
          "country": "United States",
          "first_name": null,
          "id": 207119551,
          "last_name": null,
          "phone": "555-625-1199",
          "province": "Kentucky",
          "zip": "40202",
          "name": null,
          "province_code": "KY",
          "country_code": "US",
          "country_name": "United States",
          "default": true
        }
      }
    }
  ]
}

List orders which are authorized and ready to be captured.

GET /admin/orders.json?financial_status=authorized
View Response
HTTP/1.1 200 OK

{
  "orders": [
    {
      "buyer_accepts_marketing": false,
      "cancel_reason": null,
      "cancelled_at": null,
      "cart_token": "68778783ad298f1c80c3bafcddeea02f",
      "checkout_token": null,
      "closed_at": null,
      "confirmed": false,
      "created_at": "2008-01-10T11:00:00-05:00",
      "currency": "USD",
      "email": "bob.norman@hostmail.com",
      "financial_status": "authorized",
      "fulfillment_status": null,
      "gateway": "authorize_net",
      "id": 450789469,
      "landing_site": "http://www.example.com?source=abc",
      "location_id": null,
      "name": "#1001",
      "note": null,
      "number": 1,
      "reference": "fhwdgads",
      "referring_site": "http://www.otherexample.com",
      "source_identifier": "fhwdgads",
      "source_name": "web",
      "source_url": null,
      "subtotal_price": "398.00",
      "taxes_included": false,
      "test": false,
      "token": "b1946ac92492d2347c6235b4d2611184",
      "total_discounts": "0.00",
      "total_line_items_price": "398.00",
      "total_price": "409.94",
      "total_price_usd": "409.94",
      "total_tax": "11.94",
      "total_weight": 0,
      "updated_at": "2008-01-10T11:00:00-05:00",
      "user_id": null,
      "browser_ip": null,
      "landing_site_ref": "abc",
      "order_number": 1001,
      "discount_codes": [
        {
          "code": "TENOFF",
          "amount": "10.00",
          "type": "percentage"
        }
      ],
      "note_attributes": [
        {
          "name": "custom engraving",
          "value": "Happy Birthday"
        },
        {
          "name": "colour",
          "value": "green"
        }
      ],
      "processing_method": "direct",
      "source": "browser",
      "checkout_id": 450789469,
      "tax_lines": [
        {
          "price": "11.94",
          "rate": 0.06,
          "title": "State Tax"
        }
      ],
      "tags": "",
      "line_items": [
        {
          "fulfillment_service": "manual",
          "fulfillment_status": null,
          "gift_card": false,
          "grams": 200,
          "id": 466157049,
          "price": "199.00",
          "product_id": 632910392,
          "quantity": 1,
          "requires_shipping": true,
          "sku": "IPOD2008GREEN",
          "taxable": true,
          "title": "IPod Nano - 8gb",
          "variant_id": 39072856,
          "variant_title": "green",
          "vendor": null,
          "name": "IPod Nano - 8gb - green",
          "variant_inventory_management": "shopify",
          "properties": [
            {
              "name": "Custom Engraving",
              "value": "Happy Birthday"
            }
          ],
          "product_exists": true,
          "fulfillable_quantity": 1,
          "tax_lines": [

          ]
        },
        {
          "fulfillment_service": "manual",
          "fulfillment_status": null,
          "gift_card": false,
          "grams": 200,
          "id": 518995019,
          "price": "199.00",
          "product_id": 632910392,
          "quantity": 1,
          "requires_shipping": true,
          "sku": "IPOD2008RED",
          "taxable": true,
          "title": "IPod Nano - 8gb",
          "variant_id": 49148385,
          "variant_title": "red",
          "vendor": null,
          "name": "IPod Nano - 8gb - red",
          "variant_inventory_management": "shopify",
          "properties": [

          ],
          "product_exists": true,
          "fulfillable_quantity": 1,
          "tax_lines": [

          ]
        },
        {
          "fulfillment_service": "manual",
          "fulfillment_status": null,
          "gift_card": false,
          "grams": 200,
          "id": 703073504,
          "price": "199.00",
          "product_id": 632910392,
          "quantity": 1,
          "requires_shipping": true,
          "sku": "IPOD2008BLACK",
          "taxable": true,
          "title": "IPod Nano - 8gb",
          "variant_id": 457924702,
          "variant_title": "black",
          "vendor": null,
          "name": "IPod Nano - 8gb - black",
          "variant_inventory_management": "shopify",
          "properties": [

          ],
          "product_exists": true,
          "fulfillable_quantity": 1,
          "tax_lines": [

          ]
        }
      ],
      "shipping_lines": [
        {
          "code": "Free Shipping",
          "price": "0.00",
          "source": "shopify",
          "title": "Free Shipping",
          "tax_lines": [

          ]
        }
      ],
      "billing_address": {
        "address1": "Chestnut Street 92",
        "address2": "",
        "city": "Louisville",
        "company": null,
        "country": "United States",
        "first_name": "Bob",
        "last_name": "Norman",
        "latitude": 45.41634,
        "longitude": -75.6868,
        "phone": "555-625-1199",
        "province": "Kentucky",
        "zip": "40202",
        "name": "Bob Norman",
        "country_code": "US",
        "province_code": "KY"
      },
      "shipping_address": {
        "address1": "Chestnut Street 92",
        "address2": "",
        "city": "Louisville",
        "company": null,
        "country": "United States",
        "first_name": "Bob",
        "last_name": "Norman",
        "latitude": 45.41634,
        "longitude": -75.6868,
        "phone": "555-625-1199",
        "province": "Kentucky",
        "zip": "40202",
        "name": "Bob Norman",
        "country_code": "US",
        "province_code": "KY"
      },
      "fulfillments": [
        {
          "created_at": "2014-08-27T14:04:32-04:00",
          "id": 255858046,
          "order_id": 450789469,
          "service": "manual",
          "status": "failure",
          "tracking_company": null,
          "updated_at": "2014-08-27T14:04:32-04:00",
          "tracking_number": "1Z2345",
          "tracking_numbers": [
            "1Z2345"
          ],
          "tracking_url": "http://wwwapps.ups.com/etracking/tracking.cgi?InquiryNumber1=1Z2345&TypeOfInquiryNumber=T&AcceptUPSLicenseAgreement=yes&submit=Track",
          "tracking_urls": [
            "http://wwwapps.ups.com/etracking/tracking.cgi?InquiryNumber1=1Z2345&TypeOfInquiryNumber=T&AcceptUPSLicenseAgreement=yes&submit=Track"
          ],
          "receipt": {
            "testcase": true,
            "authorization": "123456"
          },
          "line_items": [
            {
              "fulfillment_service": "manual",
              "fulfillment_status": null,
              "gift_card": false,
              "grams": 200,
              "id": 466157049,
              "price": "199.00",
              "product_id": 632910392,
              "quantity": 1,
              "requires_shipping": true,
              "sku": "IPOD2008GREEN",
              "taxable": true,
              "title": "IPod Nano - 8gb",
              "variant_id": 39072856,
              "variant_title": "green",
              "vendor": null,
              "name": "IPod Nano - 8gb - green",
              "variant_inventory_management": "shopify",
              "properties": [
                {
                  "name": "Custom Engraving",
                  "value": "Happy Birthday"
                }
              ],
              "product_exists": true,
              "fulfillable_quantity": 1,
              "tax_lines": [

              ]
            }
          ]
        }
      ],
      "client_details": {
        "accept_language": null,
        "browser_height": null,
        "browser_ip": "0.0.0.0",
        "browser_width": null,
        "session_hash": null,
        "user_agent": null
      },
      "refunds": [
        {
          "created_at": "2014-08-27T14:04:32-04:00",
          "id": 509562969,
          "note": "it broke during shipping",
          "order_id": 450789469,
          "restock": true,
          "user_id": 799407056,
          "refund_line_items": [
            {
              "id": 104689539,
              "line_item_id": 703073504,
              "quantity": 1,
              "line_item": {
                "fulfillment_service": "manual",
                "fulfillment_status": null,
                "gift_card": false,
                "grams": 200,
                "id": 703073504,
                "price": "199.00",
                "product_id": 632910392,
                "quantity": 1,
                "requires_shipping": true,
                "sku": "IPOD2008BLACK",
                "taxable": true,
                "title": "IPod Nano - 8gb",
                "variant_id": 457924702,
                "variant_title": "black",
                "vendor": null,
                "name": "IPod Nano - 8gb - black",
                "variant_inventory_management": "shopify",
                "properties": [

                ],
                "product_exists": true,
                "fulfillable_quantity": 1,
                "tax_lines": [

                ]
              }
            },
            {
              "id": 709875399,
              "line_item_id": 466157049,
              "quantity": 1,
              "line_item": {
                "fulfillment_service": "manual",
                "fulfillment_status": null,
                "gift_card": false,
                "grams": 200,
                "id": 466157049,
                "price": "199.00",
                "product_id": 632910392,
                "quantity": 1,
                "requires_shipping": true,
                "sku": "IPOD2008GREEN",
                "taxable": true,
                "title": "IPod Nano - 8gb",
                "variant_id": 39072856,
                "variant_title": "green",
                "vendor": null,
                "name": "IPod Nano - 8gb - green",
                "variant_inventory_management": "shopify",
                "properties": [
                  {
                    "name": "Custom Engraving",
                    "value": "Happy Birthday"
                  }
                ],
                "product_exists": true,
                "fulfillable_quantity": 1,
                "tax_lines": [

                ]
              }
            }
          ],
          "transactions": [
            {
              "amount": "209.00",
              "authorization": "authorization-key",
              "created_at": "2005-08-05T12:59:12-04:00",
              "gateway": "bogus",
              "id": 179259969,
              "kind": "refund",
              "location_id": null,
              "message": null,
              "order_id": 450789469,
              "parent_id": null,
              "source_name": null,
              "status": "success",
              "test": false,
              "user_id": null,
              "device_id": null,
              "receipt": {}
            }
          ]
        }
      ],
      "payment_details": {
        "avs_result_code": null,
        "credit_card_bin": null,
        "cvv_result_code": null,
        "credit_card_number": "•••• •••• •••• 4242",
        "credit_card_company": "Visa"
      },
      "customer": {
        "accepts_marketing": false,
        "created_at": "2014-08-27T14:04:32-04:00",
        "email": "bob.norman@hostmail.com",
        "first_name": "Bob",
        "id": 207119551,
        "last_name": "Norman",
        "last_order_id": 450789469,
        "multipass_identifier": null,
        "note": null,
        "orders_count": 1,
        "state": "disabled",
        "total_spent": "200.94",
        "updated_at": "2014-08-27T14:04:32-04:00",
        "verified_email": true,
        "tags": "",
        "last_order_name": "#1001",
        "default_address": {
          "address1": "Chestnut Street 92",
          "address2": "",
          "city": "Louisville",
          "company": null,
          "country": "United States",
          "first_name": null,
          "id": 207119551,
          "last_name": null,
          "phone": "555-625-1199",
          "province": "Kentucky",
          "zip": "40202",
          "name": null,
          "province_code": "KY",
          "country_code": "US",
          "country_name": "United States",
          "default": true
        }
      }
    }
  ]
}

List orders last updated after 2005-07-31 15:57:11 in the EDT timezone

GET /admin/orders.json?updated_at_min=2005-07-31 15:57:11 EDT -04:00
View Response
HTTP/1.1 200 OK

{
  "orders": [
    {
      "buyer_accepts_marketing": false,
      "cancel_reason": null,
      "cancelled_at": null,
      "cart_token": "68778783ad298f1c80c3bafcddeea02f",
      "checkout_token": null,
      "closed_at": null,
      "confirmed": false,
      "created_at": "2008-01-10T11:00:00-05:00",
      "currency": "USD",
      "email": "bob.norman@hostmail.com",
      "financial_status": "authorized",
      "fulfillment_status": null,
      "gateway": "authorize_net",
      "id": 450789469,
      "landing_site": "http://www.example.com?source=abc",
      "location_id": null,
      "name": "#1001",
      "note": null,
      "number": 1,
      "reference": "fhwdgads",
      "referring_site": "http://www.otherexample.com",
      "source_identifier": "fhwdgads",
      "source_name": "web",
      "source_url": null,
      "subtotal_price": "398.00",
      "taxes_included": false,
      "test": false,
      "token": "b1946ac92492d2347c6235b4d2611184",
      "total_discounts": "0.00",
      "total_line_items_price": "398.00",
      "total_price": "409.94",
      "total_price_usd": "409.94",
      "total_tax": "11.94",
      "total_weight": 0,
      "updated_at": "2008-01-10T11:00:00-05:00",
      "user_id": null,
      "browser_ip": null,
      "landing_site_ref": "abc",
      "order_number": 1001,
      "discount_codes": [
        {
          "code": "TENOFF",
          "amount": "10.00",
          "type": "percentage"
        }
      ],
      "note_attributes": [
        {
          "name": "custom engraving",
          "value": "Happy Birthday"
        },
        {
          "name": "colour",
          "value": "green"
        }
      ],
      "processing_method": "direct",
      "source": "browser",
      "checkout_id": 450789469,
      "tax_lines": [
        {
          "price": "11.94",
          "rate": 0.06,
          "title": "State Tax"
        }
      ],
      "tags": "",
      "line_items": [
        {
          "fulfillment_service": "manual",
          "fulfillment_status": null,
          "gift_card": false,
          "grams": 200,
          "id": 466157049,
          "price": "199.00",
          "product_id": 632910392,
          "quantity": 1,
          "requires_shipping": true,
          "sku": "IPOD2008GREEN",
          "taxable": true,
          "title": "IPod Nano - 8gb",
          "variant_id": 39072856,
          "variant_title": "green",
          "vendor": null,
          "name": "IPod Nano - 8gb - green",
          "variant_inventory_management": "shopify",
          "properties": [
            {
              "name": "Custom Engraving",
              "value": "Happy Birthday"
            }
          ],
          "product_exists": true,
          "fulfillable_quantity": 1,
          "tax_lines": [

          ]
        },
        {
          "fulfillment_service": "manual",
          "fulfillment_status": null,
          "gift_card": false,
          "grams": 200,
          "id": 518995019,
          "price": "199.00",
          "product_id": 632910392,
          "quantity": 1,
          "requires_shipping": true,
          "sku": "IPOD2008RED",
          "taxable": true,
          "title": "IPod Nano - 8gb",
          "variant_id": 49148385,
          "variant_title": "red",
          "vendor": null,
          "name": "IPod Nano - 8gb - red",
          "variant_inventory_management": "shopify",
          "properties": [

          ],
          "product_exists": true,
          "fulfillable_quantity": 1,
          "tax_lines": [

          ]
        },
        {
          "fulfillment_service": "manual",
          "fulfillment_status": null,
          "gift_card": false,
          "grams": 200,
          "id": 703073504,
          "price": "199.00",
          "product_id": 632910392,
          "quantity": 1,
          "requires_shipping": true,
          "sku": "IPOD2008BLACK",
          "taxable": true,
          "title": "IPod Nano - 8gb",
          "variant_id": 457924702,
          "variant_title": "black",
          "vendor": null,
          "name": "IPod Nano - 8gb - black",
          "variant_inventory_management": "shopify",
          "properties": [

          ],
          "product_exists": true,
          "fulfillable_quantity": 1,
          "tax_lines": [

          ]
        }
      ],
      "shipping_lines": [
        {
          "code": "Free Shipping",
          "price": "0.00",
          "source": "shopify",
          "title": "Free Shipping",
          "tax_lines": [

          ]
        }
      ],
      "billing_address": {
        "address1": "Chestnut Street 92",
        "address2": "",
        "city": "Louisville",
        "company": null,
        "country": "United States",
        "first_name": "Bob",
        "last_name": "Norman",
        "latitude": 45.41634,
        "longitude": -75.6868,
        "phone": "555-625-1199",
        "province": "Kentucky",
        "zip": "40202",
        "name": "Bob Norman",
        "country_code": "US",
        "province_code": "KY"
      },
      "shipping_address": {
        "address1": "Chestnut Street 92",
        "address2": "",
        "city": "Louisville",
        "company": null,
        "country": "United States",
        "first_name": "Bob",
        "last_name": "Norman",
        "latitude": 45.41634,
        "longitude": -75.6868,
        "phone": "555-625-1199",
        "province": "Kentucky",
        "zip": "40202",
        "name": "Bob Norman",
        "country_code": "US",
        "province_code": "KY"
      },
      "fulfillments": [
        {
          "created_at": "2014-08-27T14:04:32-04:00",
          "id": 255858046,
          "order_id": 450789469,
          "service": "manual",
          "status": "failure",
          "tracking_company": null,
          "updated_at": "2014-08-27T14:04:32-04:00",
          "tracking_number": "1Z2345",
          "tracking_numbers": [
            "1Z2345"
          ],
          "tracking_url": "http://wwwapps.ups.com/etracking/tracking.cgi?InquiryNumber1=1Z2345&TypeOfInquiryNumber=T&AcceptUPSLicenseAgreement=yes&submit=Track",
          "tracking_urls": [
            "http://wwwapps.ups.com/etracking/tracking.cgi?InquiryNumber1=1Z2345&TypeOfInquiryNumber=T&AcceptUPSLicenseAgreement=yes&submit=Track"
          ],
          "receipt": {
            "testcase": true,
            "authorization": "123456"
          },
          "line_items": [
            {
              "fulfillment_service": "manual",
              "fulfillment_status": null,
              "gift_card": false,
              "grams": 200,
              "id": 466157049,
              "price": "199.00",
              "product_id": 632910392,
              "quantity": 1,
              "requires_shipping": true,
              "sku": "IPOD2008GREEN",
              "taxable": true,
              "title": "IPod Nano - 8gb",
              "variant_id": 39072856,
              "variant_title": "green",
              "vendor": null,
              "name": "IPod Nano - 8gb - green",
              "variant_inventory_management": "shopify",
              "properties": [
                {
                  "name": "Custom Engraving",
                  "value": "Happy Birthday"
                }
              ],
              "product_exists": true,
              "fulfillable_quantity": 1,
              "tax_lines": [

              ]
            }
          ]
        }
      ],
      "client_details": {
        "accept_language": null,
        "browser_height": null,
        "browser_ip": "0.0.0.0",
        "browser_width": null,
        "session_hash": null,
        "user_agent": null
      },
      "refunds": [
        {
          "created_at": "2014-08-27T14:04:32-04:00",
          "id": 509562969,
          "note": "it broke during shipping",
          "order_id": 450789469,
          "restock": true,
          "user_id": 799407056,
          "refund_line_items": [
            {
              "id": 104689539,
              "line_item_id": 703073504,
              "quantity": 1,
              "line_item": {
                "fulfillment_service": "manual",
                "fulfillment_status": null,
                "gift_card": false,
                "grams": 200,
                "id": 703073504,
                "price": "199.00",
                "product_id": 632910392,
                "quantity": 1,
                "requires_shipping": true,
                "sku": "IPOD2008BLACK",
                "taxable": true,
                "title": "IPod Nano - 8gb",
                "variant_id": 457924702,
                "variant_title": "black",
                "vendor": null,
                "name": "IPod Nano - 8gb - black",
                "variant_inventory_management": "shopify",
                "properties": [

                ],
                "product_exists": true,
                "fulfillable_quantity": 1,
                "tax_lines": [

                ]
              }
            },
            {
              "id": 709875399,
              "line_item_id": 466157049,
              "quantity": 1,
              "line_item": {
                "fulfillment_service": "manual",
                "fulfillment_status": null,
                "gift_card": false,
                "grams": 200,
                "id": 466157049,
                "price": "199.00",
                "product_id": 632910392,
                "quantity": 1,
                "requires_shipping": true,
                "sku": "IPOD2008GREEN",
                "taxable": true,
                "title": "IPod Nano - 8gb",
                "variant_id": 39072856,
                "variant_title": "green",
                "vendor": null,
                "name": "IPod Nano - 8gb - green",
                "variant_inventory_management": "shopify",
                "properties": [
                  {
                    "name": "Custom Engraving",
                    "value": "Happy Birthday"
                  }
                ],
                "product_exists": true,
                "fulfillable_quantity": 1,
                "tax_lines": [

                ]
              }
            }
          ],
          "transactions": [
            {
              "amount": "209.00",
              "authorization": "authorization-key",
              "created_at": "2005-08-05T12:59:12-04:00",
              "gateway": "bogus",
              "id": 179259969,
              "kind": "refund",
              "location_id": null,
              "message": null,
              "order_id": 450789469,
              "parent_id": null,
              "source_name": null,
              "status": "success",
              "test": false,
              "user_id": null,
              "device_id": null,
              "receipt": {}
            }
          ]
        }
      ],
      "payment_details": {
        "avs_result_code": null,
        "credit_card_bin": null,
        "cvv_result_code": null,
        "credit_card_number": "•••• •••• •••• 4242",
        "credit_card_company": "Visa"
      },
      "customer": {
        "accepts_marketing": false,
        "created_at": "2014-08-27T14:04:32-04:00",
        "email": "bob.norman@hostmail.com",
        "first_name": "Bob",
        "id": 207119551,
        "last_name": "Norman",
        "last_order_id": 450789469,
        "multipass_identifier": null,
        "note": null,
        "orders_count": 1,
        "state": "disabled",
        "total_spent": "200.94",
        "updated_at": "2014-08-27T14:04:32-04:00",
        "verified_email": true,
        "tags": "",
        "last_order_name": "#1001",
        "default_address": {
          "address1": "Chestnut Street 92",
          "address2": "",
          "city": "Louisville",
          "company": null,
          "country": "United States",
          "first_name": null,
          "id": 207119551,
          "last_name": null,
          "phone": "555-625-1199",
          "province": "Kentucky",
          "zip": "40202",
          "name": null,
          "province_code": "KY",
          "country_code": "US",
          "country_name": "United States",
          "default": true
        }
      }
    }
  ]
}

List all orders, showing only some attributes

GET /admin/orders.json?fields=created_at,id,name,total-price
View Response
HTTP/1.1 200 OK

{
  "orders": [
    {
      "created_at": "2008-01-10T11:00:00-05:00",
      "id": 450789469,
      "name": "#1001",
      "total_price": "409.94"
    }
  ]
}

List all orders after the specified ID

GET /admin/orders.json?since_id=123
View Response
HTTP/1.1 200 OK

{
  "orders": [
    {
      "buyer_accepts_marketing": false,
      "cancel_reason": null,
      "cancelled_at": null,
      "cart_token": "68778783ad298f1c80c3bafcddeea02f",
      "checkout_token": null,
      "closed_at": null,
      "confirmed": false,
      "created_at": "2008-01-10T11:00:00-05:00",
      "currency": "USD",
      "email": "bob.norman@hostmail.com",
      "financial_status": "authorized",
      "fulfillment_status": null,
      "gateway": "authorize_net",
      "id": 450789469,
      "landing_site": "http://www.example.com?source=abc",
      "location_id": null,
      "name": "#1001",
      "note": null,
      "number": 1,
      "reference": "fhwdgads",
      "referring_site": "http://www.otherexample.com",
      "source_identifier": "fhwdgads",
      "source_name": "web",
      "source_url": null,
      "subtotal_price": "398.00",
      "taxes_included": false,
      "test": false,
      "token": "b1946ac92492d2347c6235b4d2611184",
      "total_discounts": "0.00",
      "total_line_items_price": "398.00",
      "total_price": "409.94",
      "total_price_usd": "409.94",
      "total_tax": "11.94",
      "total_weight": 0,
      "updated_at": "2008-01-10T11:00:00-05:00",
      "user_id": null,
      "browser_ip": null,
      "landing_site_ref": "abc",
      "order_number": 1001,
      "discount_codes": [
        {
          "code": "TENOFF",
          "amount": "10.00",
          "type": "percentage"
        }
      ],
      "note_attributes": [
        {
          "name": "custom engraving",
          "value": "Happy Birthday"
        },
        {
          "name": "colour",
          "value": "green"
        }
      ],
      "processing_method": "direct",
      "source": "browser",
      "checkout_id": 450789469,
      "tax_lines": [
        {
          "price": "11.94",
          "rate": 0.06,
          "title": "State Tax"
        }
      ],
      "tags": "",
      "line_items": [
        {
          "fulfillment_service": "manual",
          "fulfillment_status": null,
          "gift_card": false,
          "grams": 200,
          "id": 466157049,
          "price": "199.00",
          "product_id": 632910392,
          "quantity": 1,
          "requires_shipping": true,
          "sku": "IPOD2008GREEN",
          "taxable": true,
          "title": "IPod Nano - 8gb",
          "variant_id": 39072856,
          "variant_title": "green",
          "vendor": null,
          "name": "IPod Nano - 8gb - green",
          "variant_inventory_management": "shopify",
          "properties": [
            {
              "name": "Custom Engraving",
              "value": "Happy Birthday"
            }
          ],
          "product_exists": true,
          "fulfillable_quantity": 1,
          "tax_lines": [

          ]
        },
        {
          "fulfillment_service": "manual",
          "fulfillment_status": null,
          "gift_card": false,
          "grams": 200,
          "id": 518995019,
          "price": "199.00",
          "product_id": 632910392,
          "quantity": 1,
          "requires_shipping": true,
          "sku": "IPOD2008RED",
          "taxable": true,
          "title": "IPod Nano - 8gb",
          "variant_id": 49148385,
          "variant_title": "red",
          "vendor": null,
          "name": "IPod Nano - 8gb - red",
          "variant_inventory_management": "shopify",
          "properties": [

          ],
          "product_exists": true,
          "fulfillable_quantity": 1,
          "tax_lines": [

          ]
        },
        {
          "fulfillment_service": "manual",
          "fulfillment_status": null,
          "gift_card": false,
          "grams": 200,
          "id": 703073504,
          "price": "199.00",
          "product_id": 632910392,
          "quantity": 1,
          "requires_shipping": true,
          "sku": "IPOD2008BLACK",
          "taxable": true,
          "title": "IPod Nano - 8gb",
          "variant_id": 457924702,
          "variant_title": "black",
          "vendor": null,
          "name": "IPod Nano - 8gb - black",
          "variant_inventory_management": "shopify",
          "properties": [

          ],
          "product_exists": true,
          "fulfillable_quantity": 1,
          "tax_lines": [

          ]
        }
      ],
      "shipping_lines": [
        {
          "code": "Free Shipping",
          "price": "0.00",
          "source": "shopify",
          "title": "Free Shipping",
          "tax_lines": [

          ]
        }
      ],
      "billing_address": {
        "address1": "Chestnut Street 92",
        "address2": "",
        "city": "Louisville",
        "company": null,
        "country": "United States",
        "first_name": "Bob",
        "last_name": "Norman",
        "latitude": 45.41634,
        "longitude": -75.6868,
        "phone": "555-625-1199",
        "province": "Kentucky",
        "zip": "40202",
        "name": "Bob Norman",
        "country_code": "US",
        "province_code": "KY"
      },
      "shipping_address": {
        "address1": "Chestnut Street 92",
        "address2": "",
        "city": "Louisville",
        "company": null,
        "country": "United States",
        "first_name": "Bob",
        "last_name": "Norman",
        "latitude": 45.41634,
        "longitude": -75.6868,
        "phone": "555-625-1199",
        "province": "Kentucky",
        "zip": "40202",
        "name": "Bob Norman",
        "country_code": "US",
        "province_code": "KY"
      },
      "fulfillments": [
        {
          "created_at": "2014-08-27T14:04:32-04:00",
          "id": 255858046,
          "order_id": 450789469,
          "service": "manual",
          "status": "failure",
          "tracking_company": null,
          "updated_at": "2014-08-27T14:04:32-04:00",
          "tracking_number": "1Z2345",
          "tracking_numbers": [
            "1Z2345"
          ],
          "tracking_url": "http://wwwapps.ups.com/etracking/tracking.cgi?InquiryNumber1=1Z2345&TypeOfInquiryNumber=T&AcceptUPSLicenseAgreement=yes&submit=Track",
          "tracking_urls": [
            "http://wwwapps.ups.com/etracking/tracking.cgi?InquiryNumber1=1Z2345&TypeOfInquiryNumber=T&AcceptUPSLicenseAgreement=yes&submit=Track"
          ],
          "receipt": {
            "testcase": true,
            "authorization": "123456"
          },
          "line_items": [
            {
              "fulfillment_service": "manual",
              "fulfillment_status": null,
              "gift_card": false,
              "grams": 200,
              "id": 466157049,
              "price": "199.00",
              "product_id": 632910392,
              "quantity": 1,
              "requires_shipping": true,
              "sku": "IPOD2008GREEN",
              "taxable": true,
              "title": "IPod Nano - 8gb",
              "variant_id": 39072856,
              "variant_title": "green",
              "vendor": null,
              "name": "IPod Nano - 8gb - green",
              "variant_inventory_management": "shopify",
              "properties": [
                {
                  "name": "Custom Engraving",
                  "value": "Happy Birthday"
                }
              ],
              "product_exists": true,
              "fulfillable_quantity": 1,
              "tax_lines": [

              ]
            }
          ]
        }
      ],
      "client_details": {
        "accept_language": null,
        "browser_height": null,
        "browser_ip": "0.0.0.0",
        "browser_width": null,
        "session_hash": null,
        "user_agent": null
      },
      "refunds": [
        {
          "created_at": "2014-08-27T14:04:32-04:00",
          "id": 509562969,
          "note": "it broke during shipping",
          "order_id": 450789469,
          "restock": true,
          "user_id": 799407056,
          "refund_line_items": [
            {
              "id": 104689539,
              "line_item_id": 703073504,
              "quantity": 1,
              "line_item": {
                "fulfillment_service": "manual",
                "fulfillment_status": null,
                "gift_card": false,
                "grams": 200,
                "id": 703073504,
                "price": "199.00",
                "product_id": 632910392,
                "quantity": 1,
                "requires_shipping": true,
                "sku": "IPOD2008BLACK",
                "taxable": true,
                "title": "IPod Nano - 8gb",
                "variant_id": 457924702,
                "variant_title": "black",
                "vendor": null,
                "name": "IPod Nano - 8gb - black",
                "variant_inventory_management": "shopify",
                "properties": [

                ],
                "product_exists": true,
                "fulfillable_quantity": 1,
                "tax_lines": [

                ]
              }
            },
            {
              "id": 709875399,
              "line_item_id": 466157049,
              "quantity": 1,
              "line_item": {
                "fulfillment_service": "manual",
                "fulfillment_status": null,
                "gift_card": false,
                "grams": 200,
                "id": 466157049,
                "price": "199.00",
                "product_id": 632910392,
                "quantity": 1,
                "requires_shipping": true,
                "sku": "IPOD2008GREEN",
                "taxable": true,
                "title": "IPod Nano - 8gb",
                "variant_id": 39072856,
                "variant_title": "green",
                "vendor": null,
                "name": "IPod Nano - 8gb - green",
                "variant_inventory_management": "shopify",
                "properties": [
                  {
                    "name": "Custom Engraving",
                    "value": "Happy Birthday"
                  }
                ],
                "product_exists": true,
                "fulfillable_quantity": 1,
                "tax_lines": [

                ]
              }
            }
          ],
          "transactions": [
            {
              "amount": "209.00",
              "authorization": "authorization-key",
              "created_at": "2005-08-05T12:59:12-04:00",
              "gateway": "bogus",
              "id": 179259969,
              "kind": "refund",
              "location_id": null,
              "message": null,
              "order_id": 450789469,
              "parent_id": null,
              "source_name": null,
              "status": "success",
              "test": false,
              "user_id": null,
              "device_id": null,
              "receipt": {}
            }
          ]
        }
      ],
      "payment_details": {
        "avs_result_code": null,
        "credit_card_bin": null,
        "cvv_result_code": null,
        "credit_card_number": "•••• •••• •••• 4242",
        "credit_card_company": "Visa"
      },
      "customer": {
        "accepts_marketing": false,
        "created_at": "2014-08-27T14:04:32-04:00",
        "email": "bob.norman@hostmail.com",
        "first_name": "Bob",
        "id": 207119551,
        "last_name": "Norman",
        "last_order_id": 450789469,
        "multipass_identifier": null,
        "note": null,
        "orders_count": 1,
        "state": "disabled",
        "total_spent": "200.94",
        "updated_at": "2014-08-27T14:04:32-04:00",
        "verified_email": true,
        "tags": "",
        "last_order_name": "#1001",
        "default_address": {
          "address1": "Chestnut Street 92",
          "address2": "",
          "city": "Louisville",
          "company": null,
          "country": "United States",
          "first_name": null,
          "id": 207119551,
          "last_name": null,
          "phone": "555-625-1199",
          "province": "Kentucky",
          "zip": "40202",
          "name": null,
          "province_code": "KY",
          "country_code": "US",
          "country_name": "United States",
          "default": true
        }
      }
    }
  ]
}
GET/admin/orders/450789469.json

Retrieve a specific order

fields

comma-separated list of fields to include in the response

Get a representation of a single order

GET /admin/orders/#{id}.json
View Response
HTTP/1.1 200 OK

{
  "order": {
    "buyer_accepts_marketing": false,
    "cancel_reason": null,
    "cancelled_at": null,
    "cart_token": "68778783ad298f1c80c3bafcddeea02f",
    "checkout_token": null,
    "closed_at": null,
    "confirmed": false,
    "created_at": "2008-01-10T11:00:00-05:00",
    "currency": "USD",
    "email": "bob.norman@hostmail.com",
    "financial_status": "authorized",
    "fulfillment_status": null,
    "gateway": "authorize_net",
    "id": 450789469,
    "landing_site": "http://www.example.com?source=abc",
    "location_id": null,
    "name": "#1001",
    "note": null,
    "number": 1,
    "reference": "fhwdgads",
    "referring_site": "http://www.otherexample.com",
    "source_identifier": "fhwdgads",
    "source_name": "web",
    "source_url": null,
    "subtotal_price": "398.00",
    "taxes_included": false,
    "test": false,
    "token": "b1946ac92492d2347c6235b4d2611184",
    "total_discounts": "0.00",
    "total_line_items_price": "398.00",
    "total_price": "409.94",
    "total_price_usd": "409.94",
    "total_tax": "11.94",
    "total_weight": 0,
    "updated_at": "2008-01-10T11:00:00-05:00",
    "user_id": null,
    "browser_ip": null,
    "landing_site_ref": "abc",
    "order_number": 1001,
    "discount_codes": [
      {
        "code": "TENOFF",
        "amount": "10.00",
        "type": "percentage"
      }
    ],
    "note_attributes": [
      {
        "name": "custom engraving",
        "value": "Happy Birthday"
      },
      {
        "name": "colour",
        "value": "green"
      }
    ],
    "processing_method": "direct",
    "source": "browser",
    "checkout_id": 450789469,
    "tax_lines": [
      {
        "price": "11.94",
        "rate": 0.06,
        "title": "State Tax"
      }
    ],
    "tags": "",
    "line_items": [
      {
        "fulfillment_service": "manual",
        "fulfillment_status": null,
        "gift_card": false,
        "grams": 200,
        "id": 466157049,
        "price": "199.00",
        "product_id": 632910392,
        "quantity": 1,
        "requires_shipping": true,
        "sku": "IPOD2008GREEN",
        "taxable": true,
        "title": "IPod Nano - 8gb",
        "variant_id": 39072856,
        "variant_title": "green",
        "vendor": null,
        "name": "IPod Nano - 8gb - green",
        "variant_inventory_management": "shopify",
        "properties": [
          {
            "name": "Custom Engraving",
            "value": "Happy Birthday"
          }
        ],
        "product_exists": true,
        "fulfillable_quantity": 1,
        "tax_lines": [

        ]
      },
      {
        "fulfillment_service": "manual",
        "fulfillment_status": null,
        "gift_card": false,
        "grams": 200,
        "id": 518995019,
        "price": "199.00",
        "product_id": 632910392,
        "quantity": 1,
        "requires_shipping": true,
        "sku": "IPOD2008RED",
        "taxable": true,
        "title": "IPod Nano - 8gb",
        "variant_id": 49148385,
        "variant_title": "red",
        "vendor": null,
        "name": "IPod Nano - 8gb - red",
        "variant_inventory_management": "shopify",
        "properties": [

        ],
        "product_exists": true,
        "fulfillable_quantity": 1,
        "tax_lines": [

        ]
      },
      {
        "fulfillment_service": "manual",
        "fulfillment_status": null,
        "gift_card": false,
        "grams": 200,
        "id": 703073504,
        "price": "199.00",
        "product_id": 632910392,
        "quantity": 1,
        "requires_shipping": true,
        "sku": "IPOD2008BLACK",
        "taxable": true,
        "title": "IPod Nano - 8gb",
        "variant_id": 457924702,
        "variant_title": "black",
        "vendor": null,
        "name": "IPod Nano - 8gb - black",
        "variant_inventory_management": "shopify",
        "properties": [

        ],
        "product_exists": true,
        "fulfillable_quantity": 1,
        "tax_lines": [

        ]
      }
    ],
    "shipping_lines": [
      {
        "code": "Free Shipping",
        "price": "0.00",
        "source": "shopify",
        "title": "Free Shipping",
        "tax_lines": [

        ]
      }
    ],
    "billing_address": {
      "address1": "Chestnut Street 92",
      "address2": "",
      "city": "Louisville",
      "company": null,
      "country": "United States",
      "first_name": "Bob",
      "last_name": "Norman",
      "latitude": 45.41634,
      "longitude": -75.6868,
      "phone": "555-625-1199",
      "province": "Kentucky",
      "zip": "40202",
      "name": "Bob Norman",
      "country_code": "US",
      "province_code": "KY"
    },
    "shipping_address": {
      "address1": "Chestnut Street 92",
      "address2": "",
      "city": "Louisville",
      "company": null,
      "country": "United States",
      "first_name": "Bob",
      "last_name": "Norman",
      "latitude": 45.41634,
      "longitude": -75.6868,
      "phone": "555-625-1199",
      "province": "Kentucky",
      "zip": "40202",
      "name": "Bob Norman",
      "country_code": "US",
      "province_code": "KY"
    },
    "fulfillments": [
      {
        "created_at": "2014-08-27T14:04:32-04:00",
        "id": 255858046,
        "order_id": 450789469,
        "service": "manual",
        "status": "failure",
        "tracking_company": null,
        "updated_at": "2014-08-27T14:04:32-04:00",
        "tracking_number": "1Z2345",
        "tracking_numbers": [
          "1Z2345"
        ],
        "tracking_url": "http://wwwapps.ups.com/etracking/tracking.cgi?InquiryNumber1=1Z2345&TypeOfInquiryNumber=T&AcceptUPSLicenseAgreement=yes&submit=Track",
        "tracking_urls": [
          "http://wwwapps.ups.com/etracking/tracking.cgi?InquiryNumber1=1Z2345&TypeOfInquiryNumber=T&AcceptUPSLicenseAgreement=yes&submit=Track"
        ],
        "receipt": {
          "testcase": true,
          "authorization": "123456"
        },
        "line_items": [
          {
            "fulfillment_service": "manual",
            "fulfillment_status": null,
            "gift_card": false,
            "grams": 200,
            "id": 466157049,
            "price": "199.00",
            "product_id": 632910392,
            "quantity": 1,
            "requires_shipping": true,
            "sku": "IPOD2008GREEN",
            "taxable": true,
            "title": "IPod Nano - 8gb",
            "variant_id": 39072856,
            "variant_title": "green",
            "vendor": null,
            "name": "IPod Nano - 8gb - green",
            "variant_inventory_management": "shopify",
            "properties": [
              {
                "name": "Custom Engraving",
                "value": "Happy Birthday"
              }
            ],
            "product_exists": true,
            "fulfillable_quantity": 1,
            "tax_lines": [

            ]
          }
        ]
      }
    ],
    "client_details": {
      "accept_language": null,
      "browser_height": null,
      "browser_ip": "0.0.0.0",
      "browser_width": null,
      "session_hash": null,
      "user_agent": null
    },
    "refunds": [
      {
        "created_at": "2014-08-27T14:04:32-04:00",
        "id": 509562969,
        "note": "it broke during shipping",
        "order_id": 450789469,
        "restock": true,
        "user_id": 799407056,
        "refund_line_items": [
          {
            "id": 104689539,
            "line_item_id": 703073504,
            "quantity": 1,
            "line_item": {
              "fulfillment_service": "manual",
              "fulfillment_status": null,
              "gift_card": false,
              "grams": 200,
              "id": 703073504,
              "price": "199.00",
              "product_id": 632910392,
              "quantity": 1,
              "requires_shipping": true,
              "sku": "IPOD2008BLACK",
              "taxable": true,
              "title": "IPod Nano - 8gb",
              "variant_id": 457924702,
              "variant_title": "black",
              "vendor": null,
              "name": "IPod Nano - 8gb - black",
              "variant_inventory_management": "shopify",
              "properties": [

              ],
              "product_exists": true,
              "fulfillable_quantity": 1,
              "tax_lines": [

              ]
            }
          },
          {
            "id": 709875399,
            "line_item_id": 466157049,
            "quantity": 1,
            "line_item": {
              "fulfillment_service": "manual",
              "fulfillment_status": null,
              "gift_card": false,
              "grams": 200,
              "id": 466157049,
              "price": "199.00",
              "product_id": 632910392,
              "quantity": 1,
              "requires_shipping": true,
              "sku": "IPOD2008GREEN",
              "taxable": true,
              "title": "IPod Nano - 8gb",
              "variant_id": 39072856,
              "variant_title": "green",
              "vendor": null,
              "name": "IPod Nano - 8gb - green",
              "variant_inventory_management": "shopify",
              "properties": [
                {
                  "name": "Custom Engraving",
                  "value": "Happy Birthday"
                }
              ],
              "product_exists": true,
              "fulfillable_quantity": 1,
              "tax_lines": [

              ]
            }
          }
        ],
        "transactions": [
          {
            "amount": "209.00",
            "authorization": "authorization-key",
            "created_at": "2005-08-05T12:59:12-04:00",
            "gateway": "bogus",
            "id": 179259969,
            "kind": "refund",
            "location_id": null,
            "message": null,
            "order_id": 450789469,
            "parent_id": null,
            "source_name": null,
            "status": "success",
            "test": false,
            "user_id": null,
            "device_id": null,
            "receipt": {}
          }
        ]
      }
    ],
    "payment_details": {
      "avs_result_code": null,
      "credit_card_bin": null,
      "cvv_result_code": null,
      "credit_card_number": "•••• •••• •••• 4242",
      "credit_card_company": "Visa"
    },
    "customer": {
      "accepts_marketing": false,
      "created_at": "2014-08-27T14:04:32-04:00",
      "email": "bob.norman@hostmail.com",
      "first_name": "Bob",
      "id": 207119551,
      "last_name": "Norman",
      "last_order_id": 450789469,
      "multipass_identifier": null,
      "note": null,
      "orders_count": 1,
      "state": "disabled",
      "total_spent": "200.94",
      "updated_at": "2014-08-27T14:04:32-04:00",
      "verified_email": true,
      "tags": "",
      "last_order_name": "#1001",
      "default_address": {
        "address1": "Chestnut Street 92",
        "address2": "",
        "city": "Louisville",
        "company": null,
        "country": "United States",
        "first_name": null,
        "id": 207119551,
        "last_name": null,
        "phone": "555-625-1199",
        "province": "Kentucky",
        "zip": "40202",
        "name": null,
        "province_code": "KY",
        "country_code": "US",
        "country_name": "United States",
        "default": true
      }
    }
  }
}

Get only particular fields

GET /admin/orders/#{id}.json?fields=id,line_items,name,total_price
View Response
HTTP/1.1 200 OK

{
  "order": {
    "id": 450789469,
    "name": "#1001",
    "total_price": "409.94",
    "line_items": [
      {
        "fulfillment_service": "manual",
        "fulfillment_status": null,
        "gift_card": false,
        "grams": 200,
        "id": 466157049,
        "price": "199.00",
        "product_id": 632910392,
        "quantity": 1,
        "requires_shipping": true,
        "sku": "IPOD2008GREEN",
        "taxable": true,
        "title": "IPod Nano - 8gb",
        "variant_id": 39072856,
        "variant_title": "green",
        "vendor": null,
        "name": "IPod Nano - 8gb - green",
        "variant_inventory_management": "shopify",
        "properties": [
          {
            "name": "Custom Engraving",
            "value": "Happy Birthday"
          }
        ],
        "product_exists": true,
        "fulfillable_quantity": 1,
        "tax_lines": [

        ]
      },
      {
        "fulfillment_service": "manual",
        "fulfillment_status": null,
        "gift_card": false,
        "grams": 200,
        "id": 518995019,
        "price": "199.00",
        "product_id": 632910392,
        "quantity": 1,
        "requires_shipping": true,
        "sku": "IPOD2008RED",
        "taxable": true,
        "title": "IPod Nano - 8gb",
        "variant_id": 49148385,
        "variant_title": "red",
        "vendor": null,
        "name": "IPod Nano - 8gb - red",
        "variant_inventory_management": "shopify",
        "properties": [

        ],
        "product_exists": true,
        "fulfillable_quantity": 1,
        "tax_lines": [

        ]
      },
      {
        "fulfillment_service": "manual",
        "fulfillment_status": null,
        "gift_card": false,
        "grams": 200,
        "id": 703073504,
        "price": "199.00",
        "product_id": 632910392,
        "quantity": 1,
        "requires_shipping": true,
        "sku": "IPOD2008BLACK",
        "taxable": true,
        "title": "IPod Nano - 8gb",
        "variant_id": 457924702,
        "variant_title": "black",
        "vendor": null,
        "name": "IPod Nano - 8gb - black",
        "variant_inventory_management": "shopify",
        "properties": [

        ],
        "product_exists": true,
        "fulfillable_quantity": 1,
        "tax_lines": [

        ]
      }
    ]
  }
}
GET/admin/orders/count.json

Retrieve a count of all the orders

created_at_min

Count orders created after date (format: 2008-12-31 03:00)

created_at_max

Count orders created before date (format: 2008-12-31 03:00)

updated_at_min

Count orders last updated after date (format: 2008-12-31 03:00)

updated_at_max

Count orders last updated before date (format: 2008-12-31 03:00)

status
  • open - Open orders (default)
  • closed - Only closed orders
  • any - Any order status
financial_status
  • authorized - Only authorized orders
  • pending - Only pending orders
  • paid - Only paid orders
  • refunded - Show only refunded orders
  • voided - Show only voided orders
  • any - All authorized, pending, and paid orders (default)
fulfillment_status
  • shipped - Orders that have been shipped
  • partial - Partially shipped orders
  • unshipped - Orders that have not yet been shipped
  • any - Orders with any fulfillment_status. (default)

Count all orders

GET /admin/orders/count.json
View Response
HTTP/1.1 200 OK

{
  "count": 1
}

Count orders which are authorized and ready to be captured.

GET /admin/orders/count.json?financial_status=authorized
View Response
HTTP/1.1 200 OK

{
  "count": 1
}
POST/admin/orders/450789469/close.json

Close an order

Close a processed order

POST /admin/orders/#{id}/close.json
{}
View Response
HTTP/1.1 200 OK

{
  "order": {
    "buyer_accepts_marketing": false,
    "cancel_reason": null,
    "cancelled_at": null,
    "cart_token": "68778783ad298f1c80c3bafcddeea02f",
    "checkout_token": null,
    "closed_at": "2014-08-27T14:04:35-04:00",
    "confirmed": true,
    "created_at": "2008-01-10T11:00:00-05:00",
    "currency": "USD",
    "email": "bob.norman@hostmail.com",
    "financial_status": "authorized",
    "fulfillment_status": null,
    "gateway": "authorize_net",
    "id": 450789469,
    "landing_site": "http://www.example.com?source=abc",
    "location_id": null,
    "name": "#1001",
    "note": null,
    "number": 1,
    "reference": "fhwdgads",
    "referring_site": "http://www.otherexample.com",
    "source_identifier": "fhwdgads",
    "source_name": "web",
    "source_url": null,
    "subtotal_price": "398.00",
    "taxes_included": false,
    "test": false,
    "token": "b1946ac92492d2347c6235b4d2611184",
    "total_discounts": "0.00",
    "total_line_items_price": "398.00",
    "total_price": "409.94",
    "total_price_usd": "409.94",
    "total_tax": "11.94",
    "total_weight": 0,
    "updated_at": "2014-08-27T14:04:35-04:00",
    "user_id": null,
    "browser_ip": null,
    "landing_site_ref": "abc",
    "order_number": 1001,
    "discount_codes": [
      {
        "code": "TENOFF",
        "amount": "10.00",
        "type": "percentage"
      }
    ],
    "note_attributes": [
      {
        "name": "custom engraving",
        "value": "Happy Birthday"
      },
      {
        "name": "colour",
        "value": "green"
      }
    ],
    "processing_method": "direct",
    "source": "browser",
    "checkout_id": 450789469,
    "tax_lines": [
      {
        "price": "11.94",
        "rate": 0.06,
        "title": "State Tax"
      }
    ],
    "tags": "",
    "line_items": [
      {
        "fulfillment_service": "manual",
        "fulfillment_status": null,
        "gift_card": false,
        "grams": 200,
        "id": 466157049,
        "price": "199.00",
        "product_id": 632910392,
        "quantity": 1,
        "requires_shipping": true,
        "sku": "IPOD2008GREEN",
        "taxable": true,
        "title": "IPod Nano - 8gb",
        "variant_id": 39072856,
        "variant_title": "green",
        "vendor": null,
        "name": "IPod Nano - 8gb - green",
        "variant_inventory_management": "shopify",
        "properties": [
          {
            "name": "Custom Engraving",
            "value": "Happy Birthday"
          }
        ],
        "product_exists": true,
        "fulfillable_quantity": 1,
        "tax_lines": [

        ]
      },
      {
        "fulfillment_service": "manual",
        "fulfillment_status": null,
        "gift_card": false,
        "grams": 200,
        "id": 518995019,
        "price": "199.00",
        "product_id": 632910392,
        "quantity": 1,
        "requires_shipping": true,
        "sku": "IPOD2008RED",
        "taxable": true,
        "title": "IPod Nano - 8gb",
        "variant_id": 49148385,
        "variant_title": "red",
        "vendor": null,
        "name": "IPod Nano - 8gb - red",
        "variant_inventory_management": "shopify",
        "properties": [

        ],
        "product_exists": true,
        "fulfillable_quantity": 1,
        "tax_lines": [

        ]
      },
      {
        "fulfillment_service": "manual",
        "fulfillment_status": null,
        "gift_card": false,
        "grams": 200,
        "id": 703073504,
        "price": "199.00",
        "product_id": 632910392,
        "quantity": 1,
        "requires_shipping": true,
        "sku": "IPOD2008BLACK",
        "taxable": true,
        "title": "IPod Nano - 8gb",
        "variant_id": 457924702,
        "variant_title": "black",
        "vendor": null,
        "name": "IPod Nano - 8gb - black",
        "variant_inventory_management": "shopify",
        "properties": [

        ],
        "product_exists": true,
        "fulfillable_quantity": 1,
        "tax_lines": [

        ]
      }
    ],
    "shipping_lines": [
      {
        "code": "Free Shipping",
        "price": "0.00",
        "source": "shopify",
        "title": "Free Shipping",
        "tax_lines": [

        ]
      }
    ],
    "billing_address": {
      "address1": "Chestnut Street 92",
      "address2": "",
      "city": "Louisville",
      "company": null,
      "country": "United States",
      "first_name": "Bob",
      "last_name": "Norman",
      "latitude": 45.41634,
      "longitude": -75.6868,
      "phone": "555-625-1199",
      "province": "Kentucky",
      "zip": "40202",
      "name": "Bob Norman",
      "country_code": "US",
      "province_code": "KY"
    },
    "shipping_address": {
      "address1": "Chestnut Street 92",
      "address2": "",
      "city": "Louisville",
      "company": null,
      "country": "United States",
      "first_name": "Bob",
      "last_name": "Norman",
      "latitude": 45.41634,
      "longitude": -75.6868,
      "phone": "555-625-1199",
      "province": "Kentucky",
      "zip": "40202",
      "name": "Bob Norman",
      "country_code": "US",
      "province_code": "KY"
    },
    "fulfillments": [
      {
        "created_at": "2014-08-27T14:04:32-04:00",
        "id": 255858046,
        "order_id": 450789469,
        "service": "manual",
        "status": "failure",
        "tracking_company": null,
        "updated_at": "2014-08-27T14:04:32-04:00",
        "tracking_number": "1Z2345",
        "tracking_numbers": [
          "1Z2345"
        ],
        "tracking_url": "http://wwwapps.ups.com/etracking/tracking.cgi?InquiryNumber1=1Z2345&TypeOfInquiryNumber=T&AcceptUPSLicenseAgreement=yes&submit=Track",
        "tracking_urls": [
          "http://wwwapps.ups.com/etracking/tracking.cgi?InquiryNumber1=1Z2345&TypeOfInquiryNumber=T&AcceptUPSLicenseAgreement=yes&submit=Track"
        ],
        "receipt": {
          "testcase": true,
          "authorization": "123456"
        },
        "line_items": [
          {
            "fulfillment_service": "manual",
            "fulfillment_status": null,
            "gift_card": false,
            "grams": 200,
            "id": 466157049,
            "price": "199.00",
            "product_id": 632910392,
            "quantity": 1,
            "requires_shipping": true,
            "sku": "IPOD2008GREEN",
            "taxable": true,
            "title": "IPod Nano - 8gb",
            "variant_id": 39072856,
            "variant_title": "green",
            "vendor": null,
            "name": "IPod Nano - 8gb - green",
            "variant_inventory_management": "shopify",
            "properties": [
              {
                "name": "Custom Engraving",
                "value": "Happy Birthday"
              }
            ],
            "product_exists": true,
            "fulfillable_quantity": 1,
            "tax_lines": [

            ]
          }
        ]
      }
    ],
    "client_details": {
      "accept_language": null,
      "browser_height": null,
      "browser_ip": "0.0.0.0",
      "browser_width": null,
      "session_hash": null,
      "user_agent": null
    },
    "refunds": [
      {
        "created_at": "2014-08-27T14:04:32-04:00",
        "id": 509562969,
        "note": "it broke during shipping",
        "order_id": 450789469,
        "restock": true,
        "user_id": 799407056,
        "refund_line_items": [
          {
            "id": 104689539,
            "line_item_id": 703073504,
            "quantity": 1,
            "line_item": {
              "fulfillment_service": "manual",
              "fulfillment_status": null,
              "gift_card": false,
              "grams": 200,
              "id": 703073504,
              "price": "199.00",
              "product_id": 632910392,
              "quantity": 1,
              "requires_shipping": true,
              "sku": "IPOD2008BLACK",
              "taxable": true,
              "title": "IPod Nano - 8gb",
              "variant_id": 457924702,
              "variant_title": "black",
              "vendor": null,
              "name": "IPod Nano - 8gb - black",
              "variant_inventory_management": "shopify",
              "properties": [

              ],
              "product_exists": true,
              "fulfillable_quantity": 1,
              "tax_lines": [

              ]
            }
          },
          {
            "id": 709875399,
            "line_item_id": 466157049,
            "quantity": 1,
            "line_item": {
              "fulfillment_service": "manual",
              "fulfillment_status": null,
              "gift_card": false,
              "grams": 200,
              "id": 466157049,
              "price": "199.00",
              "product_id": 632910392,
              "quantity": 1,
              "requires_shipping": true,
              "sku": "IPOD2008GREEN",
              "taxable": true,
              "title": "IPod Nano - 8gb",
              "variant_id": 39072856,
              "variant_title": "green",
              "vendor": null,
              "name": "IPod Nano - 8gb - green",
              "variant_inventory_management": "shopify",
              "properties": [
                {
                  "name": "Custom Engraving",
                  "value": "Happy Birthday"
                }
              ],
              "product_exists": true,
              "fulfillable_quantity": 1,
              "tax_lines": [

              ]
            }
          }
        ],
        "transactions": [
          {
            "amount": "209.00",
            "authorization": "authorization-key",
            "created_at": "2005-08-05T12:59:12-04:00",
            "gateway": "bogus",
            "id": 179259969,
            "kind": "refund",
            "location_id": null,
            "message": null,
            "order_id": 450789469,
            "parent_id": null,
            "source_name": null,
            "status": "success",
            "test": false,
            "user_id": null,
            "device_id": null,
            "receipt": {}
          }
        ]
      }
    ],
    "payment_details": {
      "avs_result_code": null,
      "credit_card_bin": null,
      "cvv_result_code": null,
      "credit_card_number": "•••• •••• •••• 4242",
      "credit_card_company": "Visa"
    },
    "customer": {
      "accepts_marketing": false,
      "created_at": "2014-08-27T14:04:32-04:00",
      "email": "bob.norman@hostmail.com",
      "first_name": "Bob",
      "id": 207119551,
      "last_name": "Norman",
      "last_order_id": 450789469,
      "multipass_identifier": null,
      "note": null,
      "orders_count": 1,
      "state": "disabled",
      "total_spent": "200.94",
      "updated_at": "2014-08-27T14:04:35-04:00",
      "verified_email": true,
      "tags": "",
      "last_order_name": "#1001",
      "default_address": {
        "address1": "Chestnut Street 92",
        "address2": "",
        "city": "Louisville",
        "company": null,
        "country": "United States",
        "first_name": null,
        "id": 207119551,
        "last_name": null,
        "phone": "555-625-1199",
        "province": "Kentucky",
        "zip": "40202",
        "name": null,
        "province_code": "KY",
        "country_code": "US",
        "country_name": "United States",
        "default": true
      }
    }
  }
}
POST/admin/orders/450789469/open.json

Re-open a closed Order

Re-opening a closed Order

POST /admin/orders/#{id}/open.json
{}
View Response
HTTP/1.1 200 OK

{
  "order": {
    "buyer_accepts_marketing": false,
    "cancel_reason": null,
    "cancelled_at": null,
    "cart_token": "68778783ad298f1c80c3bafcddeea02f",
    "checkout_token": null,
    "closed_at": null,
    "confirmed": true,
    "created_at": "2008-01-10T11:00:00-05:00",
    "currency": "USD",
    "email": "bob.norman@hostmail.com",
    "financial_status": "authorized",
    "fulfillment_status": null,
    "gateway": "authorize_net",
    "id": 450789469,
    "landing_site": "http://www.example.com?source=abc",
    "location_id": null,
    "name": "#1001",
    "note": null,
    "number": 1,
    "reference": "fhwdgads",
    "referring_site": "http://www.otherexample.com",
    "source_identifier": "fhwdgads",
    "source_name": "web",
    "source_url": null,
    "subtotal_price": "398.00",
    "taxes_included": false,
    "test": false,
    "token": "b1946ac92492d2347c6235b4d2611184",
    "total_discounts": "0.00",
    "total_line_items_price": "398.00",
    "total_price": "409.94",
    "total_price_usd": "409.94",
    "total_tax": "11.94",
    "total_weight": 0,
    "updated_at": "2014-08-27T14:04:40-04:00",
    "user_id": null,
    "browser_ip": null,
    "landing_site_ref": "abc",
    "order_number": 1001,
    "discount_codes": [
      {
        "code": "TENOFF",
        "amount": "10.00",
        "type": "percentage"
      }
    ],
    "note_attributes": [
      {
        "name": "custom engraving",
        "value": "Happy Birthday"
      },
      {
        "name": "colour",
        "value": "green"
      }
    ],
    "processing_method": "direct",
    "source": "browser",
    "checkout_id": 450789469,
    "tax_lines": [
      {
        "price": "11.94",
        "rate": 0.06,
        "title": "State Tax"
      }
    ],
    "tags": "",
    "line_items": [
      {
        "fulfillment_service": "manual",
        "fulfillment_status": null,
        "gift_card": false,
        "grams": 200,
        "id": 466157049,
        "price": "199.00",
        "product_id": 632910392,
        "quantity": 1,
        "requires_shipping": true,
        "sku": "IPOD2008GREEN",
        "taxable": true,
        "title": "IPod Nano - 8gb",
        "variant_id": 39072856,
        "variant_title": "green",
        "vendor": null,
        "name": "IPod Nano - 8gb - green",
        "variant_inventory_management": "shopify",
        "properties": [
          {
            "name": "Custom Engraving",
            "value": "Happy Birthday"
          }
        ],
        "product_exists": true,
        "fulfillable_quantity": 1,
        "tax_lines": [

        ]
      },
      {
        "fulfillment_service": "manual",
        "fulfillment_status": null,
        "gift_card": false,
        "grams": 200,
        "id": 518995019,
        "price": "199.00",
        "product_id": 632910392,
        "quantity": 1,
        "requires_shipping": true,
        "sku": "IPOD2008RED",
        "taxable": true,
        "title": "IPod Nano - 8gb",
        "variant_id": 49148385,
        "variant_title": "red",
        "vendor": null,
        "name": "IPod Nano - 8gb - red",
        "variant_inventory_management": "shopify",
        "properties": [

        ],
        "product_exists": true,
        "fulfillable_quantity": 1,
        "tax_lines": [

        ]
      },
      {
        "fulfillment_service": "manual",
        "fulfillment_status": null,
        "gift_card": false,
        "grams": 200,
        "id": 703073504,
        "price": "199.00",
        "product_id": 632910392,
        "quantity": 1,
        "requires_shipping": true,
        "sku": "IPOD2008BLACK",
        "taxable": true,
        "title": "IPod Nano - 8gb",
        "variant_id": 457924702,
        "variant_title": "black",
        "vendor": null,
        "name": "IPod Nano - 8gb - black",
        "variant_inventory_management": "shopify",
        "properties": [

        ],
        "product_exists": true,
        "fulfillable_quantity": 1,
        "tax_lines": [

        ]
      }
    ],
    "shipping_lines": [
      {
        "code": "Free Shipping",
        "price": "0.00",
        "source": "shopify",
        "title": "Free Shipping",
        "tax_lines": [

        ]
      }
    ],
    "billing_address": {
      "address1": "Chestnut Street 92",
      "address2": "",
      "city": "Louisville",
      "company": null,
      "country": "United States",
      "first_name": "Bob",
      "last_name": "Norman",
      "latitude": 45.41634,
      "longitude": -75.6868,
      "phone": "555-625-1199",
      "province": "Kentucky",
      "zip": "40202",
      "name": "Bob Norman",
      "country_code": "US",
      "province_code": "KY"
    },
    "shipping_address": {
      "address1": "Chestnut Street 92",
      "address2": "",
      "city": "Louisville",
      "company": null,
      "country": "United States",
      "first_name": "Bob",
      "last_name": "Norman",
      "latitude": 45.41634,
      "longitude": -75.6868,
      "phone": "555-625-1199",
      "province": "Kentucky",
      "zip": "40202",
      "name": "Bob Norman",
      "country_code": "US",
      "province_code": "KY"
    },
    "fulfillments": [
      {
        "created_at": "2014-08-27T14:04:32-04:00",
        "id": 255858046,
        "order_id": 450789469,
        "service": "manual",
        "status": "failure",
        "tracking_company": null,
        "updated_at": "2014-08-27T14:04:32-04:00",
        "tracking_number": "1Z2345",
        "tracking_numbers": [
          "1Z2345"
        ],
        "tracking_url": "http://wwwapps.ups.com/etracking/tracking.cgi?InquiryNumber1=1Z2345&TypeOfInquiryNumber=T&AcceptUPSLicenseAgreement=yes&submit=Track",
        "tracking_urls": [
          "http://wwwapps.ups.com/etracking/tracking.cgi?InquiryNumber1=1Z2345&TypeOfInquiryNumber=T&AcceptUPSLicenseAgreement=yes&submit=Track"
        ],
        "receipt": {
          "testcase": true,
          "authorization": "123456"
        },
        "line_items": [
          {
            "fulfillment_service": "manual",
            "fulfillment_status": null,
            "gift_card": false,
            "grams": 200,
            "id": 466157049,
            "price": "199.00",
            "product_id": 632910392,
            "quantity": 1,
            "requires_shipping": true,
            "sku": "IPOD2008GREEN",
            "taxable": true,
            "title": "IPod Nano - 8gb",
            "variant_id": 39072856,
            "variant_title": "green",
            "vendor": null,
            "name": "IPod Nano - 8gb - green",
            "variant_inventory_management": "shopify",
            "properties": [
              {
                "name": "Custom Engraving",
                "value": "Happy Birthday"
              }
            ],
            "product_exists": true,
            "fulfillable_quantity": 1,
            "tax_lines": [

            ]
          }
        ]
      }
    ],
    "client_details": {
      "accept_language": null,
      "browser_height": null,
      "browser_ip": "0.0.0.0",
      "browser_width": null,
      "session_hash": null,
      "user_agent": null
    },
    "refunds": [
      {
        "created_at": "2014-08-27T14:04:32-04:00",
        "id": 509562969,
        "note": "it broke during shipping",
        "order_id": 450789469,
        "restock": true,
        "user_id": 799407056,
        "refund_line_items": [
          {
            "id": 104689539,
            "line_item_id": 703073504,
            "quantity": 1,
            "line_item": {
              "fulfillment_service": "manual",
              "fulfillment_status": null,
              "gift_card": false,
              "grams": 200,
              "id": 703073504,
              "price": "199.00",
              "product_id": 632910392,
              "quantity": 1,
              "requires_shipping": true,
              "sku": "IPOD2008BLACK",
              "taxable": true,
              "title": "IPod Nano - 8gb",
              "variant_id": 457924702,
              "variant_title": "black",
              "vendor": null,
              "name": "IPod Nano - 8gb - black",
              "variant_inventory_management": "shopify",
              "properties": [

              ],
              "product_exists": true,
              "fulfillable_quantity": 1,
              "tax_lines": [

              ]
            }
          },
          {
            "id": 709875399,
            "line_item_id": 466157049,
            "quantity": 1,
            "line_item": {
              "fulfillment_service": "manual",
              "fulfillment_status": null,
              "gift_card": false,
              "grams": 200,
              "id": 466157049,
              "price": "199.00",
              "product_id": 632910392,
              "quantity": 1,
              "requires_shipping": true,
              "sku": "IPOD2008GREEN",
              "taxable": true,
              "title": "IPod Nano - 8gb",
              "variant_id": 39072856,
              "variant_title": "green",
              "vendor": null,
              "name": "IPod Nano - 8gb - green",
              "variant_inventory_management": "shopify",
              "properties": [
                {
                  "name": "Custom Engraving",
                  "value": "Happy Birthday"
                }
              ],
              "product_exists": true,
              "fulfillable_quantity": 1,
              "tax_lines": [

              ]
            }
          }
        ],
        "transactions": [
          {
            "amount": "209.00",
            "authorization": "authorization-key",
            "created_at": "2005-08-05T12:59:12-04:00",
            "gateway": "bogus",
            "id": 179259969,
            "kind": "refund",
            "location_id": null,
            "message": null,
            "order_id": 450789469,
            "parent_id": null,
            "source_name": null,
            "status": "success",
            "test": false,
            "user_id": null,
            "device_id": null,
            "receipt": {}
          }
        ]
      }
    ],
    "payment_details": {
      "avs_result_code": null,
      "credit_card_bin": null,
      "cvv_result_code": null,
      "credit_card_number": "•••• •••• •••• 4242",
      "credit_card_company": "Visa"
    },
    "customer": {
      "accepts_marketing": false,
      "created_at": "2014-08-27T14:04:32-04:00",
      "email": "bob.norman@hostmail.com",
      "first_name": "Bob",
      "id": 207119551,
      "last_name": "Norman",
      "last_order_id": 450789469,
      "multipass_identifier": null,
      "note": null,
      "orders_count": 1,
      "state": "disabled",
      "total_spent": "200.94",
      "updated_at": "2014-08-27T14:04:40-04:00",
      "verified_email": true,
      "tags": "",
      "last_order_name": "#1001",
      "default_address": {
        "address1": "Chestnut Street 92",
        "address2": "",
        "city": "Louisville",
        "company": null,
        "country": "United States",
        "first_name": null,
        "id": 207119551,
        "last_name": null,
        "phone": "555-625-1199",
        "province": "Kentucky",
        "zip": "40202",
        "name": null,
        "province_code": "KY",
        "country_code": "US",
        "country_name": "United States",
        "default": true
      }
    }
  }
}
POST/admin/orders/450789469/cancel.json

Cancel an Order

amount

Amount to refund (decimal ex: 21.20). If set, Shopify will attempt to void/refund the payment depending on the status.

(default: false)
restock

Restock the items for this order back to your store

(default: false)
reason

The reason for the order cancellation (one of customer, inventory, fraud, other)

(default: other)
email

Send an email to the customer notifying them of the cancellation

(default: false)

Cancelling an Order

POST /admin/orders/#{id}/cancel.json
{}
View Response
HTTP/1.1 200 OK

{
  "order": {
    "buyer_accepts_marketing": false,
    "cancel_reason": "other",
    "cancelled_at": "2014-08-27T14:04:35-04:00",
    "cart_token": "68778783ad298f1c80c3bafcddeea02f",
    "checkout_token": null,
    "closed_at": null,
    "confirmed": false,
    "created_at": "2008-01-10T11:00:00-05:00",
    "currency": "USD",
    "email": "bob.norman@hostmail.com",
    "financial_status": "authorized",
    "fulfillment_status": null,
    "gateway": "authorize_net",
    "id": 450789469,
    "landing_site": "http://www.example.com?source=abc",
    "location_id": null,
    "name": "#1001",
    "note": null,
    "number": 1,
    "reference": "fhwdgads",
    "referring_site": "http://www.otherexample.com",
    "source_identifier": "fhwdgads",
    "source_name": "web",
    "source_url": null,
    "subtotal_price": "398.00",
    "taxes_included": false,
    "test": false,
    "token": "b1946ac92492d2347c6235b4d2611184",
    "total_discounts": "0.00",
    "total_line_items_price": "398.00",
    "total_price": "409.94",
    "total_price_usd": "409.94",
    "total_tax": "11.94",
    "total_weight": 0,
    "updated_at": "2014-08-27T14:04:35-04:00",
    "user_id": null,
    "browser_ip": null,
    "landing_site_ref": "abc",
    "order_number": 1001,
    "discount_codes": [
      {
        "code": "TENOFF",
        "amount": "10.00",
        "type": "percentage"
      }
    ],
    "note_attributes": [
      {
        "name": "custom engraving",
        "value": "Happy Birthday"
      },
      {
        "name": "colour",
        "value": "green"
      }
    ],
    "processing_method": "direct",
    "source": "browser",
    "checkout_id": 450789469,
    "tax_lines": [
      {
        "price": "11.94",
        "rate": 0.06,
        "title": "State Tax"
      }
    ],
    "tags": "",
    "line_items": [
      {
        "fulfillment_service": "manual",
        "fulfillment_status": null,
        "gift_card": false,
        "grams": 200,
        "id": 466157049,
        "price": "199.00",
        "product_id": 632910392,
        "quantity": 1,
        "requires_shipping": true,
        "sku": "IPOD2008GREEN",
        "taxable": true,
        "title": "IPod Nano - 8gb",
        "variant_id": 39072856,
        "variant_title": "green",
        "vendor": null,
        "name": "IPod Nano - 8gb - green",
        "variant_inventory_management": "shopify",
        "properties": [
          {
            "name": "Custom Engraving",
            "value": "Happy Birthday"
          }
        ],
        "product_exists": true,
        "fulfillable_quantity": 1,
        "tax_lines": [

        ]
      },
      {
        "fulfillment_service": "manual",
        "fulfillment_status": null,
        "gift_card": false,
        "grams": 200,
        "id": 518995019,
        "price": "199.00",
        "product_id": 632910392,
        "quantity": 1,
        "requires_shipping": true,
        "sku": "IPOD2008RED",
        "taxable": true,
        "title": "IPod Nano - 8gb",
        "variant_id": 49148385,
        "variant_title": "red",
        "vendor": null,
        "name": "IPod Nano - 8gb - red",
        "variant_inventory_management": "shopify",
        "properties": [

        ],
        "product_exists": true,
        "fulfillable_quantity": 1,
        "tax_lines": [

        ]
      },
      {
        "fulfillment_service": "manual",
        "fulfillment_status": null,
        "gift_card": false,
        "grams": 200,
        "id": 703073504,
        "price": "199.00",
        "product_id": 632910392,
        "quantity": 1,
        "requires_shipping": true,
        "sku": "IPOD2008BLACK",
        "taxable": true,
        "title": "IPod Nano - 8gb",
        "variant_id": 457924702,
        "variant_title": "black",
        "vendor": null,
        "name": "IPod Nano - 8gb - black",
        "variant_inventory_management": "shopify",
        "properties": [

        ],
        "product_exists": true,
        "fulfillable_quantity": 1,
        "tax_lines": [

        ]
      }
    ],
    "shipping_lines": [
      {
        "code": "Free Shipping",
        "price": "0.00",
        "source": "shopify",
        "title": "Free Shipping",
        "tax_lines": [

        ]
      }
    ],
    "billing_address": {
      "address1": "Chestnut Street 92",
      "address2": "",
      "city": "Louisville",
      "company": null,
      "country": "United States",
      "first_name": "Bob",
      "last_name": "Norman",
      "latitude": 45.41634,
      "longitude": -75.6868,
      "phone": "555-625-1199",
      "province": "Kentucky",
      "zip": "40202",
      "name": "Bob Norman",
      "country_code": "US",
      "province_code": "KY"
    },
    "shipping_address": {
      "address1": "Chestnut Street 92",
      "address2": "",
      "city": "Louisville",
      "company": null,
      "country": "United States",
      "first_name": "Bob",
      "last_name": "Norman",
      "latitude": 45.41634,
      "longitude": -75.6868,
      "phone": "555-625-1199",
      "province": "Kentucky",
      "zip": "40202",
      "name": "Bob Norman",
      "country_code": "US",
      "province_code": "KY"
    },
    "fulfillments": [
      {
        "created_at": "2014-08-27T14:04:32-04:00",
        "id": 255858046,
        "order_id": 450789469,
        "service": "manual",
        "status": "failure",
        "tracking_company": null,
        "updated_at": "2014-08-27T14:04:32-04:00",
        "tracking_number": "1Z2345",
        "tracking_numbers": [
          "1Z2345"
        ],
        "tracking_url": "http://wwwapps.ups.com/etracking/tracking.cgi?InquiryNumber1=1Z2345&TypeOfInquiryNumber=T&AcceptUPSLicenseAgreement=yes&submit=Track",
        "tracking_urls": [
          "http://wwwapps.ups.com/etracking/tracking.cgi?InquiryNumber1=1Z2345&TypeOfInquiryNumber=T&AcceptUPSLicenseAgreement=yes&submit=Track"
        ],
        "receipt": {
          "testcase": true,
          "authorization": "123456"
        },
        "line_items": [
          {
            "fulfillment_service": "manual",
            "fulfillment_status": null,
            "gift_card": false,
            "grams": 200,
            "id": 466157049,
            "price": "199.00",
            "product_id": 632910392,
            "quantity": 1,
            "requires_shipping": true,
            "sku": "IPOD2008GREEN",
            "taxable": true,
            "title": "IPod Nano - 8gb",
            "variant_id": 39072856,
            "variant_title": "green",
            "vendor": null,
            "name": "IPod Nano - 8gb - green",
            "variant_inventory_management": "shopify",
            "properties": [
              {
                "name": "Custom Engraving",
                "value": "Happy Birthday"
              }
            ],
            "product_exists": true,
            "fulfillable_quantity": 1,
            "tax_lines": [

            ]
          }
        ]
      }
    ],
    "client_details": {
      "accept_language": null,
      "browser_height": null,
      "browser_ip": "0.0.0.0",
      "browser_width": null,
      "session_hash": null,
      "user_agent": null
    },
    "refunds": [
      {
        "created_at": "2014-08-27T14:04:32-04:00",
        "id": 509562969,
        "note": "it broke during shipping",
        "order_id": 450789469,
        "restock": true,
        "user_id": 799407056,
        "refund_line_items": [
          {
            "id": 104689539,
            "line_item_id": 703073504,
            "quantity": 1,
            "line_item": {
              "fulfillment_service": "manual",
              "fulfillment_status": null,
              "gift_card": false,
              "grams": 200,
              "id": 703073504,
              "price": "199.00",
              "product_id": 632910392,
              "quantity": 1,
              "requires_shipping": true,
              "sku": "IPOD2008BLACK",
              "taxable": true,
              "title": "IPod Nano - 8gb",
              "variant_id": 457924702,
              "variant_title": "black",
              "vendor": null,
              "name": "IPod Nano - 8gb - black",
              "variant_inventory_management": "shopify",
              "properties": [

              ],
              "product_exists": true,
              "fulfillable_quantity": 1,
              "tax_lines": [

              ]
            }
          },
          {
            "id": 709875399,
            "line_item_id": 466157049,
            "quantity": 1,
            "line_item": {
              "fulfillment_service": "manual",
              "fulfillment_status": null,
              "gift_card": false,
              "grams": 200,
              "id": 466157049,
              "price": "199.00",
              "product_id": 632910392,
              "quantity": 1,
              "requires_shipping": true,
              "sku": "IPOD2008GREEN",
              "taxable": true,
              "title": "IPod Nano - 8gb",
              "variant_id": 39072856,
              "variant_title": "green",
              "vendor": null,
              "name": "IPod Nano - 8gb - green",
              "variant_inventory_management": "shopify",
              "properties": [
                {
                  "name": "Custom Engraving",
                  "value": "Happy Birthday"
                }
              ],
              "product_exists": true,
              "fulfillable_quantity": 1,
              "tax_lines": [

              ]
            }
          }
        ],
        "transactions": [
          {
            "amount": "209.00",
            "authorization": "authorization-key",
            "created_at": "2005-08-05T12:59:12-04:00",
            "gateway": "bogus",
            "id": 179259969,
            "kind": "refund",
            "location_id": null,
            "message": null,
            "order_id": 450789469,
            "parent_id": null,
            "source_name": null,
            "status": "success",
            "test": false,
            "user_id": null,
            "device_id": null,
            "receipt": {}
          }
        ]
      }
    ],
    "payment_details": {
      "avs_result_code": null,
      "credit_card_bin": null,
      "cvv_result_code": null,
      "credit_card_number": "•••• •••• •••• 4242",
      "credit_card_company": "Visa"
    },
    "customer": {
      "accepts_marketing": false,
      "created_at": "2014-08-27T14:04:32-04:00",
      "email": "bob.norman@hostmail.com",
      "first_name": "Bob",
      "id": 207119551,
      "last_name": "Norman",
      "last_order_id": 450789469,
      "multipass_identifier": null,
      "note": null,
      "orders_count": 1,
      "state": "disabled",
      "total_spent": "200.94",
      "updated_at": "2014-08-27T14:04:35-04:00",
      "verified_email": true,
      "tags": "",
      "last_order_name": "#1001",
      "default_address": {
        "address1": "Chestnut Street 92",
        "address2": "",
        "city": "Louisville",
        "company": null,
        "country": "United States",
        "first_name": null,
        "id": 207119551,
        "last_name": null,
        "phone": "555-625-1199",
        "province": "Kentucky",
        "zip": "40202",
        "name": null,
        "province_code": "KY",
        "country_code": "US",
        "country_name": "United States",
        "default": true
      }
    }
  }
}
POST/admin/orders.json

Create a new order

order

In addition to the properties defined earlier, you can use the following flags

  • send_webhooks - Determines whether existing webhooks will be fired for this order
  • send_receipt - Determines whether an order confirmation will be sent to the customer. Default: false.
  • send_fulfillment_receipt - Determines whether a fulfillment confirmation will be sent to the customer. Default: false.
  • inventory_behaviour - Determines which inventory updating behaviour is used. The following values are available:
    • bypass (default): Do not claim inventory.
    • decrement_ignoring_policy: Ignore the product's inventory policy and claim amounts no matter what.
    • decrement_obeying_policy: Obey the product's inventory policy.

Create a simple order with only a product variant id.

POST /admin/orders.json
{
  "order": {
    "line_items": [
      {
        "variant_id": 447654529,
        "quantity": 1
      }
    ]
  }
}
View Response
HTTP/1.1 201 Created

{
  "order": {
    "buyer_accepts_marketing": false,
    "cancel_reason": null,
    "cancelled_at": null,
    "cart_token": null,
    "checkout_token": null,
    "closed_at": null,
    "confirmed": true,
    "created_at": "2014-08-27T14:04:36-04:00",
    "currency": "USD",
    "email": "",
    "financial_status": "paid",
    "fulfillment_status": null,
    "gateway": "",
    "id": 1073459962,
    "landing_site": null,
    "location_id": null,
    "name": "#1002",
    "note": null,
    "number": 2,
    "reference": null,
    "referring_site": null,
    "source_identifier": null,
    "source_name": "755357713",
    "source_url": null,
    "subtotal_price": "199.00",
    "taxes_included": false,
    "test": false,
    "token": "6420066cbff12507fbdc17b730754740",
    "total_discounts": "0.00",
    "total_line_items_price": "199.00",
    "total_price": "199.00",
    "total_price_usd": "199.00",
    "total_tax": "0.00",
    "total_weight": 0,
    "updated_at": "2014-08-27T14:04:36-04:00",
    "user_id": null,
    "browser_ip": null,
    "landing_site_ref": null,
    "order_number": 1002,
    "discount_codes": [

    ],
    "note_attributes": [

    ],
    "processing_method": "",
    "source": "755357713",
    "checkout_id": null,
    "tax_lines": [

    ],
    "tags": "",
    "line_items": [
      {
        "fulfillment_service": "manual",
        "fulfillment_status": null,
        "gift_card": false,
        "grams": 0,
        "id": 1071823172,
        "price": "199.00",
        "product_id": 921728736,
        "quantity": 1,
        "requires_shipping": true,
        "sku": null,
        "taxable": true,
        "title": "IPod Touch 8GB",
        "variant_id": 447654529,
        "variant_title": null,
        "vendor": null,
        "name": "IPod Touch 8GB",
        "variant_inventory_management": "shopify",
        "properties": [

        ],
        "product_exists": true,
        "fulfillable_quantity": 1,
        "tax_lines": [

        ]
      }
    ],
    "shipping_lines": [

    ],
    "fulfillments": [

    ],
    "refunds": [

    ]
  }
}

Create a simple order, sending order receipt and fulfillment receipt to the customer

POST /admin/orders.json
{
  "order": {
    "email": "foo@example.com",
    "fulfillment_status": "fulfilled",
    "send_receipt": true,
    "send_fulfillment_receipt": true,
    "line_items": [
      {
        "variant_id": 447654529,
        "quantity": 1
      }
    ]
  }
}
View Response
HTTP/1.1 201 Created

{
  "order": {
    "buyer_accepts_marketing": false,
    "cancel_reason": null,
    "cancelled_at": null,
    "cart_token": null,
    "checkout_token": null,
    "closed_at": null,
    "confirmed": true,
    "created_at": "2014-08-27T14:04:36-04:00",
    "currency": "USD",
    "email": "foo@example.com",
    "financial_status": "paid",
    "fulfillment_status": "fulfilled",
    "gateway": "",
    "id": 1073459963,
    "landing_site": null,
    "location_id": null,
    "name": "#1002",
    "note": null,
    "number": 2,
    "reference": null,
    "referring_site": null,
    "source_identifier": null,
    "source_name": "755357713",
    "source_url": null,
    "subtotal_price": "199.00",
    "taxes_included": false,
    "test": false,
    "token": "18124425e5d4442049971ff1bb47695c",
    "total_discounts": "0.00",
    "total_line_items_price": "199.00",
    "total_price": "199.00",
    "total_price_usd": "199.00",
    "total_tax": "0.00",
    "total_weight": 0,
    "updated_at": "2014-08-27T14:04:36-04:00",
    "user_id": null,
    "browser_ip": null,
    "landing_site_ref": null,
    "order_number": 1002,
    "discount_codes": [

    ],
    "note_attributes": [

    ],
    "processing_method": "",
    "source": "755357713",
    "checkout_id": null,
    "tax_lines": [

    ],
    "tags": "",
    "line_items": [
      {
        "fulfillment_service": "manual",
        "fulfillment_status": "fulfilled",
        "gift_card": false,
        "grams": 0,
        "id": 1071823173,
        "price": "199.00",
        "product_id": 921728736,
        "quantity": 1,
        "requires_shipping": true,
        "sku": null,
        "taxable": true,
        "title": "IPod Touch 8GB",
        "variant_id": 447654529,
        "variant_title": null,
        "vendor": null,
        "name": "IPod Touch 8GB",
        "variant_inventory_management": "shopify",
        "properties": [

        ],
        "product_exists": true,
        "fulfillable_quantity": 0,
        "tax_lines": [

        ]
      }
    ],
    "shipping_lines": [

    ],
    "fulfillments": [
      {
        "created_at": "2014-08-27T14:04:36-04:00",
        "id": 1022782893,
        "order_id": 1073459963,
        "service": "manual",
        "status": "success",
        "tracking_company": null,
        "updated_at": "2014-08-27T14:04:36-04:00",
        "tracking_number": null,
        "tracking_numbers": [

        ],
        "tracking_url": null,
        "tracking_urls": [

        ],
        "receipt": {},
        "line_items": [
          {
            "fulfillment_service": "manual",
            "fulfillment_status": "fulfilled",
            "gift_card": false,
            "grams": 0,
            "id": 1071823173,
            "price": "199.00",
            "product_id": 921728736,
            "quantity": 1,
            "requires_shipping": true,
            "sku": null,
            "taxable": true,
            "title": "IPod Touch 8GB",
            "variant_id": 447654529,
            "variant_title": null,
            "vendor": null,
            "name": "IPod Touch 8GB",
            "variant_inventory_management": "shopify",
            "properties": [

            ],
            "product_exists": true,
            "fulfillable_quantity": 0,
            "tax_lines": [

            ]
          }
        ]
      }
    ],
    "refunds": [

    ],
    "customer": {
      "accepts_marketing": false,
      "created_at": "2014-08-27T14:04:36-04:00",
      "email": "foo@example.com",
      "first_name": null,
      "id": 1018520252,
      "last_name": null,
      "last_order_id": 1073459963,
      "multipass_identifier": null,
      "note": null,
      "orders_count": 1,
      "state": "disabled",
      "total_spent": "199.00",
      "updated_at": "2014-08-27T14:04:36-04:00",
      "verified_email": true,
      "tags": "",
      "last_order_name": "#1002"
    }
  }
}

Create a simple order without sending order/fulfillment receipt

POST /admin/orders.json
{
  "order": {
    "email": "foo@example.com",
    "fulfillment_status": "fulfilled",
    "line_items": [
      {
        "variant_id": 447654529,
        "quantity": 1
      }
    ]
  }
}
View Response
HTTP/1.1 201 Created

{
  "order": {
    "buyer_accepts_marketing": false,
    "cancel_reason": null,
    "cancelled_at": null,
    "cart_token": null,
    "checkout_token": null,
    "closed_at": null,
    "confirmed": true,
    "created_at": "2014-08-27T14:04:36-04:00",
    "currency": "USD",
    "email": "foo@example.com",
    "financial_status": "paid",
    "fulfillment_status": "fulfilled",
    "gateway": "",
    "id": 1073459964,
    "landing_site": null,
    "location_id": null,
    "name": "#1002",
    "note": null,
    "number": 2,
    "reference": null,
    "referring_site": null,
    "source_identifier": null,
    "source_name": "755357713",
    "source_url": null,
    "subtotal_price": "199.00",
    "taxes_included": false,
    "test": false,
    "token": "22be5e0314be52dc3f174fec1079703d",
    "total_discounts": "0.00",
    "total_line_items_price": "199.00",
    "total_price": "199.00",
    "total_price_usd": "199.00",
    "total_tax": "0.00",
    "total_weight": 0,
    "updated_at": "2014-08-27T14:04:37-04:00",
    "user_id": null,
    "browser_ip": null,
    "landing_site_ref": null,
    "order_number": 1002,
    "discount_codes": [

    ],
    "note_attributes": [

    ],
    "processing_method": "",
    "source": "755357713",
    "checkout_id": null,
    "tax_lines": [

    ],
    "tags": "",
    "line_items": [
      {
        "fulfillment_service": "manual",
        "fulfillment_status": "fulfilled",
        "gift_card": false,
        "grams": 0,
        "id": 1071823174,
        "price": "199.00",
        "product_id": 921728736,
        "quantity": 1,
        "requires_shipping": true,
        "sku": null,
        "taxable": true,
        "title": "IPod Touch 8GB",
        "variant_id": 447654529,
        "variant_title": null,
        "vendor": null,
        "name": "IPod Touch 8GB",
        "variant_inventory_management": "shopify",
        "properties": [

        ],
        "product_exists": true,
        "fulfillable_quantity": 0,
        "tax_lines": [

        ]
      }
    ],
    "shipping_lines": [

    ],
    "fulfillments": [
      {
        "created_at": "2014-08-27T14:04:36-04:00",
        "id": 1022782894,
        "order_id": 1073459964,
        "service": "manual",
        "status": "success",
        "tracking_company": null,
        "updated_at": "2014-08-27T14:04:36-04:00",
        "tracking_number": null,
        "tracking_numbers": [

        ],
        "tracking_url": null,
        "tracking_urls": [

        ],
        "receipt": {},
        "line_items": [
          {
            "fulfillment_service": "manual",
            "fulfillment_status": "fulfilled",
            "gift_card": false,
            "grams": 0,
            "id": 1071823174,
            "price": "199.00",
            "product_id": 921728736,
            "quantity": 1,
            "requires_shipping": true,
            "sku": null,
            "taxable": true,
            "title": "IPod Touch 8GB",
            "variant_id": 447654529,
            "variant_title": null,
            "vendor": null,
            "name": "IPod Touch 8GB",
            "variant_inventory_management": "shopify",
            "properties": [

            ],
            "product_exists": true,
            "fulfillable_quantity": 0,
            "tax_lines": [

            ]
          }
        ]
      }
    ],
    "refunds": [

    ],
    "customer": {
      "accepts_marketing": false,
      "created_at": "2014-08-27T14:04:37-04:00",
      "email": "foo@example.com",
      "first_name": null,
      "id": 1018520253,
      "last_name": null,
      "last_order_id": 1073459964,
      "multipass_identifier": null,
      "note": null,
      "orders_count": 1,
      "state": "disabled",
      "total_spent": "199.00",
      "updated_at": "2014-08-27T14:04:37-04:00",
      "verified_email": true,
      "tags": "",
      "last_order_name": "#1002"
    }
  }
}

Create a more comprehensive order

POST /admin/orders.json
{
  "order": {
    "line_items": [
      {
        "title": "Big Brown Bear Boots",
        "price": 74.99,
        "grams": "1300",
        "quantity": 3
      }
    ],
    "tax_lines": [
      {
        "price": 13.5,
        "rate": 0.06,
        "title": "State tax"
      }
    ],
    "transactions": [
      {
        "kind": "sale",
        "status": "success",
        "amount": 238.47
      }
    ],
    "total_tax": 13.5,
    "currency": "EUR"
  }
}
View Response
HTTP/1.1 201 Created

{
  "order": {
    "buyer_accepts_marketing": false,
    "cancel_reason": null,
    "cancelled_at": null,
    "cart_token": null,
    "checkout_token": null,
    "closed_at": null,
    "confirmed": true,
    "created_at": "2014-08-27T14:04:37-04:00",
    "currency": "EUR",
    "email": "",
    "financial_status": "paid",
    "fulfillment_status": null,
    "gateway": "",
    "id": 1073459965,
    "landing_site": null,
    "location_id": null,
    "name": "#1002",
    "note": null,
    "number": 2,
    "reference": null,
    "referring_site": null,
    "source_identifier": null,
    "source_name": "755357713",
    "source_url": null,
    "subtotal_price": "224.97",
    "taxes_included": false,
    "test": false,
    "token": "30c6be8f2abf5fb5ba51774f468e0656",
    "total_discounts": "0.00",
    "total_line_items_price": "224.97",
    "total_price": "238.47",
    "total_price_usd": "340.54",
    "total_tax": "13.50",
    "total_weight": 0,
    "updated_at": "2014-08-27T14:04:37-04:00",
    "user_id": null,
    "browser_ip": null,
    "landing_site_ref": null,
    "order_number": 1002,
    "discount_codes": [

    ],
    "note_attributes": [

    ],
    "processing_method": "",
    "source": "755357713",
    "checkout_id": null,
    "tax_lines": [
      {
        "price": "13.50",
        "rate": 0.06,
        "title": "State tax"
      }
    ],
    "tags": "",
    "line_items": [
      {
        "fulfillment_service": "manual",
        "fulfillment_status": null,
        "gift_card": false,
        "grams": 1300,
        "id": 1071823175,
        "price": "74.99",
        "product_id": null,
        "quantity": 3,
        "requires_shipping": true,
        "sku": null,
        "taxable": true,
        "title": "Big Brown Bear Boots",
        "variant_id": null,
        "variant_title": null,
        "vendor": null,
        "name": "Big Brown Bear Boots",
        "variant_inventory_management": null,
        "properties": [

        ],
        "product_exists": false,
        "fulfillable_quantity": 3,
        "tax_lines": [

        ]
      }
    ],
    "shipping_lines": [

    ],
    "fulfillments": [

    ],
    "refunds": [

    ]
  }
}

Create a pending order with an existing customer

POST /admin/orders.json
{
  "order": {
    "line_items": [
      {
        "variant_id": 447654529,
        "quantity": 1
      }
    ],
    "customer": {
      "id": 207119551
    },
    "financial_status": "pending"
  }
}
View Response
HTTP/1.1 201 Created

{
  "order": {
    "buyer_accepts_marketing": false,
    "cancel_reason": null,
    "cancelled_at": null,
    "cart_token": null,
    "checkout_token": null,
    "closed_at": null,
    "confirmed": true,
    "created_at": "2014-08-27T14:04:37-04:00",
    "currency": "USD",
    "email": "",
    "financial_status": "pending",
    "fulfillment_status": null,
    "gateway": "",
    "id": 1073459966,
    "landing_site": null,
    "location_id": null,
    "name": "#1002",
    "note": null,
    "number": 2,
    "reference": null,
    "referring_site": null,
    "source_identifier": null,
    "source_name": "755357713",
    "source_url": null,
    "subtotal_price": "199.00",
    "taxes_included": false,
    "test": false,
    "token": "c6f7e5f635d54e5743462ee763cf7e66",
    "total_discounts": "0.00",
    "total_line_items_price": "199.00",
    "total_price": "199.00",
    "total_price_usd": "199.00",
    "total_tax": "0.00",
    "total_weight": 0,
    "updated_at": "2014-08-27T14:04:37-04:00",
    "user_id": null,
    "browser_ip": null,
    "landing_site_ref": null,
    "order_number": 1002,
    "discount_codes": [

    ],
    "note_attributes": [

    ],
    "processing_method": "",
    "source": "755357713",
    "checkout_id": null,
    "tax_lines": [

    ],
    "tags": "",
    "line_items": [
      {
        "fulfillment_service": "manual",
        "fulfillment_status": null,
        "gift_card": false,
        "grams": 0,
        "id": 1071823176,
        "price": "199.00",
        "product_id": 921728736,
        "quantity": 1,
        "requires_shipping": true,
        "sku": null,
        "taxable": true,
        "title": "IPod Touch 8GB",
        "variant_id": 447654529,
        "variant_title": null,
        "vendor": null,
        "name": "IPod Touch 8GB",
        "variant_inventory_management": "shopify",
        "properties": [

        ],
        "product_exists": true,
        "fulfillable_quantity": 1,
        "tax_lines": [

        ]
      }
    ],
    "shipping_lines": [

    ],
    "fulfillments": [

    ],
    "refunds": [

    ],
    "customer": {
      "accepts_marketing": false,
      "created_at": "2014-08-27T14:04:32-04:00",
      "email": "bob.norman@hostmail.com",
      "first_name": "Bob",
      "id": 207119551,
      "last_name": "Norman",
      "last_order_id": 1073459966,
      "multipass_identifier": null,
      "note": null,
      "orders_count": 2,
      "state": "disabled",
      "total_spent": "399.94",
      "updated_at": "2014-08-27T14:04:37-04:00",
      "verified_email": true,
      "tags": "",
      "last_order_name": "#1002",
      "default_address": {
        "address1": "Chestnut Street 92",
        "address2": "",
        "city": "Louisville",
        "company": null,
        "country": "United States",
        "first_name": null,
        "id": 207119551,
        "last_name": null,
        "phone": "555-625-1199",
        "province": "Kentucky",
        "zip": "40202",
        "name": null,
        "province_code": "KY",
        "country_code": "US",
        "country_name": "United States",
        "default": true
      }
    }
  }
}

Create a partially paid order with a new customer and addresses

POST /admin/orders.json
{
  "order": {
    "line_items": [
      {
        "variant_id": 447654529,
        "quantity": 1
      }
    ],
    "customer": {
      "first_name": "Paul",
      "last_name": "Norman",
      "email": "paul.norman@example.com"
    },
    "billing_address": {
      "first_name": "John",
      "last_name": "Smith",
      "address1": "123 Fake Street",
      "phone": "555-555-5555",
      "city": "Fakecity",
      "province": "Ontario",
      "country": "Canada",
      "zip": "H0H0H0"
    },
    "shipping_address": {
      "first_name": "Jane",
      "last_name": "Smith",
      "address1": "123 Fake Street",
      "phone": "777-777-7777",
      "city": "Fakecity",
      "province": "Ontario",
      "country": "Canada",
      "zip": "H0H0H0"
    },
    "email": "jane@example.com",
    "transactions": [
      {
        "kind": "authorization",
        "status": "success",
        "amount": 50.0
      }
    ],
    "financial_status": "partially_paid"
  }
}
View Response
HTTP/1.1 201 Created

{
  "order": {
    "buyer_accepts_marketing": false,
    "cancel_reason": null,
    "cancelled_at": null,
    "cart_token": null,
    "checkout_token": null,
    "closed_at": null,
    "confirmed": true,
    "created_at": "2014-08-27T14:04:38-04:00",
    "currency": "USD",
    "email": "jane@example.com",
    "financial_status": "partially_paid",
    "fulfillment_status": null,
    "gateway": "",
    "id": 1073459967,
    "landing_site": null,
    "location_id": null,
    "name": "#1002",
    "note": null,
    "number": 2,
    "reference": null,
    "referring_site": null,
    "source_identifier": null,
    "source_name": "755357713",
    "source_url": null,
    "subtotal_price": "199.00",
    "taxes_included": false,
    "test": false,
    "token": "e7616d1cdf115a4374b7b7ed29b6cd79",
    "total_discounts": "0.00",
    "total_line_items_price": "199.00",
    "total_price": "199.00",
    "total_price_usd": "199.00",
    "total_tax": "0.00",
    "total_weight": 0,
    "updated_at": "2014-08-27T14:04:38-04:00",
    "user_id": null,
    "browser_ip": null,
    "landing_site_ref": null,
    "order_number": 1002,
    "discount_codes": [

    ],
    "note_attributes": [

    ],
    "processing_method": "",
    "source": "755357713",
    "checkout_id": null,
    "tax_lines": [

    ],
    "tags": "",
    "line_items": [
      {
        "fulfillment_service": "manual",
        "fulfillment_status": null,
        "gift_card": false,
        "grams": 0,
        "id": 1071823177,
        "price": "199.00",
        "product_id": 921728736,
        "quantity": 1,
        "requires_shipping": true,
        "sku": null,
        "taxable": true,
        "title": "IPod Touch 8GB",
        "variant_id": 447654529,
        "variant_title": null,
        "vendor": null,
        "name": "IPod Touch 8GB",
        "variant_inventory_management": "shopify",
        "properties": [

        ],
        "product_exists": true,
        "fulfillable_quantity": 1,
        "tax_lines": [

        ]
      }
    ],
    "shipping_lines": [

    ],
    "billing_address": {
      "address1": "123 Fake Street",
      "address2": null,
      "city": "Fakecity",
      "company": null,
      "country": "Canada",
      "first_name": "John",
      "last_name": "Smith",
      "latitude": null,
      "longitude": null,
      "phone": "555-555-5555",
      "province": "Ontario",
      "zip": "H0H0H0",
      "name": "John Smith",
      "country_code": "CA",
      "province_code": "ON"
    },
    "shipping_address": {
      "address1": "123 Fake Street",
      "address2": null,
      "city": "Fakecity",
      "company": null,
      "country": "Canada",
      "first_name": "Jane",
      "last_name": "Smith",
      "latitude": null,
      "longitude": null,
      "phone": "777-777-7777",
      "province": "Ontario",
      "zip": "H0H0H0",
      "name": "Jane Smith",
      "country_code": "CA",
      "province_code": "ON"
    },
    "fulfillments": [

    ],
    "refunds": [

    ],
    "customer": {
      "accepts_marketing": false,
      "created_at": "2014-08-27T14:04:38-04:00",
      "email": "paul.norman@example.com",
      "first_name": "Paul",
      "id": 1018520254,
      "last_name": "Norman",
      "last_order_id": 1073459967,
      "multipass_identifier": null,
      "note": null,
      "orders_count": 1,
      "state": "disabled",
      "total_spent": "199.00",
      "updated_at": "2014-08-27T14:04:38-04:00",
      "verified_email": true,
      "tags": "",
      "last_order_name": "#1002",
      "default_address": {
        "address1": "123 Fake Street",
        "address2": null,
        "city": "Fakecity",
        "company": null,
        "country": "Canada",
        "first_name": "Jane",
        "id": 1053317293,
        "last_name": "Smith",
        "phone": "777-777-7777",
        "province": "Ontario",
        "zip": "H0H0H0",
        "name": "Jane Smith",
        "province_code": "ON",
        "country_code": "CA",
        "country_name": "Canada",
        "default": true
      }
    }
  }
}
PUT/admin/orders/450789469.json

Change an order’s attributes such as note, email, buyer-accepts-marketing, or remove the customer association

Add Note to order

PUT /admin/orders/#{id}.json
{
  "order": {
    "id": 450789469,
    "note": "Customer contacted us about a custom engraving on this iPod"
  }
}
View Response
HTTP/1.1 200 OK

{
  "order": {
    "buyer_accepts_marketing": false,
    "cancel_reason": null,
    "cancelled_at": null,
    "cart_token": "68778783ad298f1c80c3bafcddeea02f",
    "checkout_token": null,
    "closed_at": null,
    "confirmed": true,
    "created_at": "2008-01-10T11:00:00-05:00",
    "currency": "USD",
    "email": "bob.norman@hostmail.com",
    "financial_status": "authorized",
    "fulfillment_status": null,
    "gateway": "authorize_net",
    "id": 450789469,
    "landing_site": "http://www.example.com?source=abc",
    "location_id": null,
    "name": "#1001",
    "note": "Customer contacted us about a custom engraving on this iPod",
    "number": 1,
    "reference": "fhwdgads",
    "referring_site": "http://www.otherexample.com",
    "source_identifier": "fhwdgads",
    "source_name": "web",
    "source_url": null,
    "subtotal_price": "398.00",
    "taxes_included": false,
    "test": false,
    "token": "b1946ac92492d2347c6235b4d2611184",
    "total_discounts": "0.00",
    "total_line_items_price": "398.00",
    "total_price": "409.94",
    "total_price_usd": "409.94",
    "total_tax": "11.94",
    "total_weight": 0,
    "updated_at": "2014-08-27T14:04:41-04:00",
    "user_id": null,
    "browser_ip": null,
    "landing_site_ref": "abc",
    "order_number": 1001,
    "discount_codes": [
      {
        "code": "TENOFF",
        "amount": "10.00",
        "type": "percentage"
      }
    ],
    "note_attributes": [
      {
        "name": "custom engraving",
        "value": "Happy Birthday"
      },
      {
        "name": "colour",
        "value": "green"
      }
    ],
    "processing_method": "direct",
    "source": "browser",
    "checkout_id": 450789469,
    "tax_lines": [
      {
        "price": "11.94",
        "rate": 0.06,
        "title": "State Tax"
      }
    ],
    "tags": "",
    "line_items": [
      {
        "fulfillment_service": "manual",
        "fulfillment_status": null,
        "gift_card": false,
        "grams": 200,
        "id": 466157049,
        "price": "199.00",
        "product_id": 632910392,
        "quantity": 1,
        "requires_shipping": true,
        "sku": "IPOD2008GREEN",
        "taxable": true,
        "title": "IPod Nano - 8gb",
        "variant_id": 39072856,
        "variant_title": "green",
        "vendor": null,
        "name": "IPod Nano - 8gb - green",
        "variant_inventory_management": "shopify",
        "properties": [
          {
            "name": "Custom Engraving",
            "value": "Happy Birthday"
          }
        ],
        "product_exists": true,
        "fulfillable_quantity": 1,
        "tax_lines": [

        ]
      },
      {
        "fulfillment_service": "manual",
        "fulfillment_status": null,
        "gift_card": false,
        "grams": 200,
        "id": 518995019,
        "price": "199.00",
        "product_id": 632910392,
        "quantity": 1,
        "requires_shipping": true,
        "sku": "IPOD2008RED",
        "taxable": true,
        "title": "IPod Nano - 8gb",
        "variant_id": 49148385,
        "variant_title": "red",
        "vendor": null,
        "name": "IPod Nano - 8gb - red",
        "variant_inventory_management": "shopify",
        "properties": [

        ],
        "product_exists": true,
        "fulfillable_quantity": 1,
        "tax_lines": [

        ]
      },
      {
        "fulfillment_service": "manual",
        "fulfillment_status": null,
        "gift_card": false,
        "grams": 200,
        "id": 703073504,
        "price": "199.00",
        "product_id": 632910392,
        "quantity": 1,
        "requires_shipping": true,
        "sku": "IPOD2008BLACK",
        "taxable": true,
        "title": "IPod Nano - 8gb",
        "variant_id": 457924702,
        "variant_title": "black",
        "vendor": null,
        "name": "IPod Nano - 8gb - black",
        "variant_inventory_management": "shopify",
        "properties": [

        ],
        "product_exists": true,
        "fulfillable_quantity": 1,
        "tax_lines": [

        ]
      }
    ],
    "shipping_lines": [
      {
        "code": "Free Shipping",
        "price": "0.00",
        "source": "shopify",
        "title": "Free Shipping",
        "tax_lines": [

        ]
      }
    ],
    "billing_address": {
      "address1": "Chestnut Street 92",
      "address2": "",
      "city": "Louisville",
      "company": null,
      "country": "United States",
      "first_name": "Bob",
      "last_name": "Norman",
      "latitude": 45.41634,
      "longitude": -75.6868,
      "phone": "555-625-1199",
      "province": "Kentucky",
      "zip": "40202",
      "name": "Bob Norman",
      "country_code": "US",
      "province_code": "KY"
    },
    "shipping_address": {
      "address1": "Chestnut Street 92",
      "address2": "",
      "city": "Louisville",
      "company": null,
      "country": "United States",
      "first_name": "Bob",
      "last_name": "Norman",
      "latitude": 45.41634,
      "longitude": -75.6868,
      "phone": "555-625-1199",
      "province": "Kentucky",
      "zip": "40202",
      "name": "Bob Norman",
      "country_code": "US",
      "province_code": "KY"
    },
    "fulfillments": [
      {
        "created_at": "2014-08-27T14:04:32-04:00",
        "id": 255858046,
        "order_id": 450789469,
        "service": "manual",
        "status": "failure",
        "tracking_company": null,
        "updated_at": "2014-08-27T14:04:32-04:00",
        "tracking_number": "1Z2345",
        "tracking_numbers": [
          "1Z2345"
        ],
        "tracking_url": "http://wwwapps.ups.com/etracking/tracking.cgi?InquiryNumber1=1Z2345&TypeOfInquiryNumber=T&AcceptUPSLicenseAgreement=yes&submit=Track",
        "tracking_urls": [
          "http://wwwapps.ups.com/etracking/tracking.cgi?InquiryNumber1=1Z2345&TypeOfInquiryNumber=T&AcceptUPSLicenseAgreement=yes&submit=Track"
        ],
        "receipt": {
          "testcase": true,
          "authorization": "123456"
        },
        "line_items": [
          {
            "fulfillment_service": "manual",
            "fulfillment_status": null,
            "gift_card": false,
            "grams": 200,
            "id": 466157049,
            "price": "199.00",
            "product_id": 632910392,
            "quantity": 1,
            "requires_shipping": true,
            "sku": "IPOD2008GREEN",
            "taxable": true,
            "title": "IPod Nano - 8gb",
            "variant_id": 39072856,
            "variant_title": "green",
            "vendor": null,
            "name": "IPod Nano - 8gb - green",
            "variant_inventory_management": "shopify",
            "properties": [
              {
                "name": "Custom Engraving",
                "value": "Happy Birthday"
              }
            ],
            "product_exists": true,
            "fulfillable_quantity": 1,
            "tax_lines": [

            ]
          }
        ]
      }
    ],
    "client_details": {
      "accept_language": null,
      "browser_height": null,
      "browser_ip": "0.0.0.0",
      "browser_width": null,
      "session_hash": null,
      "user_agent": null
    },
    "refunds": [
      {
        "created_at": "2014-08-27T14:04:32-04:00",
        "id": 509562969,
        "note": "it broke during shipping",
        "order_id": 450789469,
        "restock": true,
        "user_id": 799407056,
        "refund_line_items": [
          {
            "id": 104689539,
            "line_item_id": 703073504,
            "quantity": 1,
            "line_item": {
              "fulfillment_service": "manual",
              "fulfillment_status": null,
              "gift_card": false,
              "grams": 200,
              "id": 703073504,
              "price": "199.00",
              "product_id": 632910392,
              "quantity": 1,
              "requires_shipping": true,
              "sku": "IPOD2008BLACK",
              "taxable": true,
              "title": "IPod Nano - 8gb",
              "variant_id": 457924702,
              "variant_title": "black",
              "vendor": null,
              "name": "IPod Nano - 8gb - black",
              "variant_inventory_management": "shopify",
              "properties": [

              ],
              "product_exists": true,
              "fulfillable_quantity": 1,
              "tax_lines": [

              ]
            }
          },
          {
            "id": 709875399,
            "line_item_id": 466157049,
            "quantity": 1,
            "line_item": {
              "fulfillment_service": "manual",
              "fulfillment_status": null,
              "gift_card": false,
              "grams": 200,
              "id": 466157049,
              "price": "199.00",
              "product_id": 632910392,
              "quantity": 1,
              "requires_shipping": true,
              "sku": "IPOD2008GREEN",
              "taxable": true,
              "title": "IPod Nano - 8gb",
              "variant_id": 39072856,
              "variant_title": "green",
              "vendor": null,
              "name": "IPod Nano - 8gb - green",
              "variant_inventory_management": "shopify",
              "properties": [
                {
                  "name": "Custom Engraving",
                  "value": "Happy Birthday"
                }
              ],
              "product_exists": true,
              "fulfillable_quantity": 1,
              "tax_lines": [

              ]
            }
          }
        ],
        "transactions": [
          {
            "amount": "209.00",
            "authorization": "authorization-key",
            "created_at": "2005-08-05T12:59:12-04:00",
            "gateway": "bogus",
            "id": 179259969,
            "kind": "refund",
            "location_id": null,
            "message": null,
            "order_id": 450789469,
            "parent_id": null,
            "source_name": null,
            "status": "success",
            "test": false,
            "user_id": null,
            "device_id": null,
            "receipt": {}
          }
        ]
      }
    ],
    "payment_details": {
      "avs_result_code": null,
      "credit_card_bin": null,
      "cvv_result_code": null,
      "credit_card_number": "•••• •••• •••• 4242",
      "credit_card_company": "Visa"
    },
    "customer": {
      "accepts_marketing": false,
      "created_at": "2014-08-27T14:04:32-04:00",
      "email": "bob.norman@hostmail.com",
      "first_name": "Bob",
      "id": 207119551,
      "last_name": "Norman",
      "last_order_id": 450789469,
      "multipass_identifier": null,
      "note": null,
      "orders_count": 1,
      "state": "disabled",
      "total_spent": "200.94",
      "updated_at": "2014-08-27T14:04:41-04:00",
      "verified_email": true,
      "tags": "",
      "last_order_name": "#1001",
      "default_address": {
        "address1": "Chestnut Street 92",
        "address2": "",
        "city": "Louisville",
        "company": null,
        "country": "United States",
        "first_name": null,
        "id": 207119551,
        "last_name": null,
        "phone": "555-625-1199",
        "province": "Kentucky",
        "zip": "40202",
        "name": null,
        "province_code": "KY",
        "country_code": "US",
        "country_name": "United States",
        "default": true
      }
    }
  }
}

Set Note Attributes on an order

PUT /admin/orders/#{id}.json
{
  "order": {
    "id": 450789469,
    "note_attributes": [
      {
        "name": "colour",
        "value": "red"
      }
    ]
  }
}
View Response
HTTP/1.1 200 OK

{
  "order": {
    "buyer_accepts_marketing": false,
    "cancel_reason": null,
    "cancelled_at": null,
    "cart_token": "68778783ad298f1c80c3bafcddeea02f",
    "checkout_token": null,
    "closed_at": null,
    "confirmed": true,
    "created_at": "2008-01-10T11:00:00-05:00",
    "currency": "USD",
    "email": "bob.norman@hostmail.com",
    "financial_status": "authorized",
    "fulfillment_status": null,
    "gateway": "authorize_net",
    "id": 450789469,
    "landing_site": "http://www.example.com?source=abc",
    "location_id": null,
    "name": "#1001",
    "note": null,
    "number": 1,
    "reference": "fhwdgads",
    "referring_site": "http://www.otherexample.com",
    "source_identifier": "fhwdgads",
    "source_name": "web",
    "source_url": null,
    "subtotal_price": "398.00",
    "taxes_included": false,
    "test": false,
    "token": "b1946ac92492d2347c6235b4d2611184",
    "total_discounts": "0.00",
    "total_line_items_price": "398.00",
    "total_price": "409.94",
    "total_price_usd": "409.94",
    "total_tax": "11.94",
    "total_weight": 0,
    "updated_at": "2014-08-27T14:04:41-04:00",
    "user_id": null,
    "browser_ip": null,
    "landing_site_ref": "abc",
    "order_number": 1001,
    "discount_codes": [
      {
        "code": "TENOFF",
        "amount": "10.00",
        "type": "percentage"
      }
    ],
    "note_attributes": [
      {
        "name": "colour",
        "value": "red"
      }
    ],
    "processing_method": "direct",
    "source": "browser",
    "checkout_id": 450789469,
    "tax_lines": [
      {
        "price": "11.94",
        "rate": 0.06,
        "title": "State Tax"
      }
    ],
    "tags": "",
    "line_items": [
      {
        "fulfillment_service": "manual",
        "fulfillment_status": null,
        "gift_card": false,
        "grams": 200,
        "id": 466157049,
        "price": "199.00",
        "product_id": 632910392,
        "quantity": 1,
        "requires_shipping": true,
        "sku": "IPOD2008GREEN",
        "taxable": true,
        "title": "IPod Nano - 8gb",
        "variant_id": 39072856,
        "variant_title": "green",
        "vendor": null,
        "name": "IPod Nano - 8gb - green",
        "variant_inventory_management": "shopify",
        "properties": [
          {
            "name": "Custom Engraving",
            "value": "Happy Birthday"
          }
        ],
        "product_exists": true,
        "fulfillable_quantity": 1,
        "tax_lines": [

        ]
      },
      {
        "fulfillment_service": "manual",
        "fulfillment_status": null,
        "gift_card": false,
        "grams": 200,
        "id": 518995019,
        "price": "199.00",
        "product_id": 632910392,
        "quantity": 1,
        "requires_shipping": true,
        "sku": "IPOD2008RED",
        "taxable": true,
        "title": "IPod Nano - 8gb",
        "variant_id": 49148385,
        "variant_title": "red",
        "vendor": null,
        "name": "IPod Nano - 8gb - red",
        "variant_inventory_management": "shopify",
        "properties": [

        ],
        "product_exists": true,
        "fulfillable_quantity": 1,
        "tax_lines": [

        ]
      },
      {
        "fulfillment_service": "manual",
        "fulfillment_status": null,
        "gift_card": false,
        "grams": 200,
        "id": 703073504,
        "price": "199.00",
        "product_id": 632910392,
        "quantity": 1,
        "requires_shipping": true,
        "sku": "IPOD2008BLACK",
        "taxable": true,
        "title": "IPod Nano - 8gb",
        "variant_id": 457924702,
        "variant_title": "black",
        "vendor": null,
        "name": "IPod Nano - 8gb - black",
        "variant_inventory_management": "shopify",
        "properties": [

        ],
        "product_exists": true,
        "fulfillable_quantity": 1,
        "tax_lines": [

        ]
      }
    ],
    "shipping_lines": [
      {
        "code": "Free Shipping",
        "price": "0.00",
        "source": "shopify",
        "title": "Free Shipping",
        "tax_lines": [

        ]
      }
    ],
    "billing_address": {
      "address1": "Chestnut Street 92",
      "address2": "",
      "city": "Louisville",
      "company": null,
      "country": "United States",
      "first_name": "Bob",
      "last_name": "Norman",
      "latitude": 45.41634,
      "longitude": -75.6868,
      "phone": "555-625-1199",
      "province": "Kentucky",
      "zip": "40202",
      "name": "Bob Norman",
      "country_code": "US",
      "province_code": "KY"
    },
    "shipping_address": {
      "address1": "Chestnut Street 92",
      "address2": "",
      "city": "Louisville",
      "company": null,
      "country": "United States",
      "first_name": "Bob",
      "last_name": "Norman",
      "latitude": 45.41634,
      "longitude": -75.6868,
      "phone": "555-625-1199",
      "province": "Kentucky",
      "zip": "40202",
      "name": "Bob Norman",
      "country_code": "US",
      "province_code": "KY"
    },
    "fulfillments": [
      {
        "created_at": "2014-08-27T14:04:32-04:00",
        "id": 255858046,
        "order_id": 450789469,
        "service": "manual",
        "status": "failure",
        "tracking_company": null,
        "updated_at": "2014-08-27T14:04:32-04:00",
        "tracking_number": "1Z2345",
        "tracking_numbers": [
          "1Z2345"
        ],
        "tracking_url": "http://wwwapps.ups.com/etracking/tracking.cgi?InquiryNumber1=1Z2345&TypeOfInquiryNumber=T&AcceptUPSLicenseAgreement=yes&submit=Track",
        "tracking_urls": [
          "http://wwwapps.ups.com/etracking/tracking.cgi?InquiryNumber1=1Z2345&TypeOfInquiryNumber=T&AcceptUPSLicenseAgreement=yes&submit=Track"
        ],
        "receipt": {
          "testcase": true,
          "authorization": "123456"
        },
        "line_items": [
          {
            "fulfillment_service": "manual",
            "fulfillment_status": null,
            "gift_card": false,
            "grams": 200,
            "id": 466157049,
            "price": "199.00",
            "product_id": 632910392,
            "quantity": 1,
            "requires_shipping": true,
            "sku": "IPOD2008GREEN",
            "taxable": true,
            "title": "IPod Nano - 8gb",
            "variant_id": 39072856,
            "variant_title": "green",
            "vendor": null,
            "name": "IPod Nano - 8gb - green",
            "variant_inventory_management": "shopify",
            "properties": [
              {
                "name": "Custom Engraving",
                "value": "Happy Birthday"
              }
            ],
            "product_exists": true,
            "fulfillable_quantity": 1,
            "tax_lines": [

            ]
          }
        ]
      }
    ],
    "client_details": {
      "accept_language": null,
      "browser_height": null,
      "browser_ip": "0.0.0.0",
      "browser_width": null,
      "session_hash": null,
      "user_agent": null
    },
    "refunds": [
      {
        "created_at": "2014-08-27T14:04:32-04:00",
        "id": 509562969,
        "note": "it broke during shipping",
        "order_id": 450789469,
        "restock": true,
        "user_id": 799407056,
        "refund_line_items": [
          {
            "id": 104689539,
            "line_item_id": 703073504,
            "quantity": 1,
            "line_item": {
              "fulfillment_service": "manual",
              "fulfillment_status": null,
              "gift_card": false,
              "grams": 200,
              "id": 703073504,
              "price": "199.00",
              "product_id": 632910392,
              "quantity": 1,
              "requires_shipping": true,
              "sku": "IPOD2008BLACK",
              "taxable": true,
              "title": "IPod Nano - 8gb",
              "variant_id": 457924702,
              "variant_title": "black",
              "vendor": null,
              "name": "IPod Nano - 8gb - black",
              "variant_inventory_management": "shopify",
              "properties": [

              ],
              "product_exists": true,
              "fulfillable_quantity": 1,
              "tax_lines": [

              ]
            }
          },
          {
            "id": 709875399,
            "line_item_id": 466157049,
            "quantity": 1,
            "line_item": {
              "fulfillment_service": "manual",
              "fulfillment_status": null,
              "gift_card": false,
              "grams": 200,
              "id": 466157049,
              "price": "199.00",
              "product_id": 632910392,
              "quantity": 1,
              "requires_shipping": true,
              "sku": "IPOD2008GREEN",
              "taxable": true,
              "title": "IPod Nano - 8gb",
              "variant_id": 39072856,
              "variant_title": "green",
              "vendor": null,
              "name": "IPod Nano - 8gb - green",
              "variant_inventory_management": "shopify",
              "properties": [
                {
                  "name": "Custom Engraving",
                  "value": "Happy Birthday"
                }
              ],
              "product_exists": true,
              "fulfillable_quantity": 1,
              "tax_lines": [

              ]
            }
          }
        ],
        "transactions": [
          {
            "amount": "209.00",
            "authorization": "authorization-key",
            "created_at": "2005-08-05T12:59:12-04:00",
            "gateway": "bogus",
            "id": 179259969,
            "kind": "refund",
            "location_id": null,
            "message": null,
            "order_id": 450789469,
            "parent_id": null,
            "source_name": null,
            "status": "success",
            "test": false,
            "user_id": null,
            "device_id": null,
            "receipt": {}
          }
        ]
      }
    ],
    "payment_details": {
      "avs_result_code": null,
      "credit_card_bin": null,
      "cvv_result_code": null,
      "credit_card_number": "•••• •••• •••• 4242",
      "credit_card_company": "Visa"
    },
    "customer": {
      "accepts_marketing": false,
      "created_at": "2014-08-27T14:04:32-04:00",
      "email": "bob.norman@hostmail.com",
      "first_name": "Bob",
      "id": 207119551,
      "last_name": "Norman",
      "last_order_id": 450789469,
      "multipass_identifier": null,
      "note": null,
      "orders_count": 1,
      "state": "disabled",
      "total_spent": "200.94",
      "updated_at": "2014-08-27T14:04:41-04:00",
      "verified_email": true,
      "tags": "",
      "last_order_name": "#1001",
      "default_address": {
        "address1": "Chestnut Street 92",
        "address2": "",
        "city": "Louisville",
        "company": null,
        "country": "United States",
        "first_name": null,
        "id": 207119551,
        "last_name": null,
        "phone": "555-625-1199",
        "province": "Kentucky",
        "zip": "40202",
        "name": null,
        "province_code": "KY",
        "country_code": "US",
        "country_name": "United States",
        "default": true
      }
    }
  }
}

Change an order’s email

PUT /admin/orders/#{id}.json
{
  "order": {
    "id": 450789469,
    "email": "a-different@email.com"
  }
}
View Response
HTTP/1.1 200 OK

{
  "order": {
    "buyer_accepts_marketing": false,
    "cancel_reason": null,
    "cancelled_at": null,
    "cart_token": "68778783ad298f1c80c3bafcddeea02f",
    "checkout_token": null,
    "closed_at": null,
    "confirmed": true,
    "created_at": "2008-01-10T11:00:00-05:00",
    "currency": "USD",
    "email": "a-different@email.com",
    "financial_status": "authorized",
    "fulfillment_status": null,
    "gateway": "authorize_net",
    "id": 450789469,
    "landing_site": "http://www.example.com?source=abc",
    "location_id": null,
    "name": "#1001",
    "note": null,
    "number": 1,
    "reference": "fhwdgads",
    "referring_site": "http://www.otherexample.com",
    "source_identifier": "fhwdgads",
    "source_name": "web",
    "source_url": null,
    "subtotal_price": "398.00",
    "taxes_included": false,
    "test": false,
    "token": "b1946ac92492d2347c6235b4d2611184",
    "total_discounts": "0.00",
    "total_line_items_price": "398.00",
    "total_price": "409.94",
    "total_price_usd": "409.94",
    "total_tax": "11.94",
    "total_weight": 0,
    "updated_at": "2014-08-27T14:04:41-04:00",
    "user_id": null,
    "browser_ip": null,
    "landing_site_ref": "abc",
    "order_number": 1001,
    "discount_codes": [
      {
        "code": "TENOFF",
        "amount": "10.00",
        "type": "percentage"
      }
    ],
    "note_attributes": [
      {
        "name": "custom engraving",
        "value": "Happy Birthday"
      },
      {
        "name": "colour",
        "value": "green"
      }
    ],
    "processing_method": "direct",
    "source": "browser",
    "checkout_id": 450789469,
    "tax_lines": [
      {
        "price": "11.94",
        "rate": 0.06,
        "title": "State Tax"
      }
    ],
    "tags": "",
    "line_items": [
      {
        "fulfillment_service": "manual",
        "fulfillment_status": null,
        "gift_card": false,
        "grams": 200,
        "id": 466157049,
        "price": "199.00",
        "product_id": 632910392,
        "quantity": 1,
        "requires_shipping": true,
        "sku": "IPOD2008GREEN",
        "taxable": true,
        "title": "IPod Nano - 8gb",
        "variant_id": 39072856,
        "variant_title": "green",
        "vendor": null,
        "name": "IPod Nano - 8gb - green",
        "variant_inventory_management": "shopify",
        "properties": [
          {
            "name": "Custom Engraving",
            "value": "Happy Birthday"
          }
        ],
        "product_exists": true,
        "fulfillable_quantity": 1,
        "tax_lines": [

        ]
      },
      {
        "fulfillment_service": "manual",
        "fulfillment_status": null,
        "gift_card": false,
        "grams": 200,
        "id": 518995019,
        "price": "199.00",
        "product_id": 632910392,
        "quantity": 1,
        "requires_shipping": true,
        "sku": "IPOD2008RED",
        "taxable": true,
        "title": "IPod Nano - 8gb",
        "variant_id": 49148385,
        "variant_title": "red",
        "vendor": null,
        "name": "IPod Nano - 8gb - red",
        "variant_inventory_management": "shopify",
        "properties": [

        ],
        "product_exists": true,
        "fulfillable_quantity": 1,
        "tax_lines": [

        ]
      },
      {
        "fulfillment_service": "manual",
        "fulfillment_status": null,
        "gift_card": false,
        "grams": 200,
        "id": 703073504,
        "price": "199.00",
        "product_id": 632910392,
        "quantity": 1,
        "requires_shipping": true,
        "sku": "IPOD2008BLACK",
        "taxable": true,
        "title": "IPod Nano - 8gb",
        "variant_id": 457924702,
        "variant_title": "black",
        "vendor": null,
        "name": "IPod Nano - 8gb - black",
        "variant_inventory_management": "shopify",
        "properties": [

        ],
        "product_exists": true,
        "fulfillable_quantity": 1,
        "tax_lines": [

        ]
      }
    ],
    "shipping_lines": [
      {
        "code": "Free Shipping",
        "price": "0.00",
        "source": "shopify",
        "title": "Free Shipping",
        "tax_lines": [

        ]
      }
    ],
    "billing_address": {
      "address1": "Chestnut Street 92",
      "address2": "",
      "city": "Louisville",
      "company": null,
      "country": "United States",
      "first_name": "Bob",
      "last_name": "Norman",
      "latitude": 45.41634,
      "longitude": -75.6868,
      "phone": "555-625-1199",
      "province": "Kentucky",
      "zip": "40202",
      "name": "Bob Norman",
      "country_code": "US",
      "province_code": "KY"
    },
    "shipping_address": {
      "address1": "Chestnut Street 92",
      "address2": "",
      "city": "Louisville",
      "company": null,
      "country": "United States",
      "first_name": "Bob",
      "last_name": "Norman",
      "latitude": 45.41634,
      "longitude": -75.6868,
      "phone": "555-625-1199",
      "province": "Kentucky",
      "zip": "40202",
      "name": "Bob Norman",
      "country_code": "US",
      "province_code": "KY"
    },
    "fulfillments": [
      {
        "created_at": "2014-08-27T14:04:32-04:00",
        "id": 255858046,
        "order_id": 450789469,
        "service": "manual",
        "status": "failure",
        "tracking_company": null,
        "updated_at": "2014-08-27T14:04:32-04:00",
        "tracking_number": "1Z2345",
        "tracking_numbers": [
          "1Z2345"
        ],
        "tracking_url": "http://wwwapps.ups.com/etracking/tracking.cgi?InquiryNumber1=1Z2345&TypeOfInquiryNumber=T&AcceptUPSLicenseAgreement=yes&submit=Track",
        "tracking_urls": [
          "http://wwwapps.ups.com/etracking/tracking.cgi?InquiryNumber1=1Z2345&TypeOfInquiryNumber=T&AcceptUPSLicenseAgreement=yes&submit=Track"
        ],
        "receipt": {
          "testcase": true,
          "authorization": "123456"
        },
        "line_items": [
          {
            "fulfillment_service": "manual",
            "fulfillment_status": null,
            "gift_card": false,
            "grams": 200,
            "id": 466157049,
            "price": "199.00",
            "product_id": 632910392,
            "quantity": 1,
            "requires_shipping": true,
            "sku": "IPOD2008GREEN",
            "taxable": true,
            "title": "IPod Nano - 8gb",
            "variant_id": 39072856,
            "variant_title": "green",
            "vendor": null,
            "name": "IPod Nano - 8gb - green",
            "variant_inventory_management": "shopify",
            "properties": [
              {
                "name": "Custom Engraving",
                "value": "Happy Birthday"
              }
            ],
            "product_exists": true,
            "fulfillable_quantity": 1,
            "tax_lines": [

            ]
          }
        ]
      }
    ],
    "client_details": {
      "accept_language": null,
      "browser_height": null,
      "browser_ip": "0.0.0.0",
      "browser_width": null,
      "session_hash": null,
      "user_agent": null
    },
    "refunds": [
      {
        "created_at": "2014-08-27T14:04:32-04:00",
        "id": 509562969,
        "note": "it broke during shipping",
        "order_id": 450789469,
        "restock": true,
        "user_id": 799407056,
        "refund_line_items": [
          {
            "id": 104689539,
            "line_item_id": 703073504,
            "quantity": 1,
            "line_item": {
              "fulfillment_service": "manual",
              "fulfillment_status": null,
              "gift_card": false,
              "grams": 200,
              "id": 703073504,
              "price": "199.00",
              "product_id": 632910392,
              "quantity": 1,
              "requires_shipping": true,
              "sku": "IPOD2008BLACK",
              "taxable": true,
              "title": "IPod Nano - 8gb",
              "variant_id": 457924702,
              "variant_title": "black",
              "vendor": null,
              "name": "IPod Nano - 8gb - black",
              "variant_inventory_management": "shopify",
              "properties": [

              ],
              "product_exists": true,
              "fulfillable_quantity": 1,
              "tax_lines": [

              ]
            }
          },
          {
            "id": 709875399,
            "line_item_id": 466157049,
            "quantity": 1,
            "line_item": {
              "fulfillment_service": "manual",
              "fulfillment_status": null,
              "gift_card": false,
              "grams": 200,
              "id": 466157049,
              "price": "199.00",
              "product_id": 632910392,
              "quantity": 1,
              "requires_shipping": true,
              "sku": "IPOD2008GREEN",
              "taxable": true,
              "title": "IPod Nano - 8gb",
              "variant_id": 39072856,
              "variant_title": "green",
              "vendor": null,
              "name": "IPod Nano - 8gb - green",
              "variant_inventory_management": "shopify",
              "properties": [
                {
                  "name": "Custom Engraving",
                  "value": "Happy Birthday"
                }
              ],
              "product_exists": true,
              "fulfillable_quantity": 1,
              "tax_lines": [

              ]
            }
          }
        ],
        "transactions": [
          {
            "amount": "209.00",
            "authorization": "authorization-key",
            "created_at": "2005-08-05T12:59:12-04:00",
            "gateway": "bogus",
            "id": 179259969,
            "kind": "refund",
            "location_id": null,
            "message": null,
            "order_id": 450789469,
            "parent_id": null,
            "source_name": null,
            "status": "success",
            "test": false,
            "user_id": null,
            "device_id": null,
            "receipt": {}
          }
        ]
      }
    ],
    "payment_details": {
      "avs_result_code": null,
      "credit_card_bin": null,
      "cvv_result_code": null,
      "credit_card_number": "•••• •••• •••• 4242",
      "credit_card_company": "Visa"
    },
    "customer": {
      "accepts_marketing": false,
      "created_at": "2014-08-27T14:04:32-04:00",
      "email": "bob.norman@hostmail.com",
      "first_name": "Bob",
      "id": 207119551,
      "last_name": "Norman",
      "last_order_id": 450789469,
      "multipass_identifier": null,
      "note": null,
      "orders_count": 1,
      "state": "disabled",
      "total_spent": "200.94",
      "updated_at": "2014-08-27T14:04:41-04:00",
      "verified_email": true,
      "tags": "",
      "last_order_name": "#1001",
      "default_address": {
        "address1": "Chestnut Street 92",
        "address2": "",
        "city": "Louisville",
        "company": null,
        "country": "United States",
        "first_name": null,
        "id": 207119551,
        "last_name": null,
        "phone": "555-625-1199",
        "province": "Kentucky",
        "zip": "40202",
        "name": null,
        "province_code": "KY",
        "country_code": "US",
        "country_name": "United States",
        "default": true
      }
    }
  }
}

Change an order so that its buyer accepts marketing

PUT /admin/orders/#{id}.json
{
  "order": {
    "id": 450789469,
    "buyer_accepts_marketing": true
  }
}
View Response
HTTP/1.1 200 OK

{
  "order": {
    "buyer_accepts_marketing": true,
    "cancel_reason": null,
    "cancelled_at": null,
    "cart_token": "68778783ad298f1c80c3bafcddeea02f",
    "checkout_token": null,
    "closed_at": null,
    "confirmed": true,
    "created_at": "2008-01-10T11:00:00-05:00",
    "currency": "USD",
    "email": "bob.norman@hostmail.com",
    "financial_status": "authorized",
    "fulfillment_status": null,
    "gateway": "authorize_net",
    "id": 450789469,
    "landing_site": "http://www.example.com?source=abc",
    "location_id": null,
    "name": "#1001",
    "note": null,
    "number": 1,
    "reference": "fhwdgads",
    "referring_site": "http://www.otherexample.com",
    "source_identifier": "fhwdgads",
    "source_name": "web",
    "source_url": null,
    "subtotal_price": "398.00",
    "taxes_included": false,
    "test": false,
    "token": "b1946ac92492d2347c6235b4d2611184",
    "total_discounts": "0.00",
    "total_line_items_price": "398.00",
    "total_price": "409.94",
    "total_price_usd": "409.94",
    "total_tax": "11.94",
    "total_weight": 0,
    "updated_at": "2014-08-27T14:04:42-04:00",
    "user_id": null,
    "browser_ip": null,
    "landing_site_ref": "abc",
    "order_number": 1001,
    "discount_codes": [
      {
        "code": "TENOFF",
        "amount": "10.00",
        "type": "percentage"
      }
    ],
    "note_attributes": [
      {
        "name": "custom engraving",
        "value": "Happy Birthday"
      },
      {
        "name": "colour",
        "value": "green"
      }
    ],
    "processing_method": "direct",
    "source": "browser",
    "checkout_id": 450789469,
    "tax_lines": [
      {
        "price": "11.94",
        "rate": 0.06,
        "title": "State Tax"
      }
    ],
    "tags": "",
    "line_items": [
      {
        "fulfillment_service": "manual",
        "fulfillment_status": null,
        "gift_card": false,
        "grams": 200,
        "id": 466157049,
        "price": "199.00",
        "product_id": 632910392,
        "quantity": 1,
        "requires_shipping": true,
        "sku": "IPOD2008GREEN",
        "taxable": true,
        "title": "IPod Nano - 8gb",
        "variant_id": 39072856,
        "variant_title": "green",
        "vendor": null,
        "name": "IPod Nano - 8gb - green",
        "variant_inventory_management": "shopify",
        "properties": [
          {
            "name": "Custom Engraving",
            "value": "Happy Birthday"
          }
        ],
        "product_exists": true,
        "fulfillable_quantity": 1,
        "tax_lines": [

        ]
      },
      {
        "fulfillment_service": "manual",
        "fulfillment_status": null,
        "gift_card": false,
        "grams": 200,
        "id": 518995019,
        "price": "199.00",
        "product_id": 632910392,
        "quantity": 1,
        "requires_shipping": true,
        "sku": "IPOD2008RED",
        "taxable": true,
        "title": "IPod Nano - 8gb",
        "variant_id": 49148385,
        "variant_title": "red",
        "vendor": null,
        "name": "IPod Nano - 8gb - red",
        "variant_inventory_management": "shopify",
        "properties": [

        ],
        "product_exists": true,
        "fulfillable_quantity": 1,
        "tax_lines": [

        ]
      },
      {
        "fulfillment_service": "manual",
        "fulfillment_status": null,
        "gift_card": false,
        "grams": 200,
        "id": 703073504,
        "price": "199.00",
        "product_id": 632910392,
        "quantity": 1,
        "requires_shipping": true,
        "sku": "IPOD2008BLACK",
        "taxable": true,
        "title": "IPod Nano - 8gb",
        "variant_id": 457924702,
        "variant_title": "black",
        "vendor": null,
        "name": "IPod Nano - 8gb - black",
        "variant_inventory_management": "shopify",
        "properties": [

        ],
        "product_exists": true,
        "fulfillable_quantity": 1,
        "tax_lines": [

        ]
      }
    ],
    "shipping_lines": [
      {
        "code": "Free Shipping",
        "price": "0.00",
        "source": "shopify",
        "title": "Free Shipping",
        "tax_lines": [

        ]
      }
    ],
    "billing_address": {
      "address1": "Chestnut Street 92",
      "address2": "",
      "city": "Louisville",
      "company": null,
      "country": "United States",
      "first_name": "Bob",
      "last_name": "Norman",
      "latitude": 45.41634,
      "longitude": -75.6868,
      "phone": "555-625-1199",
      "province": "Kentucky",
      "zip": "40202",
      "name": "Bob Norman",
      "country_code": "US",
      "province_code": "KY"
    },
    "shipping_address": {
      "address1": "Chestnut Street 92",
      "address2": "",
      "city": "Louisville",
      "company": null,
      "country": "United States",
      "first_name": "Bob",
      "last_name": "Norman",
      "latitude": 45.41634,
      "longitude": -75.6868,
      "phone": "555-625-1199",
      "province": "Kentucky",
      "zip": "40202",
      "name": "Bob Norman",
      "country_code": "US",
      "province_code": "KY"
    },
    "fulfillments": [
      {
        "created_at": "2014-08-27T14:04:32-04:00",
        "id": 255858046,
        "order_id": 450789469,
        "service": "manual",
        "status": "failure",
        "tracking_company": null,
        "updated_at": "2014-08-27T14:04:32-04:00",
        "tracking_number": "1Z2345",
        "tracking_numbers": [
          "1Z2345"
        ],
        "tracking_url": "http://wwwapps.ups.com/etracking/tracking.cgi?InquiryNumber1=1Z2345&TypeOfInquiryNumber=T&AcceptUPSLicenseAgreement=yes&submit=Track",
        "tracking_urls": [
          "http://wwwapps.ups.com/etracking/tracking.cgi?InquiryNumber1=1Z2345&TypeOfInquiryNumber=T&AcceptUPSLicenseAgreement=yes&submit=Track"
        ],
        "receipt": {
          "testcase": true,
          "authorization": "123456"
        },
        "line_items": [
          {
            "fulfillment_service": "manual",
            "fulfillment_status": null,
            "gift_card": false,
            "grams": 200,
            "id": 466157049,
            "price": "199.00",
            "product_id": 632910392,
            "quantity": 1,
            "requires_shipping": true,
            "sku": "IPOD2008GREEN",
            "taxable": true,
            "title": "IPod Nano - 8gb",
            "variant_id": 39072856,
            "variant_title": "green",
            "vendor": null,
            "name": "IPod Nano - 8gb - green",
            "variant_inventory_management": "shopify",
            "properties": [
              {
                "name": "Custom Engraving",
                "value": "Happy Birthday"
              }
            ],
            "product_exists": true,
            "fulfillable_quantity": 1,
            "tax_lines": [

            ]
          }
        ]
      }
    ],
    "client_details": {
      "accept_language": null,
      "browser_height": null,
      "browser_ip": "0.0.0.0",
      "browser_width": null,
      "session_hash": null,
      "user_agent": null
    },
    "refunds": [
      {
        "created_at": "2014-08-27T14:04:32-04:00",
        "id": 509562969,
        "note": "it broke during shipping",
        "order_id": 450789469,
        "restock": true,
        "user_id": 799407056,
        "refund_line_items": [
          {
            "id": 104689539,
            "line_item_id": 703073504,
            "quantity": 1,
            "line_item": {
              "fulfillment_service": "manual",
              "fulfillment_status": null,
              "gift_card": false,
              "grams": 200,
              "id": 703073504,
              "price": "199.00",
              "product_id": 632910392,
              "quantity": 1,
              "requires_shipping": true,
              "sku": "IPOD2008BLACK",
              "taxable": true,
              "title": "IPod Nano - 8gb",
              "variant_id": 457924702,
              "variant_title": "black",
              "vendor": null,
              "name": "IPod Nano - 8gb - black",
              "variant_inventory_management": "shopify",
              "properties": [

              ],
              "product_exists": true,
              "fulfillable_quantity": 1,
              "tax_lines": [

              ]
            }
          },
          {
            "id": 709875399,
            "line_item_id": 466157049,
            "quantity": 1,
            "line_item": {
              "fulfillment_service": "manual",
              "fulfillment_status": null,
              "gift_card": false,
              "grams": 200,
              "id": 466157049,
              "price": "199.00",
              "product_id": 632910392,
              "quantity": 1,
              "requires_shipping": true,
              "sku": "IPOD2008GREEN",
              "taxable": true,
              "title": "IPod Nano - 8gb",
              "variant_id": 39072856,
              "variant_title": "green",
              "vendor": null,
              "name": "IPod Nano - 8gb - green",
              "variant_inventory_management": "shopify",
              "properties": [
                {
                  "name": "Custom Engraving",
                  "value": "Happy Birthday"
                }
              ],
              "product_exists": true,
              "fulfillable_quantity": 1,
              "tax_lines": [

              ]
            }
          }
        ],
        "transactions": [
          {
            "amount": "209.00",
            "authorization": "authorization-key",
            "created_at": "2005-08-05T12:59:12-04:00",
            "gateway": "bogus",
            "id": 179259969,
            "kind": "refund",
            "location_id": null,
            "message": null,
            "order_id": 450789469,
            "parent_id": null,
            "source_name": null,
            "status": "success",
            "test": false,
            "user_id": null,
            "device_id": null,
            "receipt": {}
          }
        ]
      }
    ],
    "payment_details": {
      "avs_result_code": null,
      "credit_card_bin": null,
      "cvv_result_code": null,
      "credit_card_number": "•••• •••• •••• 4242",
      "credit_card_company": "Visa"
    },
    "customer": {
      "accepts_marketing": false,
      "created_at": "2014-08-27T14:04:32-04:00",
      "email": "bob.norman@hostmail.com",
      "first_name": "Bob",
      "id": 207119551,
      "last_name": "Norman",
      "last_order_id": 450789469,
      "multipass_identifier": null,
      "note": null,
      "orders_count": 1,
      "state": "disabled",
      "total_spent": "200.94",
      "updated_at": "2014-08-27T14:04:42-04:00",
      "verified_email": true,
      "tags": "",
      "last_order_name": "#1001",
      "default_address": {
        "address1": "Chestnut Street 92",
        "address2": "",
        "city": "Louisville",
        "company": null,
        "country": "United States",
        "first_name": null,
        "id": 207119551,
        "last_name": null,
        "phone": "555-625-1199",
        "province": "Kentucky",
        "zip": "40202",
        "name": null,
        "province_code": "KY",
        "country_code": "US",
        "country_name": "United States",
        "default": true
      }
    }
  }
}

Add a metafield to an existing order

PUT /admin/orders/#{id}.json
{
  "order": {
    "id": 450789469,
    "metafields": [
      {
        "key": "new",
        "value": "newvalue",
        "value_type": "string",
        "namespace": "global"
      }
    ]
  }
}
View Response
HTTP/1.1 200 OK

{
  "order": {
    "buyer_accepts_marketing": false,
    "cancel_reason": null,
    "cancelled_at": null,
    "cart_token": "68778783ad298f1c80c3bafcddeea02f",
    "checkout_token": null,
    "closed_at": null,
    "confirmed": true,
    "created_at": "2008-01-10T11:00:00-05:00",
    "currency": "USD",
    "email": "bob.norman@hostmail.com",
    "financial_status": "authorized",
    "fulfillment_status": null,
    "gateway": "authorize_net",
    "id": 450789469,
    "landing_site": "http://www.example.com?source=abc",
    "location_id": null,
    "name": "#1001",
    "note": null,
    "number": 1,
    "reference": "fhwdgads",
    "referring_site": "http://www.otherexample.com",
    "source_identifier": "fhwdgads",
    "source_name": "web",
    "source_url": null,
    "subtotal_price": "398.00",
    "taxes_included": false,
    "test": false,
    "token": "b1946ac92492d2347c6235b4d2611184",
    "total_discounts": "0.00",
    "total_line_items_price": "398.00",
    "total_price": "409.94",
    "total_price_usd": "409.94",
    "total_tax": "11.94",
    "total_weight": 0,
    "updated_at": "2014-08-27T14:04:42-04:00",
    "user_id": null,
    "browser_ip": null,
    "landing_site_ref": "abc",
    "order_number": 1001,
    "discount_codes": [
      {
        "code": "TENOFF",
        "amount": "10.00",
        "type": "percentage"
      }
    ],
    "note_attributes": [
      {
        "name": "custom engraving",
        "value": "Happy Birthday"
      },
      {
        "name": "colour",
        "value": "green"
      }
    ],
    "processing_method": "direct",
    "source": "browser",
    "checkout_id": 450789469,
    "tax_lines": [
      {
        "price": "11.94",
        "rate": 0.06,
        "title": "State Tax"
      }
    ],
    "tags": "",
    "line_items": [
      {
        "fulfillment_service": "manual",
        "fulfillment_status": null,
        "gift_card": false,
        "grams": 200,
        "id": 466157049,
        "price": "199.00",
        "product_id": 632910392,
        "quantity": 1,
        "requires_shipping": true,
        "sku": "IPOD2008GREEN",
        "taxable": true,
        "title": "IPod Nano - 8gb",
        "variant_id": 39072856,
        "variant_title": "green",
        "vendor": null,
        "name": "IPod Nano - 8gb - green",
        "variant_inventory_management": "shopify",
        "properties": [
          {
            "name": "Custom Engraving",
            "value": "Happy Birthday"
          }
        ],
        "product_exists": true,
        "fulfillable_quantity": 1,
        "tax_lines": [

        ]
      },
      {
        "fulfillment_service": "manual",
        "fulfillment_status": null,
        "gift_card": false,
        "grams": 200,
        "id": 518995019,
        "price": "199.00",
        "product_id": 632910392,
        "quantity": 1,
        "requires_shipping": true,
        "sku": "IPOD2008RED",
        "taxable": true,
        "title": "IPod Nano - 8gb",
        "variant_id": 49148385,
        "variant_title": "red",
        "vendor": null,
        "name": "IPod Nano - 8gb - red",
        "variant_inventory_management": "shopify",
        "properties": [

        ],
        "product_exists": true,
        "fulfillable_quantity": 1,
        "tax_lines": [

        ]
      },
      {
        "fulfillment_service": "manual",
        "fulfillment_status": null,
        "gift_card": false,
        "grams": 200,
        "id": 703073504,
        "price": "199.00",
        "product_id": 632910392,
        "quantity": 1,
        "requires_shipping": true,
        "sku": "IPOD2008BLACK",
        "taxable": true,
        "title": "IPod Nano - 8gb",
        "variant_id": 457924702,
        "variant_title": "black",
        "vendor": null,
        "name": "IPod Nano - 8gb - black",
        "variant_inventory_management": "shopify",
        "properties": [

        ],
        "product_exists": true,
        "fulfillable_quantity": 1,
        "tax_lines": [

        ]
      }
    ],
    "shipping_lines": [
      {
        "code": "Free Shipping",
        "price": "0.00",
        "source": "shopify",
        "title": "Free Shipping",
        "tax_lines": [

        ]
      }
    ],
    "billing_address": {
      "address1": "Chestnut Street 92",
      "address2": "",
      "city": "Louisville",
      "company": null,
      "country": "United States",
      "first_name": "Bob",
      "last_name": "Norman",
      "latitude": 45.41634,
      "longitude": -75.6868,
      "phone": "555-625-1199",
      "province": "Kentucky",
      "zip": "40202",
      "name": "Bob Norman",
      "country_code": "US",
      "province_code": "KY"
    },
    "shipping_address": {
      "address1": "Chestnut Street 92",
      "address2": "",
      "city": "Louisville",
      "company": null,
      "country": "United States",
      "first_name": "Bob",
      "last_name": "Norman",
      "latitude": 45.41634,
      "longitude": -75.6868,
      "phone": "555-625-1199",
      "province": "Kentucky",
      "zip": "40202",
      "name": "Bob Norman",
      "country_code": "US",
      "province_code": "KY"
    },
    "fulfillments": [
      {
        "created_at": "2014-08-27T14:04:32-04:00",
        "id": 255858046,
        "order_id": 450789469,
        "service": "manual",
        "status": "failure",
        "tracking_company": null,
        "updated_at": "2014-08-27T14:04:32-04:00",
        "tracking_number": "1Z2345",
        "tracking_numbers": [
          "1Z2345"
        ],
        "tracking_url": "http://wwwapps.ups.com/etracking/tracking.cgi?InquiryNumber1=1Z2345&TypeOfInquiryNumber=T&AcceptUPSLicenseAgreement=yes&submit=Track",
        "tracking_urls": [
          "http://wwwapps.ups.com/etracking/tracking.cgi?InquiryNumber1=1Z2345&TypeOfInquiryNumber=T&AcceptUPSLicenseAgreement=yes&submit=Track"
        ],
        "receipt": {
          "testcase": true,
          "authorization": "123456"
        },
        "line_items": [
          {
            "fulfillment_service": "manual",
            "fulfillment_status": null,
            "gift_card": false,
            "grams": 200,
            "id": 466157049,
            "price": "199.00",
            "product_id": 632910392,
            "quantity": 1,
            "requires_shipping": true,
            "sku": "IPOD2008GREEN",
            "taxable": true,
            "title": "IPod Nano - 8gb",
            "variant_id": 39072856,
            "variant_title": "green",
            "vendor": null,
            "name": "IPod Nano - 8gb - green",
            "variant_inventory_management": "shopify",
            "properties": [
              {
                "name": "Custom Engraving",
                "value": "Happy Birthday"
              }
            ],
            "product_exists": true,
            "fulfillable_quantity": 1,
            "tax_lines": [

            ]
          }
        ]
      }
    ],
    "client_details": {
      "accept_language": null,
      "browser_height": null,
      "browser_ip": "0.0.0.0",
      "browser_width": null,
      "session_hash": null,
      "user_agent": null
    },
    "refunds": [
      {
        "created_at": "2014-08-27T14:04:32-04:00",
        "id": 509562969,
        "note": "it broke during shipping",
        "order_id": 450789469,
        "restock": true,
        "user_id": 799407056,
        "refund_line_items": [
          {
            "id": 104689539,
            "line_item_id": 703073504,
            "quantity": 1,
            "line_item": {
              "fulfillment_service": "manual",
              "fulfillment_status": null,
              "gift_card": false,
              "grams": 200,
              "id": 703073504,
              "price": "199.00",
              "product_id": 632910392,
              "quantity": 1,
              "requires_shipping": true,
              "sku": "IPOD2008BLACK",
              "taxable": true,
              "title": "IPod Nano - 8gb",
              "variant_id": 457924702,
              "variant_title": "black",
              "vendor": null,
              "name": "IPod Nano - 8gb - black",
              "variant_inventory_management": "shopify",
              "properties": [

              ],
              "product_exists": true,
              "fulfillable_quantity": 1,
              "tax_lines": [

              ]
            }
          },
          {
            "id": 709875399,
            "line_item_id": 466157049,
            "quantity": 1,
            "line_item": {
              "fulfillment_service": "manual",
              "fulfillment_status": null,
              "gift_card": false,
              "grams": 200,
              "id": 466157049,
              "price": "199.00",
              "product_id": 632910392,
              "quantity": 1,
              "requires_shipping": true,
              "sku": "IPOD2008GREEN",
              "taxable": true,
              "title": "IPod Nano - 8gb",
              "variant_id": 39072856,
              "variant_title": "green",
              "vendor": null,
              "name": "IPod Nano - 8gb - green",
              "variant_inventory_management": "shopify",
              "properties": [
                {
                  "name": "Custom Engraving",
                  "value": "Happy Birthday"
                }
              ],
              "product_exists": true,
              "fulfillable_quantity": 1,
              "tax_lines": [

              ]
            }
          }
        ],
        "transactions": [
          {
            "amount": "209.00",
            "authorization": "authorization-key",
            "created_at": "2005-08-05T12:59:12-04:00",
            "gateway": "bogus",
            "id": 179259969,
            "kind": "refund",
            "location_id": null,
            "message": null,
            "order_id": 450789469,
            "parent_id": null,
            "source_name": null,
            "status": "success",
            "test": false,
            "user_id": null,
            "device_id": null,
            "receipt": {}
          }
        ]
      }
    ],
    "payment_details": {
      "avs_result_code": null,
      "credit_card_bin": null,
      "cvv_result_code": null,
      "credit_card_number": "•••• •••• •••• 4242",
      "credit_card_company": "Visa"
    },
    "customer": {
      "accepts_marketing": false,
      "created_at": "2014-08-27T14:04:32-04:00",
      "email": "bob.norman@hostmail.com",
      "first_name": "Bob",
      "id": 207119551,
      "last_name": "Norman",
      "last_order_id": 450789469,
      "multipass_identifier": null,
      "note": null,
      "orders_count": 1,
      "state": "disabled",
      "total_spent": "200.94",
      "updated_at": "2014-08-27T14:04:42-04:00",
      "verified_email": true,
      "tags": "",
      "last_order_name": "#1001",
      "default_address": {
        "address1": "Chestnut Street 92",
        "address2": "",
        "city": "Louisville",
        "company": null,
        "country": "United States",
        "first_name": null,
        "id": 207119551,
        "last_name": null,
        "phone": "555-625-1199",
        "province": "Kentucky",
        "zip": "40202",
        "name": null,
        "province_code": "KY",
        "country_code": "US",
        "country_name": "United States",
        "default": true
      }
    }
  }
}

Remove customer from an order

PUT /admin/orders/#{id}.json
{
  "order": {
    "id": 450789469,
    "customer": null
  }
}
View Response
HTTP/1.1 200 OK

{
  "order": {
    "buyer_accepts_marketing": false,
    "cancel_reason": null,
    "cancelled_at": null,
    "cart_token": "68778783ad298f1c80c3bafcddeea02f",
    "checkout_token": null,
    "closed_at": null,
    "confirmed": true,
    "created_at": "2008-01-10T11:00:00-05:00",
    "currency": "USD",
    "email": "bob.norman@hostmail.com",
    "financial_status": "authorized",
    "fulfillment_status": null,
    "gateway": "authorize_net",
    "id": 450789469,
    "landing_site": "http://www.example.com?source=abc",
    "location_id": null,
    "name": "#1001",
    "note": null,
    "number": 1,
    "reference": "fhwdgads",
    "referring_site": "http://www.otherexample.com",
    "source_identifier": "fhwdgads",
    "source_name": "web",
    "source_url": null,
    "subtotal_price": "398.00",
    "taxes_included": false,
    "test": false,
    "token": "b1946ac92492d2347c6235b4d2611184",
    "total_discounts": "0.00",
    "total_line_items_price": "398.00",
    "total_price": "409.94",
    "total_price_usd": "409.94",
    "total_tax": "11.94",
    "total_weight": 0,
    "updated_at": "2014-08-27T14:04:43-04:00",
    "user_id": null,
    "browser_ip": null,
    "landing_site_ref": "abc",
    "order_number": 1001,
    "discount_codes": [
      {
        "code": "TENOFF",
        "amount": "10.00",
        "type": "percentage"
      }
    ],
    "note_attributes": [
      {
        "name": "custom engraving",
        "value": "Happy Birthday"
      },
      {
        "name": "colour",
        "value": "green"
      }
    ],
    "processing_method": "direct",
    "source": "browser",
    "checkout_id": 450789469,
    "tax_lines": [
      {
        "price": "11.94",
        "rate": 0.06,
        "title": "State Tax"
      }
    ],
    "tags": "",
    "line_items": [
      {
        "fulfillment_service": "manual",
        "fulfillment_status": null,
        "gift_card": false,
        "grams": 200,
        "id": 466157049,
        "price": "199.00",
        "product_id": 632910392,
        "quantity": 1,
        "requires_shipping": true,
        "sku": "IPOD2008GREEN",
        "taxable": true,
        "title": "IPod Nano - 8gb",
        "variant_id": 39072856,
        "variant_title": "green",
        "vendor": null,
        "name": "IPod Nano - 8gb - green",
        "variant_inventory_management": "shopify",
        "properties": [
          {
            "name": "Custom Engraving",
            "value": "Happy Birthday"
          }
        ],
        "product_exists": true,
        "fulfillable_quantity": 1,
        "tax_lines": [

        ]
      },
      {
        "fulfillment_service": "manual",
        "fulfillment_status": null,
        "gift_card": false,
        "grams": 200,
        "id": 518995019,
        "price": "199.00",
        "product_id": 632910392,
        "quantity": 1,
        "requires_shipping": true,
        "sku": "IPOD2008RED",
        "taxable": true,
        "title": "IPod Nano - 8gb",
        "variant_id": 49148385,
        "variant_title": "red",
        "vendor": null,
        "name": "IPod Nano - 8gb - red",
        "variant_inventory_management": "shopify",
        "properties": [

        ],
        "product_exists": true,
        "fulfillable_quantity": 1,
        "tax_lines": [

        ]
      },
      {
        "fulfillment_service": "manual",
        "fulfillment_status": null,
        "gift_card": false,
        "grams": 200,
        "id": 703073504,
        "price": "199.00",
        "product_id": 632910392,
        "quantity": 1,
        "requires_shipping": true,
        "sku": "IPOD2008BLACK",
        "taxable": true,
        "title": "IPod Nano - 8gb",
        "variant_id": 457924702,
        "variant_title": "black",
        "vendor": null,
        "name": "IPod Nano - 8gb - black",
        "variant_inventory_management": "shopify",
        "properties": [

        ],
        "product_exists": true,
        "fulfillable_quantity": 1,
        "tax_lines": [

        ]
      }
    ],
    "shipping_lines": [
      {
        "code": "Free Shipping",
        "price": "0.00",
        "source": "shopify",
        "title": "Free Shipping",
        "tax_lines": [

        ]
      }
    ],
    "billing_address": {
      "address1": "Chestnut Street 92",
      "address2": "",
      "city": "Louisville",
      "company": null,
      "country": "United States",
      "first_name": "Bob",
      "last_name": "Norman",
      "latitude": 45.41634,
      "longitude": -75.6868,
      "phone": "555-625-1199",
      "province": "Kentucky",
      "zip": "40202",
      "name": "Bob Norman",
      "country_code": "US",
      "province_code": "KY"
    },
    "shipping_address": {
      "address1": "Chestnut Street 92",
      "address2": "",
      "city": "Louisville",
      "company": null,
      "country": "United States",
      "first_name": "Bob",
      "last_name": "Norman",
      "latitude": 45.41634,
      "longitude": -75.6868,
      "phone": "555-625-1199",
      "province": "Kentucky",
      "zip": "40202",
      "name": "Bob Norman",
      "country_code": "US",
      "province_code": "KY"
    },
    "fulfillments": [
      {
        "created_at": "2014-08-27T14:04:32-04:00",
        "id": 255858046,
        "order_id": 450789469,
        "service": "manual",
        "status": "failure",
        "tracking_company": null,
        "updated_at": "2014-08-27T14:04:32-04:00",
        "tracking_number": "1Z2345",
        "tracking_numbers": [
          "1Z2345"
        ],
        "tracking_url": "http://wwwapps.ups.com/etracking/tracking.cgi?InquiryNumber1=1Z2345&TypeOfInquiryNumber=T&AcceptUPSLicenseAgreement=yes&submit=Track",
        "tracking_urls": [
          "http://wwwapps.ups.com/etracking/tracking.cgi?InquiryNumber1=1Z2345&TypeOfInquiryNumber=T&AcceptUPSLicenseAgreement=yes&submit=Track"
        ],
        "receipt": {
          "testcase": true,
          "authorization": "123456"
        },
        "line_items": [
          {
            "fulfillment_service": "manual",
            "fulfillment_status": null,
            "gift_card": false,
            "grams": 200,
            "id": 466157049,
            "price": "199.00",
            "product_id": 632910392,
            "quantity": 1,
            "requires_shipping": true,
            "sku": "IPOD2008GREEN",
            "taxable": true,
            "title": "IPod Nano - 8gb",
            "variant_id": 39072856,
            "variant_title": "green",
            "vendor": null,
            "name": "IPod Nano - 8gb - green",
            "variant_inventory_management": "shopify",
            "properties": [
              {
                "name": "Custom Engraving",
                "value": "Happy Birthday"
              }
            ],
            "product_exists": true,
            "fulfillable_quantity": 1,
            "tax_lines": [

            ]
          }
        ]
      }
    ],
    "client_details": {
      "accept_language": null,
      "browser_height": null,
      "browser_ip": "0.0.0.0",
      "browser_width": null,
      "session_hash": null,
      "user_agent": null
    },
    "refunds": [
      {
        "created_at": "2014-08-27T14:04:32-04:00",
        "id": 509562969,
        "note": "it broke during shipping",
        "order_id": 450789469,
        "restock": true,
        "user_id": 799407056,
        "refund_line_items": [
          {
            "id": 104689539,
            "line_item_id": 703073504,
            "quantity": 1,
            "line_item": {
              "fulfillment_service": "manual",
              "fulfillment_status": null,
              "gift_card": false,
              "grams": 200,
              "id": 703073504,
              "price": "199.00",
              "product_id": 632910392,
              "quantity": 1,
              "requires_shipping": true,
              "sku": "IPOD2008BLACK",
              "taxable": true,
              "title": "IPod Nano - 8gb",
              "variant_id": 457924702,
              "variant_title": "black",
              "vendor": null,
              "name": "IPod Nano - 8gb - black",
              "variant_inventory_management": "shopify",
              "properties": [

              ],
              "product_exists": true,
              "fulfillable_quantity": 1,
              "tax_lines": [

              ]
            }
          },
          {
            "id": 709875399,
            "line_item_id": 466157049,
            "quantity": 1,
            "line_item": {
              "fulfillment_service": "manual",
              "fulfillment_status": null,
              "gift_card": false,
              "grams": 200,
              "id": 466157049,
              "price": "199.00",
              "product_id": 632910392,
              "quantity": 1,
              "requires_shipping": true,
              "sku": "IPOD2008GREEN",
              "taxable": true,
              "title": "IPod Nano - 8gb",
              "variant_id": 39072856,
              "variant_title": "green",
              "vendor": null,
              "name": "IPod Nano - 8gb - green",
              "variant_inventory_management": "shopify",
              "properties": [
                {
                  "name": "Custom Engraving",
                  "value": "Happy Birthday"
                }
              ],
              "product_exists": true,
              "fulfillable_quantity": 1,
              "tax_lines": [

              ]
            }
          }
        ],
        "transactions": [
          {
            "amount": "209.00",
            "authorization": "authorization-key",
            "created_at": "2005-08-05T12:59:12-04:00",
            "gateway": "bogus",
            "id": 179259969,
            "kind": "refund",
            "location_id": null,
            "message": null,
            "order_id": 450789469,
            "parent_id": null,
            "source_name": null,
            "status": "success",
            "test": false,
            "user_id": null,
            "device_id": null,
            "receipt": {}
          }
        ]
      }
    ],
    "payment_details": {
      "avs_result_code": null,
      "credit_card_bin": null,
      "cvv_result_code": null,
      "credit_card_number": "•••• •••• •••• 4242",
      "credit_card_company": "Visa"
    }
  }
}
DELETE/admin/orders/450789469.json

Delete an order

Permanently delete an order

DELETE /admin/orders/#{id}.json
View Response
HTTP/1.1 200 OK

{}

Ready to put what you've learned into action?

Build an online store with Shopify. Try it free.

Experience the future of retail now.

Shopify Point of Sale. Try it free.