Overview

E-commerce REST API

Version information

Version : 1.0.0

Contact information

Contact : PandaCommerce API Team
Contact Email : support@pandacommerce.net

License information

License : APACHE2.0
License URL : https://www.apache.org/licenses/LICENSE-2.0.html

URI scheme

Host : <mystore>.pandacommerce.net
BasePath : /admin/api
Schemes : HTTPS

Consumes

  • application/json

Produces

  • application/json

Resources

Assets

GET /themes/{id}/assets.json

Description

Returns all assets

Parameters
Type Name Description Schema

Path

id
required

ID of theme to fetch assets for

integer

Responses
HTTP Code Description Schema

200

asset response

< Asset > array

default

unexpected error

ErrorModel

Produces
  • application/json

Security
Type Name Scopes

oauth2

oauth2

write_themes,read_themes

basic

basic_auth

Example HTTP request
Request path
"/themes/0/assets.json"
Example HTTP response
Response 200
"array"
Response default
{
  "errors" : "object"
}

GET /themes/{id}/assets.json?key=

Description

Return a single asset by key

Parameters
Type Name Description Schema

Path

id
required

ID of theme to fetch assets for

integer

Query

key
required

Key of file to fetch

integer

Responses
HTTP Code Description Schema

200

get asset response

AssetWithData

default

unexpected error

ErrorModel

Produces
  • application/json

Security
Type Name Scopes

oauth2

oauth2

write_themes,read_themes

basic

basic_auth

Example HTTP request
Request path
"/themes/0/assets.json?key="
Request query
{
  "key" : 0
}
Example HTTP response
Response 200
{
  "key" : "assets/cardboard-box.png",
  "filename" : "cardboard-box.png",
  "content_type" : "image/png",
  "size" : 260911,
  "url" : "//cdn.pandacommerce.net/templates/253/272/template/589/assets/cardboard-box.png",
  "data" : "some file contents"
}
Response default
{
  "errors" : "object"
}

PUT /themes/{id}/assets.json?key=

Description

Edit a single asset by key

Parameters
Type Name Description Schema

Path

id
required

ID of theme to fetch assets for

integer

Query

key
required

Key of file to edit

integer

Responses
HTTP Code Description Schema

200

asset update response

AssetWithData

default

unexpected error

ErrorModel

Produces
  • application/json

Security
Type Name Scopes

oauth2

oauth2

write_themes

basic

basic_auth

Example HTTP request
Request path
"/themes/0/assets.json?key="
Request query
{
  "key" : 0
}
Example HTTP response
Response 200
{
  "key" : "assets/cardboard-box.png",
  "filename" : "cardboard-box.png",
  "content_type" : "image/png",
  "size" : 260911,
  "url" : "//cdn.pandacommerce.net/templates/253/272/template/589/assets/cardboard-box.png",
  "data" : "some file contents"
}
Response default
{
  "errors" : "object"
}

Carriers

POST /carrier_services.json

Description

Creates a new carrier service in the store. Handle must be unique or left blank

Parameters
Type Name Description Schema

Body

carrier_service
required

Carrier Service to add to the store

CarrierService

Responses
HTTP Code Description Schema

200

carrier service response

CarrierService

default

unexpected error

ErrorModel

Produces
  • application/json

Security
Type Name Scopes

oauth2

oauth2

write_shipping

basic

basic_auth

Example HTTP request
Request path
"/carrier_services.json"
Request body
{
  "id" : 123,
  "name" : "My Carrier service",
  "handle" : "my-carrier-service",
  "provider_id" : 3,
  "callback_url" : "https://www.my-app.com/fulfillment_service.php",
  "credential1" : "user@domain.com",
  "created_at" : "2016-05-01 22:00:01"
}
Example HTTP response
Response 200
{
  "id" : 123,
  "name" : "My Carrier service",
  "handle" : "my-carrier-service",
  "provider_id" : 3,
  "callback_url" : "https://www.my-app.com/fulfillment_service.php",
  "credential1" : "user@domain.com",
  "created_at" : "2016-05-01 22:00:01"
}
Response default
{
  "errors" : "object"
}

GET /carrier_services.json

Description

Returns all carrier services from the system that the user has access to

Parameters
Type Name Description Schema

Query

fields
optional

fields to return

< string > array

Query

limit
optional

maximum number of results to return (default 50)

integer

Query

offset
optional

result offset (default 0)

integer

Query

sorting
optional

sorting (title-asc,desc or published_at-asc,desc)

string

Responses
HTTP Code Description Schema

200

carrier services response

< CarrierService > array

default

unexpected error

ErrorModel

Produces
  • application/json

Security
Type Name Scopes

oauth2

oauth2

write_shipping,read_shipping

Example HTTP request
Request path
"/carrier_services.json"
Request query
{
  "fields" : "string",
  "limit" : 0,
  "offset" : 0,
  "sorting" : "string"
}
Example HTTP response
Response 200
"array"
Response default
{
  "errors" : "object"
}

GET /carrier_services/{id}.json

Description

Returns a carrier service based on a single ID

Parameters
Type Name Description Schema

Path

id
required

ID of carrier service to fetch

integer

Responses
HTTP Code Description Schema

200

Carrier service response

CarrierService

default

unexpected error

ErrorModel

Produces
  • application/json

Security
Type Name Scopes

oauth2

oauth2

write_shipping,read_shipping

basic

basic_auth

Example HTTP request
Request path
"/carrier_services/0.json"
Example HTTP response
Response 200
{
  "id" : 123,
  "name" : "My Carrier service",
  "handle" : "my-carrier-service",
  "provider_id" : 3,
  "callback_url" : "https://www.my-app.com/fulfillment_service.php",
  "credential1" : "user@domain.com",
  "created_at" : "2016-05-01 22:00:01"
}
Response default
{
  "errors" : "object"
}

PUT /carrier_services/{id}.json

Description

Edits a carrier service based on a single ID

Parameters
Type Name Description Schema

Path

id
required

ID of carrier service to fetch

integer

Body

carrier_service
required

Carrier Service to add to the store

CarrierService

Responses
HTTP Code Description Schema

200

carrier service response

CarrierService

default

unexpected error

ErrorModel

Produces
  • application/json

Security
Type Name Scopes

oauth2

oauth2

write_shipping

basic

basic_auth

Example HTTP request
Request path
"/carrier_services/0.json"
Request body
{
  "id" : 123,
  "name" : "My Carrier service",
  "handle" : "my-carrier-service",
  "provider_id" : 3,
  "callback_url" : "https://www.my-app.com/fulfillment_service.php",
  "credential1" : "user@domain.com",
  "created_at" : "2016-05-01 22:00:01"
}
Example HTTP response
Response 200
{
  "id" : 123,
  "name" : "My Carrier service",
  "handle" : "my-carrier-service",
  "provider_id" : 3,
  "callback_url" : "https://www.my-app.com/fulfillment_service.php",
  "credential1" : "user@domain.com",
  "created_at" : "2016-05-01 22:00:01"
}
Response default
{
  "errors" : "object"
}

DELETE /carrier_services/{id}.json

Description

deletes a single carrier service based on the ID supplied

Parameters
Type Name Description Schema

Path

id
required

ID of carrier service to delete

integer

Responses
HTTP Code Description Schema

200

[]

No Content

default

unexpected error

ErrorModel

Security
Type Name Scopes

oauth2

oauth2

write_shipping

basic

basic_auth

Example HTTP request
Request path
"/carrier_services/0.json"
Example HTTP response
Response default
{
  "errors" : "object"
}

Customers

POST /customers.json

Description

Creates a new customer in the store

Parameters
Type Name Description Schema

Body

customer
required

Customer to add to the store

Customer

Responses
HTTP Code Description Schema

200

customer response

Customer

default

unexpected error

ErrorModel

Produces
  • application/json

Security
Type Name Scopes

oauth2

oauth2

write_customers

basic

basic_auth

Example HTTP request
Request path
"/customers.json"
Request body
{
  "id" : 9348,
  "shop_id" : 23424,
  "shop_name" : "My T-shirt store",
  "email" : "customer@domain.com",
  "metafields" : "object",
  "status" : "enabled",
  "name" : "Richard Benson",
  "first_name" : "Richard",
  "last_name" : "Benson",
  "company" : "Acme Ltd",
  "note" : "Notes about customer",
  "tags" : [ "string" ],
  "accepts_marketing" : true,
  "total_spent" : 129.0,
  "addresses_count" : 1,
  "orders_count" : 1,
  "orders" : [ {
    "id" : 34543,
    "name" : "#100033",
    "metafields" : "object",
    "order_number" : 33,
    "hash" : "b65673d761d01a8366d5a1a01e483e7b",
    "email" : "customer@domain.com",
    "created_at" : "2016-05-01 22:00:01",
    "updated_at" : "2016-05-01 22:00:01",
    "payment" : {
      "id" : 123,
      "kind" : "capture",
      "created_at" : "2016-05-01 22:00:01",
      "success" : true,
      "ip" : "127.0.0.1",
      "card_type" : "Visa",
      "card_number" : "XXXX XXXX XXXX 2134",
      "message" : "Capture Successful",
      "amount" : 129.0,
      "test" : false,
      "currency" : "SEK",
      "receipt" : "KK34742D",
      "gateway_title" : "Stripe",
      "gateway_id" : 345
    },
    "payment_price" : 0.0,
    "payment_price_excluding_tax" : 0.0,
    "payment_tax_lines" : {
      "test" : "123123123123"
    },
    "tax_lines" : {
      "test" : "123123123123"
    },
    "tax_price" : 25.8,
    "shop_id" : 23424,
    "shop_name" : "My T-shirt store",
    "subtotal_price" : 129.0,
    "total_weight" : 500,
    "total_price" : 129.0,
    "gateway" : "Stripe",
    "financial_status" : "paid",
    "fulfillment_status" : "unfulfilled",
    "requires_shipping" : true,
    "shipping_price" : 0.0,
    "shipping_price_excluding_tax" : 0.0,
    "shipping_tax_lines" : {
      "test" : "123123123123"
    },
    "shipping_methods" : [ "object" ],
    "shipping_address" : {
      "id" : 543,
      "name" : "Richard Benson",
      "first_name" : "Benson",
      "last_name" : "Benson",
      "street" : "Street 1 apt5",
      "address1" : "Street 1",
      "address2" : "apt5",
      "company" : "Acme Ltd",
      "city" : "Stockholm",
      "phone" : "+467348583493",
      "zip" : "12345",
      "province" : "",
      "country" : "SE",
      "province_code" : "",
      "country_code" : "SE"
    },
    "billing_address" : {
      "id" : 543,
      "name" : "Richard Benson",
      "first_name" : "Benson",
      "last_name" : "Benson",
      "street" : "Street 1 apt5",
      "address1" : "Street 1",
      "address2" : "apt5",
      "company" : "Acme Ltd",
      "city" : "Stockholm",
      "phone" : "+467348583493",
      "zip" : "12345",
      "province" : "",
      "country" : "SE",
      "province_code" : "",
      "country_code" : "SE"
    },
    "line_items" : [ {
      "id" : 123,
      "variant_id" : 34534,
      "product_id" : 24221,
      "quantity" : 1,
      "available_quantity" : 20,
      "product_title" : "T-shirt with flames",
      "variant_title" : "XL / Red / Striped",
      "fulfillable_quantity" : 1,
      "fulfilled_quantity" : 0,
      "refunded_quantity" : 0,
      "featured_image" : {
        "id" : 981,
        "src" : "//cdn.pandacommerce.net/templates/1/1/template/983/assets/add_prod.png?7028",
        "alt" : "My image"
      },
      "fulfillment_service" : "my-own-fulfillment-service",
      "weight" : 500,
      "line_weight" : 500,
      "price" : 129.0,
      "price_excluding_tax" : 129.0,
      "line_price" : 129.0,
      "line_price_excluding_tax" : 129.0,
      "sku" : "XK3334L",
      "inventory_location" : "D6",
      "taxable" : true,
      "requires_shipping" : true,
      "tax_lines" : {
        "test" : "123123123123"
      },
      "title" : "T-shirt with flames - XL / Red / Striped",
      "properties" : "object"
    } ],
    "line_items_price" : 129.0,
    "line_items_price_excluding_tax" : 0.0,
    "line_items_tax_lines" : {
      "test" : "123123123123"
    },
    "transactions" : [ {
      "id" : 123,
      "kind" : "capture",
      "created_at" : "2016-05-01 22:00:01",
      "success" : true,
      "ip" : "127.0.0.1",
      "card_type" : "Visa",
      "card_number" : "XXXX XXXX XXXX 2134",
      "message" : "Capture Successful",
      "amount" : 129.0,
      "test" : false,
      "currency" : "SEK",
      "receipt" : "KK34742D",
      "gateway_title" : "Stripe",
      "gateway_id" : 345
    } ],
    "refunds" : [ {
      "id" : 123,
      "kind" : "capture",
      "created_at" : "2016-05-01 22:00:01",
      "success" : true,
      "ip" : "127.0.0.1",
      "card_type" : "Visa",
      "card_number" : "XXXX XXXX XXXX 2134",
      "message" : "Capture Successful",
      "amount" : 129.0,
      "test" : false,
      "currency" : "SEK",
      "receipt" : "KK34742D",
      "gateway_title" : "Stripe",
      "gateway_id" : 345
    } ],
    "fulfillments" : [ {
      "id" : 123,
      "order_id" : 4364,
      "created_at" : "2016-05-01 22:00:01",
      "status" : "success",
      "fulfillment_service" : {
        "id" : 123,
        "name" : "My own fulfillment service",
        "handle" : "my-own-fulfillment-service",
        "inventory_management" : true,
        "tracking_support" : true,
        "requires_shipping_method" : true,
        "return_handling" : true,
        "include_pending_stock" : true,
        "credential1" : "user@domain.com",
        "callback_url" : "https://www.my-app.com/fulfillment_service.php",
        "provider_id" : 3,
        "email" : "user@domain.com",
        "created_at" : "2016-05-01 22:00:01"
      },
      "fulfillment_service_receipt" : "GS3242",
      "line_items" : [ {
        "id" : 123,
        "variant_id" : 34534,
        "product_id" : 24221,
        "quantity" : 1,
        "available_quantity" : 20,
        "product_title" : "T-shirt with flames",
        "variant_title" : "XL / Red / Striped",
        "fulfillable_quantity" : 1,
        "fulfilled_quantity" : 0,
        "refunded_quantity" : 0,
        "featured_image" : {
          "id" : 981,
          "src" : "//cdn.pandacommerce.net/templates/1/1/template/983/assets/add_prod.png?7028",
          "alt" : "My image"
        },
        "fulfillment_service" : "my-own-fulfillment-service",
        "weight" : 500,
        "line_weight" : 500,
        "price" : 129.0,
        "price_excluding_tax" : 129.0,
        "line_price" : 129.0,
        "line_price_excluding_tax" : 129.0,
        "sku" : "XK3334L",
        "inventory_location" : "D6",
        "taxable" : true,
        "requires_shipping" : true,
        "tax_lines" : {
          "test" : "123123123123"
        },
        "title" : "T-shirt with flames - XL / Red / Striped",
        "properties" : "object"
      } ],
      "tracking_number" : "SE349329492P",
      "tracking_company" : "Standard Post",
      "tracking_company_id" : 232,
      "tracking_url" : "http://www.postcompany.com/?trackid=SE349329492P"
    } ],
    "note" : "Notes about order",
    "attributes" : "object",
    "referring_site" : "http://www.google.com",
    "landing_site" : "http://store.pandacommerce.net/?ref=myblog",
    "landing_site_ref" : "myblog",
    "cancelled" : false,
    "cancelled_at" : "2016-05-01 22:00:01",
    "cancel_reason" : "other",
    "refunded_amount" : 0.0,
    "discount_code" : "DISCOUNT20",
    "tags" : [ "string" ],
    "currency" : "SEK",
    "customer" : {
      "id" : 9348,
      "shop_id" : 23424,
      "shop_name" : "My T-shirt store",
      "email" : "customer@domain.com",
      "metafields" : "object",
      "status" : "enabled",
      "name" : "Richard Benson",
      "first_name" : "Richard",
      "last_name" : "Benson",
      "company" : "Acme Ltd",
      "note" : "Notes about customer",
      "tags" : [ "string" ],
      "accepts_marketing" : true,
      "total_spent" : 129.0,
      "addresses_count" : 1,
      "orders_count" : 1,
      "orders" : [ {
        "id" : 34543,
        "name" : "#100033",
        "metafields" : "object",
        "order_number" : 33,
        "hash" : "b65673d761d01a8366d5a1a01e483e7b",
        "email" : "customer@domain.com",
        "created_at" : "2016-05-01 22:00:01",
        "updated_at" : "2016-05-01 22:00:01",
        "payment" : {
          "id" : 123,
          "kind" : "capture",
          "created_at" : "2016-05-01 22:00:01",
          "success" : true,
          "ip" : "127.0.0.1",
          "card_type" : "Visa",
          "card_number" : "XXXX XXXX XXXX 2134",
          "message" : "Capture Successful",
          "amount" : 129.0,
          "test" : false,
          "currency" : "SEK",
          "receipt" : "KK34742D",
          "gateway_title" : "Stripe",
          "gateway_id" : 345
        },
        "payment_price" : 0.0,
        "payment_price_excluding_tax" : 0.0,
        "payment_tax_lines" : {
          "test" : "123123123123"
        },
        "tax_lines" : {
          "test" : "123123123123"
        },
        "tax_price" : 25.8,
        "shop_id" : 23424,
        "shop_name" : "My T-shirt store",
        "subtotal_price" : 129.0,
        "total_weight" : 500,
        "total_price" : 129.0,
        "gateway" : "Stripe",
        "financial_status" : "paid",
        "fulfillment_status" : "unfulfilled",
        "requires_shipping" : true,
        "shipping_price" : 0.0,
        "shipping_price_excluding_tax" : 0.0,
        "shipping_tax_lines" : {
          "test" : "123123123123"
        },
        "shipping_methods" : [ "object" ],
        "shipping_address" : {
          "id" : 543,
          "name" : "Richard Benson",
          "first_name" : "Benson",
          "last_name" : "Benson",
          "street" : "Street 1 apt5",
          "address1" : "Street 1",
          "address2" : "apt5",
          "company" : "Acme Ltd",
          "city" : "Stockholm",
          "phone" : "+467348583493",
          "zip" : "12345",
          "province" : "",
          "country" : "SE",
          "province_code" : "",
          "country_code" : "SE"
        },
        "billing_address" : {
          "id" : 543,
          "name" : "Richard Benson",
          "first_name" : "Benson",
          "last_name" : "Benson",
          "street" : "Street 1 apt5",
          "address1" : "Street 1",
          "address2" : "apt5",
          "company" : "Acme Ltd",
          "city" : "Stockholm",
          "phone" : "+467348583493",
          "zip" : "12345",
          "province" : "",
          "country" : "SE",
          "province_code" : "",
          "country_code" : "SE"
        },
        "line_items" : [ {
          "id" : 123,
          "variant_id" : 34534,
          "product_id" : 24221,
          "quantity" : 1,
          "available_quantity" : 20,
          "product_title" : "T-shirt with flames",
          "variant_title" : "XL / Red / Striped",
          "fulfillable_quantity" : 1,
          "fulfilled_quantity" : 0,
          "refunded_quantity" : 0,
          "featured_image" : {
            "id" : 981,
            "src" : "//cdn.pandacommerce.net/templates/1/1/template/983/assets/add_prod.png?7028",
            "alt" : "My image"
          },
          "fulfillment_service" : "my-own-fulfillment-service",
          "weight" : 500,
          "line_weight" : 500,
          "price" : 129.0,
          "price_excluding_tax" : 129.0,
          "line_price" : 129.0,
          "line_price_excluding_tax" : 129.0,
          "sku" : "XK3334L",
          "inventory_location" : "D6",
          "taxable" : true,
          "requires_shipping" : true,
          "tax_lines" : {
            "test" : "123123123123"
          },
          "title" : "T-shirt with flames - XL / Red / Striped",
          "properties" : "object"
        } ],
        "line_items_price" : 129.0,
        "line_items_price_excluding_tax" : 0.0,
        "line_items_tax_lines" : {
          "test" : "123123123123"
        },
        "transactions" : [ {
          "id" : 123,
          "kind" : "capture",
          "created_at" : "2016-05-01 22:00:01",
          "success" : true,
          "ip" : "127.0.0.1",
          "card_type" : "Visa",
          "card_number" : "XXXX XXXX XXXX 2134",
          "message" : "Capture Successful",
          "amount" : 129.0,
          "test" : false,
          "currency" : "SEK",
          "receipt" : "KK34742D",
          "gateway_title" : "Stripe",
          "gateway_id" : 345
        } ],
        "refunds" : [ {
          "id" : 123,
          "kind" : "capture",
          "created_at" : "2016-05-01 22:00:01",
          "success" : true,
          "ip" : "127.0.0.1",
          "card_type" : "Visa",
          "card_number" : "XXXX XXXX XXXX 2134",
          "message" : "Capture Successful",
          "amount" : 129.0,
          "test" : false,
          "currency" : "SEK",
          "receipt" : "KK34742D",
          "gateway_title" : "Stripe",
          "gateway_id" : 345
        } ],
        "fulfillments" : [ {
          "id" : 123,
          "order_id" : 4364,
          "created_at" : "2016-05-01 22:00:01",
          "status" : "success",
          "fulfillment_service" : {
            "id" : 123,
            "name" : "My own fulfillment service",
            "handle" : "my-own-fulfillment-service",
            "inventory_management" : true,
            "tracking_support" : true,
            "requires_shipping_method" : true,
            "return_handling" : true,
            "include_pending_stock" : true,
            "credential1" : "user@domain.com",
            "callback_url" : "https://www.my-app.com/fulfillment_service.php",
            "provider_id" : 3,
            "email" : "user@domain.com",
            "created_at" : "2016-05-01 22:00:01"
          },
          "fulfillment_service_receipt" : "GS3242",
          "line_items" : [ {
            "id" : 123,
            "variant_id" : 34534,
            "product_id" : 24221,
            "quantity" : 1,
            "available_quantity" : 20,
            "product_title" : "T-shirt with flames",
            "variant_title" : "XL / Red / Striped",
            "fulfillable_quantity" : 1,
            "fulfilled_quantity" : 0,
            "refunded_quantity" : 0,
            "featured_image" : {
              "id" : 981,
              "src" : "//cdn.pandacommerce.net/templates/1/1/template/983/assets/add_prod.png?7028",
              "alt" : "My image"
            },
            "fulfillment_service" : "my-own-fulfillment-service",
            "weight" : 500,
            "line_weight" : 500,
            "price" : 129.0,
            "price_excluding_tax" : 129.0,
            "line_price" : 129.0,
            "line_price_excluding_tax" : 129.0,
            "sku" : "XK3334L",
            "inventory_location" : "D6",
            "taxable" : true,
            "requires_shipping" : true,
            "tax_lines" : {
              "test" : "123123123123"
            },
            "title" : "T-shirt with flames - XL / Red / Striped",
            "properties" : "object"
          } ],
          "tracking_number" : "SE349329492P",
          "tracking_company" : "Standard Post",
          "tracking_company_id" : 232,
          "tracking_url" : "http://www.postcompany.com/?trackid=SE349329492P"
        } ],
        "note" : "Notes about order",
        "attributes" : "object",
        "referring_site" : "http://www.google.com",
        "landing_site" : "http://store.pandacommerce.net/?ref=myblog",
        "landing_site_ref" : "myblog",
        "cancelled" : false,
        "cancelled_at" : "2016-05-01 22:00:01",
        "cancel_reason" : "other",
        "refunded_amount" : 0.0,
        "discount_code" : "DISCOUNT20",
        "tags" : [ "string" ],
        "currency" : "SEK",
        "customer" : "...",
        "url" : "https://checkout.pandacommerce.net/order/b65673d761d01a8366d5a1a01e483e7b",
        "checkout_url" : "https://checkout.pandacommerce.net/complete/b65673d761d01a8366d5a1a01e483e7b",
        "customer_url" : "https://store.pandacommerce.net/account/order/34543",
        "open" : true
      } ],
      "last_order" : {
        "id" : 34543,
        "name" : "#100033",
        "metafields" : "object",
        "order_number" : 33,
        "hash" : "b65673d761d01a8366d5a1a01e483e7b",
        "email" : "customer@domain.com",
        "created_at" : "2016-05-01 22:00:01",
        "updated_at" : "2016-05-01 22:00:01",
        "payment" : {
          "id" : 123,
          "kind" : "capture",
          "created_at" : "2016-05-01 22:00:01",
          "success" : true,
          "ip" : "127.0.0.1",
          "card_type" : "Visa",
          "card_number" : "XXXX XXXX XXXX 2134",
          "message" : "Capture Successful",
          "amount" : 129.0,
          "test" : false,
          "currency" : "SEK",
          "receipt" : "KK34742D",
          "gateway_title" : "Stripe",
          "gateway_id" : 345
        },
        "payment_price" : 0.0,
        "payment_price_excluding_tax" : 0.0,
        "payment_tax_lines" : {
          "test" : "123123123123"
        },
        "tax_lines" : {
          "test" : "123123123123"
        },
        "tax_price" : 25.8,
        "shop_id" : 23424,
        "shop_name" : "My T-shirt store",
        "subtotal_price" : 129.0,
        "total_weight" : 500,
        "total_price" : 129.0,
        "gateway" : "Stripe",
        "financial_status" : "paid",
        "fulfillment_status" : "unfulfilled",
        "requires_shipping" : true,
        "shipping_price" : 0.0,
        "shipping_price_excluding_tax" : 0.0,
        "shipping_tax_lines" : {
          "test" : "123123123123"
        },
        "shipping_methods" : [ "object" ],
        "shipping_address" : {
          "id" : 543,
          "name" : "Richard Benson",
          "first_name" : "Benson",
          "last_name" : "Benson",
          "street" : "Street 1 apt5",
          "address1" : "Street 1",
          "address2" : "apt5",
          "company" : "Acme Ltd",
          "city" : "Stockholm",
          "phone" : "+467348583493",
          "zip" : "12345",
          "province" : "",
          "country" : "SE",
          "province_code" : "",
          "country_code" : "SE"
        },
        "billing_address" : {
          "id" : 543,
          "name" : "Richard Benson",
          "first_name" : "Benson",
          "last_name" : "Benson",
          "street" : "Street 1 apt5",
          "address1" : "Street 1",
          "address2" : "apt5",
          "company" : "Acme Ltd",
          "city" : "Stockholm",
          "phone" : "+467348583493",
          "zip" : "12345",
          "province" : "",
          "country" : "SE",
          "province_code" : "",
          "country_code" : "SE"
        },
        "line_items" : [ {
          "id" : 123,
          "variant_id" : 34534,
          "product_id" : 24221,
          "quantity" : 1,
          "available_quantity" : 20,
          "product_title" : "T-shirt with flames",
          "variant_title" : "XL / Red / Striped",
          "fulfillable_quantity" : 1,
          "fulfilled_quantity" : 0,
          "refunded_quantity" : 0,
          "featured_image" : {
            "id" : 981,
            "src" : "//cdn.pandacommerce.net/templates/1/1/template/983/assets/add_prod.png?7028",
            "alt" : "My image"
          },
          "fulfillment_service" : "my-own-fulfillment-service",
          "weight" : 500,
          "line_weight" : 500,
          "price" : 129.0,
          "price_excluding_tax" : 129.0,
          "line_price" : 129.0,
          "line_price_excluding_tax" : 129.0,
          "sku" : "XK3334L",
          "inventory_location" : "D6",
          "taxable" : true,
          "requires_shipping" : true,
          "tax_lines" : {
            "test" : "123123123123"
          },
          "title" : "T-shirt with flames - XL / Red / Striped",
          "properties" : "object"
        } ],
        "line_items_price" : 129.0,
        "line_items_price_excluding_tax" : 0.0,
        "line_items_tax_lines" : {
          "test" : "123123123123"
        },
        "transactions" : [ {
          "id" : 123,
          "kind" : "capture",
          "created_at" : "2016-05-01 22:00:01",
          "success" : true,
          "ip" : "127.0.0.1",
          "card_type" : "Visa",
          "card_number" : "XXXX XXXX XXXX 2134",
          "message" : "Capture Successful",
          "amount" : 129.0,
          "test" : false,
          "currency" : "SEK",
          "receipt" : "KK34742D",
          "gateway_title" : "Stripe",
          "gateway_id" : 345
        } ],
        "refunds" : [ {
          "id" : 123,
          "kind" : "capture",
          "created_at" : "2016-05-01 22:00:01",
          "success" : true,
          "ip" : "127.0.0.1",
          "card_type" : "Visa",
          "card_number" : "XXXX XXXX XXXX 2134",
          "message" : "Capture Successful",
          "amount" : 129.0,
          "test" : false,
          "currency" : "SEK",
          "receipt" : "KK34742D",
          "gateway_title" : "Stripe",
          "gateway_id" : 345
        } ],
        "fulfillments" : [ {
          "id" : 123,
          "order_id" : 4364,
          "created_at" : "2016-05-01 22:00:01",
          "status" : "success",
          "fulfillment_service" : {
            "id" : 123,
            "name" : "My own fulfillment service",
            "handle" : "my-own-fulfillment-service",
            "inventory_management" : true,
            "tracking_support" : true,
            "requires_shipping_method" : true,
            "return_handling" : true,
            "include_pending_stock" : true,
            "credential1" : "user@domain.com",
            "callback_url" : "https://www.my-app.com/fulfillment_service.php",
            "provider_id" : 3,
            "email" : "user@domain.com",
            "created_at" : "2016-05-01 22:00:01"
          },
          "fulfillment_service_receipt" : "GS3242",
          "line_items" : [ {
            "id" : 123,
            "variant_id" : 34534,
            "product_id" : 24221,
            "quantity" : 1,
            "available_quantity" : 20,
            "product_title" : "T-shirt with flames",
            "variant_title" : "XL / Red / Striped",
            "fulfillable_quantity" : 1,
            "fulfilled_quantity" : 0,
            "refunded_quantity" : 0,
            "featured_image" : {
              "id" : 981,
              "src" : "//cdn.pandacommerce.net/templates/1/1/template/983/assets/add_prod.png?7028",
              "alt" : "My image"
            },
            "fulfillment_service" : "my-own-fulfillment-service",
            "weight" : 500,
            "line_weight" : 500,
            "price" : 129.0,
            "price_excluding_tax" : 129.0,
            "line_price" : 129.0,
            "line_price_excluding_tax" : 129.0,
            "sku" : "XK3334L",
            "inventory_location" : "D6",
            "taxable" : true,
            "requires_shipping" : true,
            "tax_lines" : {
              "test" : "123123123123"
            },
            "title" : "T-shirt with flames - XL / Red / Striped",
            "properties" : "object"
          } ],
          "tracking_number" : "SE349329492P",
          "tracking_company" : "Standard Post",
          "tracking_company_id" : 232,
          "tracking_url" : "http://www.postcompany.com/?trackid=SE349329492P"
        } ],
        "note" : "Notes about order",
        "attributes" : "object",
        "referring_site" : "http://www.google.com",
        "landing_site" : "http://store.pandacommerce.net/?ref=myblog",
        "landing_site_ref" : "myblog",
        "cancelled" : false,
        "cancelled_at" : "2016-05-01 22:00:01",
        "cancel_reason" : "other",
        "refunded_amount" : 0.0,
        "discount_code" : "DISCOUNT20",
        "tags" : [ "string" ],
        "currency" : "SEK",
        "customer" : "...",
        "url" : "https://checkout.pandacommerce.net/order/b65673d761d01a8366d5a1a01e483e7b",
        "checkout_url" : "https://checkout.pandacommerce.net/complete/b65673d761d01a8366d5a1a01e483e7b",
        "customer_url" : "https://store.pandacommerce.net/account/order/34543",
        "open" : true
      },
      "addresses" : [ {
        "id" : 543,
        "name" : "Richard Benson",
        "first_name" : "Benson",
        "last_name" : "Benson",
        "street" : "Street 1 apt5",
        "address1" : "Street 1",
        "address2" : "apt5",
        "company" : "Acme Ltd",
        "city" : "Stockholm",
        "phone" : "+467348583493",
        "zip" : "12345",
        "province" : "",
        "country" : "SE",
        "province_code" : "",
        "country_code" : "SE"
      } ],
      "default_address" : {
        "id" : 543,
        "name" : "Richard Benson",
        "first_name" : "Benson",
        "last_name" : "Benson",
        "street" : "Street 1 apt5",
        "address1" : "Street 1",
        "address2" : "apt5",
        "company" : "Acme Ltd",
        "city" : "Stockholm",
        "phone" : "+467348583493",
        "zip" : "12345",
        "province" : "",
        "country" : "SE",
        "province_code" : "",
        "country_code" : "SE"
      },
      "addresses_option_tags" : "<option.....>Richard Benson, SE</option>",
      "reset_password_url" : "https://store.pandacommerce.net/account/reset/2938809835f3135a3ea8ba30b104154b",
      "account_activation_url" : "https://store.pandacommerce.net/account/activate/2938809835f3135a3ea8ba30b104154b"
    },
    "url" : "https://checkout.pandacommerce.net/order/b65673d761d01a8366d5a1a01e483e7b",
    "checkout_url" : "https://checkout.pandacommerce.net/complete/b65673d761d01a8366d5a1a01e483e7b",
    "customer_url" : "https://store.pandacommerce.net/account/order/34543",
    "open" : true
  } ],
  "last_order" : {
    "id" : 34543,
    "name" : "#100033",
    "metafields" : "object",
    "order_number" : 33,
    "hash" : "b65673d761d01a8366d5a1a01e483e7b",
    "email" : "customer@domain.com",
    "created_at" : "2016-05-01 22:00:01",
    "updated_at" : "2016-05-01 22:00:01",
    "payment" : {
      "id" : 123,
      "kind" : "capture",
      "created_at" : "2016-05-01 22:00:01",
      "success" : true,
      "ip" : "127.0.0.1",
      "card_type" : "Visa",
      "card_number" : "XXXX XXXX XXXX 2134",
      "message" : "Capture Successful",
      "amount" : 129.0,
      "test" : false,
      "currency" : "SEK",
      "receipt" : "KK34742D",
      "gateway_title" : "Stripe",
      "gateway_id" : 345
    },
    "payment_price" : 0.0,
    "payment_price_excluding_tax" : 0.0,
    "payment_tax_lines" : {
      "test" : "123123123123"
    },
    "tax_lines" : {
      "test" : "123123123123"
    },
    "tax_price" : 25.8,
    "shop_id" : 23424,
    "shop_name" : "My T-shirt store",
    "subtotal_price" : 129.0,
    "total_weight" : 500,
    "total_price" : 129.0,
    "gateway" : "Stripe",
    "financial_status" : "paid",
    "fulfillment_status" : "unfulfilled",
    "requires_shipping" : true,
    "shipping_price" : 0.0,
    "shipping_price_excluding_tax" : 0.0,
    "shipping_tax_lines" : {
      "test" : "123123123123"
    },
    "shipping_methods" : [ "object" ],
    "shipping_address" : {
      "id" : 543,
      "name" : "Richard Benson",
      "first_name" : "Benson",
      "last_name" : "Benson",
      "street" : "Street 1 apt5",
      "address1" : "Street 1",
      "address2" : "apt5",
      "company" : "Acme Ltd",
      "city" : "Stockholm",
      "phone" : "+467348583493",
      "zip" : "12345",
      "province" : "",
      "country" : "SE",
      "province_code" : "",
      "country_code" : "SE"
    },
    "billing_address" : {
      "id" : 543,
      "name" : "Richard Benson",
      "first_name" : "Benson",
      "last_name" : "Benson",
      "street" : "Street 1 apt5",
      "address1" : "Street 1",
      "address2" : "apt5",
      "company" : "Acme Ltd",
      "city" : "Stockholm",
      "phone" : "+467348583493",
      "zip" : "12345",
      "province" : "",
      "country" : "SE",
      "province_code" : "",
      "country_code" : "SE"
    },
    "line_items" : [ {
      "id" : 123,
      "variant_id" : 34534,
      "product_id" : 24221,
      "quantity" : 1,
      "available_quantity" : 20,
      "product_title" : "T-shirt with flames",
      "variant_title" : "XL / Red / Striped",
      "fulfillable_quantity" : 1,
      "fulfilled_quantity" : 0,
      "refunded_quantity" : 0,
      "featured_image" : {
        "id" : 981,
        "src" : "//cdn.pandacommerce.net/templates/1/1/template/983/assets/add_prod.png?7028",
        "alt" : "My image"
      },
      "fulfillment_service" : "my-own-fulfillment-service",
      "weight" : 500,
      "line_weight" : 500,
      "price" : 129.0,
      "price_excluding_tax" : 129.0,
      "line_price" : 129.0,
      "line_price_excluding_tax" : 129.0,
      "sku" : "XK3334L",
      "inventory_location" : "D6",
      "taxable" : true,
      "requires_shipping" : true,
      "tax_lines" : {
        "test" : "123123123123"
      },
      "title" : "T-shirt with flames - XL / Red / Striped",
      "properties" : "object"
    } ],
    "line_items_price" : 129.0,
    "line_items_price_excluding_tax" : 0.0,
    "line_items_tax_lines" : {
      "test" : "123123123123"
    },
    "transactions" : [ {
      "id" : 123,
      "kind" : "capture",
      "created_at" : "2016-05-01 22:00:01",
      "success" : true,
      "ip" : "127.0.0.1",
      "card_type" : "Visa",
      "card_number" : "XXXX XXXX XXXX 2134",
      "message" : "Capture Successful",
      "amount" : 129.0,
      "test" : false,
      "currency" : "SEK",
      "receipt" : "KK34742D",
      "gateway_title" : "Stripe",
      "gateway_id" : 345
    } ],
    "refunds" : [ {
      "id" : 123,
      "kind" : "capture",
      "created_at" : "2016-05-01 22:00:01",
      "success" : true,
      "ip" : "127.0.0.1",
      "card_type" : "Visa",
      "card_number" : "XXXX XXXX XXXX 2134",
      "message" : "Capture Successful",
      "amount" : 129.0,
      "test" : false,
      "currency" : "SEK",
      "receipt" : "KK34742D",
      "gateway_title" : "Stripe",
      "gateway_id" : 345
    } ],
    "fulfillments" : [ {
      "id" : 123,
      "order_id" : 4364,
      "created_at" : "2016-05-01 22:00:01",
      "status" : "success",
      "fulfillment_service" : {
        "id" : 123,
        "name" : "My own fulfillment service",
        "handle" : "my-own-fulfillment-service",
        "inventory_management" : true,
        "tracking_support" : true,
        "requires_shipping_method" : true,
        "return_handling" : true,
        "include_pending_stock" : true,
        "credential1" : "user@domain.com",
        "callback_url" : "https://www.my-app.com/fulfillment_service.php",
        "provider_id" : 3,
        "email" : "user@domain.com",
        "created_at" : "2016-05-01 22:00:01"
      },
      "fulfillment_service_receipt" : "GS3242",
      "line_items" : [ {
        "id" : 123,
        "variant_id" : 34534,
        "product_id" : 24221,
        "quantity" : 1,
        "available_quantity" : 20,
        "product_title" : "T-shirt with flames",
        "variant_title" : "XL / Red / Striped",
        "fulfillable_quantity" : 1,
        "fulfilled_quantity" : 0,
        "refunded_quantity" : 0,
        "featured_image" : {
          "id" : 981,
          "src" : "//cdn.pandacommerce.net/templates/1/1/template/983/assets/add_prod.png?7028",
          "alt" : "My image"
        },
        "fulfillment_service" : "my-own-fulfillment-service",
        "weight" : 500,
        "line_weight" : 500,
        "price" : 129.0,
        "price_excluding_tax" : 129.0,
        "line_price" : 129.0,
        "line_price_excluding_tax" : 129.0,
        "sku" : "XK3334L",
        "inventory_location" : "D6",
        "taxable" : true,
        "requires_shipping" : true,
        "tax_lines" : {
          "test" : "123123123123"
        },
        "title" : "T-shirt with flames - XL / Red / Striped",
        "properties" : "object"
      } ],
      "tracking_number" : "SE349329492P",
      "tracking_company" : "Standard Post",
      "tracking_company_id" : 232,
      "tracking_url" : "http://www.postcompany.com/?trackid=SE349329492P"
    } ],
    "note" : "Notes about order",
    "attributes" : "object",
    "referring_site" : "http://www.google.com",
    "landing_site" : "http://store.pandacommerce.net/?ref=myblog",
    "landing_site_ref" : "myblog",
    "cancelled" : false,
    "cancelled_at" : "2016-05-01 22:00:01",
    "cancel_reason" : "other",
    "refunded_amount" : 0.0,
    "discount_code" : "DISCOUNT20",
    "tags" : [ "string" ],
    "currency" : "SEK",
    "customer" : "...",
    "url" : "https://checkout.pandacommerce.net/order/b65673d761d01a8366d5a1a01e483e7b",
    "checkout_url" : "https://checkout.pandacommerce.net/complete/b65673d761d01a8366d5a1a01e483e7b",
    "customer_url" : "https://store.pandacommerce.net/account/order/34543",
    "open" : true
  },
  "addresses" : [ {
    "id" : 543,
    "name" : "Richard Benson",
    "first_name" : "Benson",
    "last_name" : "Benson",
    "street" : "Street 1 apt5",
    "address1" : "Street 1",
    "address2" : "apt5",
    "company" : "Acme Ltd",
    "city" : "Stockholm",
    "phone" : "+467348583493",
    "zip" : "12345",
    "province" : "",
    "country" : "SE",
    "province_code" : "",
    "country_code" : "SE"
  } ],
  "default_address" : {
    "id" : 543,
    "name" : "Richard Benson",
    "first_name" : "Benson",
    "last_name" : "Benson",
    "street" : "Street 1 apt5",
    "address1" : "Street 1",
    "address2" : "apt5",
    "company" : "Acme Ltd",
    "city" : "Stockholm",
    "phone" : "+467348583493",
    "zip" : "12345",
    "province" : "",
    "country" : "SE",
    "province_code" : "",
    "country_code" : "SE"
  },
  "addresses_option_tags" : "<option.....>Richard Benson, SE</option>",
  "reset_password_url" : "https://store.pandacommerce.net/account/reset/2938809835f3135a3ea8ba30b104154b",
  "account_activation_url" : "https://store.pandacommerce.net/account/activate/2938809835f3135a3ea8ba30b104154b"
}
Example HTTP response
Response 200
{
  "id" : 9348,
  "shop_id" : 23424,
  "shop_name" : "My T-shirt store",
  "email" : "customer@domain.com",
  "metafields" : "object",
  "status" : "enabled",
  "name" : "Richard Benson",
  "first_name" : "Richard",
  "last_name" : "Benson",
  "company" : "Acme Ltd",
  "note" : "Notes about customer",
  "tags" : [ "string" ],
  "accepts_marketing" : true,
  "total_spent" : 129.0,
  "addresses_count" : 1,
  "orders_count" : 1,
  "orders" : [ {
    "id" : 34543,
    "name" : "#100033",
    "metafields" : "object",
    "order_number" : 33,
    "hash" : "b65673d761d01a8366d5a1a01e483e7b",
    "email" : "customer@domain.com",
    "created_at" : "2016-05-01 22:00:01",
    "updated_at" : "2016-05-01 22:00:01",
    "payment" : {
      "id" : 123,
      "kind" : "capture",
      "created_at" : "2016-05-01 22:00:01",
      "success" : true,
      "ip" : "127.0.0.1",
      "card_type" : "Visa",
      "card_number" : "XXXX XXXX XXXX 2134",
      "message" : "Capture Successful",
      "amount" : 129.0,
      "test" : false,
      "currency" : "SEK",
      "receipt" : "KK34742D",
      "gateway_title" : "Stripe",
      "gateway_id" : 345
    },
    "payment_price" : 0.0,
    "payment_price_excluding_tax" : 0.0,
    "payment_tax_lines" : {
      "test" : "123123123123"
    },
    "tax_lines" : {
      "test" : "123123123123"
    },
    "tax_price" : 25.8,
    "shop_id" : 23424,
    "shop_name" : "My T-shirt store",
    "subtotal_price" : 129.0,
    "total_weight" : 500,
    "total_price" : 129.0,
    "gateway" : "Stripe",
    "financial_status" : "paid",
    "fulfillment_status" : "unfulfilled",
    "requires_shipping" : true,
    "shipping_price" : 0.0,
    "shipping_price_excluding_tax" : 0.0,
    "shipping_tax_lines" : {
      "test" : "123123123123"
    },
    "shipping_methods" : [ "object" ],
    "shipping_address" : {
      "id" : 543,
      "name" : "Richard Benson",
      "first_name" : "Benson",
      "last_name" : "Benson",
      "street" : "Street 1 apt5",
      "address1" : "Street 1",
      "address2" : "apt5",
      "company" : "Acme Ltd",
      "city" : "Stockholm",
      "phone" : "+467348583493",
      "zip" : "12345",
      "province" : "",
      "country" : "SE",
      "province_code" : "",
      "country_code" : "SE"
    },
    "billing_address" : {
      "id" : 543,
      "name" : "Richard Benson",
      "first_name" : "Benson",
      "last_name" : "Benson",
      "street" : "Street 1 apt5",
      "address1" : "Street 1",
      "address2" : "apt5",
      "company" : "Acme Ltd",
      "city" : "Stockholm",
      "phone" : "+467348583493",
      "zip" : "12345",
      "province" : "",
      "country" : "SE",
      "province_code" : "",
      "country_code" : "SE"
    },
    "line_items" : [ {
      "id" : 123,
      "variant_id" : 34534,
      "product_id" : 24221,
      "quantity" : 1,
      "available_quantity" : 20,
      "product_title" : "T-shirt with flames",
      "variant_title" : "XL / Red / Striped",
      "fulfillable_quantity" : 1,
      "fulfilled_quantity" : 0,
      "refunded_quantity" : 0,
      "featured_image" : {
        "id" : 981,
        "src" : "//cdn.pandacommerce.net/templates/1/1/template/983/assets/add_prod.png?7028",
        "alt" : "My image"
      },
      "fulfillment_service" : "my-own-fulfillment-service",
      "weight" : 500,
      "line_weight" : 500,
      "price" : 129.0,
      "price_excluding_tax" : 129.0,
      "line_price" : 129.0,
      "line_price_excluding_tax" : 129.0,
      "sku" : "XK3334L",
      "inventory_location" : "D6",
      "taxable" : true,
      "requires_shipping" : true,
      "tax_lines" : {
        "test" : "123123123123"
      },
      "title" : "T-shirt with flames - XL / Red / Striped",
      "properties" : "object"
    } ],
    "line_items_price" : 129.0,
    "line_items_price_excluding_tax" : 0.0,
    "line_items_tax_lines" : {
      "test" : "123123123123"
    },
    "transactions" : [ {
      "id" : 123,
      "kind" : "capture",
      "created_at" : "2016-05-01 22:00:01",
      "success" : true,
      "ip" : "127.0.0.1",
      "card_type" : "Visa",
      "card_number" : "XXXX XXXX XXXX 2134",
      "message" : "Capture Successful",
      "amount" : 129.0,
      "test" : false,
      "currency" : "SEK",
      "receipt" : "KK34742D",
      "gateway_title" : "Stripe",
      "gateway_id" : 345
    } ],
    "refunds" : [ {
      "id" : 123,
      "kind" : "capture",
      "created_at" : "2016-05-01 22:00:01",
      "success" : true,
      "ip" : "127.0.0.1",
      "card_type" : "Visa",
      "card_number" : "XXXX XXXX XXXX 2134",
      "message" : "Capture Successful",
      "amount" : 129.0,
      "test" : false,
      "currency" : "SEK",
      "receipt" : "KK34742D",
      "gateway_title" : "Stripe",
      "gateway_id" : 345
    } ],
    "fulfillments" : [ {
      "id" : 123,
      "order_id" : 4364,
      "created_at" : "2016-05-01 22:00:01",
      "status" : "success",
      "fulfillment_service" : {
        "id" : 123,
        "name" : "My own fulfillment service",
        "handle" : "my-own-fulfillment-service",
        "inventory_management" : true,
        "tracking_support" : true,
        "requires_shipping_method" : true,
        "return_handling" : true,
        "include_pending_stock" : true,
        "credential1" : "user@domain.com",
        "callback_url" : "https://www.my-app.com/fulfillment_service.php",
        "provider_id" : 3,
        "email" : "user@domain.com",
        "created_at" : "2016-05-01 22:00:01"
      },
      "fulfillment_service_receipt" : "GS3242",
      "line_items" : [ {
        "id" : 123,
        "variant_id" : 34534,
        "product_id" : 24221,
        "quantity" : 1,
        "available_quantity" : 20,
        "product_title" : "T-shirt with flames",
        "variant_title" : "XL / Red / Striped",
        "fulfillable_quantity" : 1,
        "fulfilled_quantity" : 0,
        "refunded_quantity" : 0,
        "featured_image" : {
          "id" : 981,
          "src" : "//cdn.pandacommerce.net/templates/1/1/template/983/assets/add_prod.png?7028",
          "alt" : "My image"
        },
        "fulfillment_service" : "my-own-fulfillment-service",
        "weight" : 500,
        "line_weight" : 500,
        "price" : 129.0,
        "price_excluding_tax" : 129.0,
        "line_price" : 129.0,
        "line_price_excluding_tax" : 129.0,
        "sku" : "XK3334L",
        "inventory_location" : "D6",
        "taxable" : true,
        "requires_shipping" : true,
        "tax_lines" : {
          "test" : "123123123123"
        },
        "title" : "T-shirt with flames - XL / Red / Striped",
        "properties" : "object"
      } ],
      "tracking_number" : "SE349329492P",
      "tracking_company" : "Standard Post",
      "tracking_company_id" : 232,
      "tracking_url" : "http://www.postcompany.com/?trackid=SE349329492P"
    } ],
    "note" : "Notes about order",
    "attributes" : "object",
    "referring_site" : "http://www.google.com",
    "landing_site" : "http://store.pandacommerce.net/?ref=myblog",
    "landing_site_ref" : "myblog",
    "cancelled" : false,
    "cancelled_at" : "2016-05-01 22:00:01",
    "cancel_reason" : "other",
    "refunded_amount" : 0.0,
    "discount_code" : "DISCOUNT20",
    "tags" : [ "string" ],
    "currency" : "SEK",
    "customer" : {
      "id" : 9348,
      "shop_id" : 23424,
      "shop_name" : "My T-shirt store",
      "email" : "customer@domain.com",
      "metafields" : "object",
      "status" : "enabled",
      "name" : "Richard Benson",
      "first_name" : "Richard",
      "last_name" : "Benson",
      "company" : "Acme Ltd",
      "note" : "Notes about customer",
      "tags" : [ "string" ],
      "accepts_marketing" : true,
      "total_spent" : 129.0,
      "addresses_count" : 1,
      "orders_count" : 1,
      "orders" : [ {
        "id" : 34543,
        "name" : "#100033",
        "metafields" : "object",
        "order_number" : 33,
        "hash" : "b65673d761d01a8366d5a1a01e483e7b",
        "email" : "customer@domain.com",
        "created_at" : "2016-05-01 22:00:01",
        "updated_at" : "2016-05-01 22:00:01",
        "payment" : {
          "id" : 123,
          "kind" : "capture",
          "created_at" : "2016-05-01 22:00:01",
          "success" : true,
          "ip" : "127.0.0.1",
          "card_type" : "Visa",
          "card_number" : "XXXX XXXX XXXX 2134",
          "message" : "Capture Successful",
          "amount" : 129.0,
          "test" : false,
          "currency" : "SEK",
          "receipt" : "KK34742D",
          "gateway_title" : "Stripe",
          "gateway_id" : 345
        },
        "payment_price" : 0.0,
        "payment_price_excluding_tax" : 0.0,
        "payment_tax_lines" : {
          "test" : "123123123123"
        },
        "tax_lines" : {
          "test" : "123123123123"
        },
        "tax_price" : 25.8,
        "shop_id" : 23424,
        "shop_name" : "My T-shirt store",
        "subtotal_price" : 129.0,
        "total_weight" : 500,
        "total_price" : 129.0,
        "gateway" : "Stripe",
        "financial_status" : "paid",
        "fulfillment_status" : "unfulfilled",
        "requires_shipping" : true,
        "shipping_price" : 0.0,
        "shipping_price_excluding_tax" : 0.0,
        "shipping_tax_lines" : {
          "test" : "123123123123"
        },
        "shipping_methods" : [ "object" ],
        "shipping_address" : {
          "id" : 543,
          "name" : "Richard Benson",
          "first_name" : "Benson",
          "last_name" : "Benson",
          "street" : "Street 1 apt5",
          "address1" : "Street 1",
          "address2" : "apt5",
          "company" : "Acme Ltd",
          "city" : "Stockholm",
          "phone" : "+467348583493",
          "zip" : "12345",
          "province" : "",
          "country" : "SE",
          "province_code" : "",
          "country_code" : "SE"
        },
        "billing_address" : {
          "id" : 543,
          "name" : "Richard Benson",
          "first_name" : "Benson",
          "last_name" : "Benson",
          "street" : "Street 1 apt5",
          "address1" : "Street 1",
          "address2" : "apt5",
          "company" : "Acme Ltd",
          "city" : "Stockholm",
          "phone" : "+467348583493",
          "zip" : "12345",
          "province" : "",
          "country" : "SE",
          "province_code" : "",
          "country_code" : "SE"
        },
        "line_items" : [ {
          "id" : 123,
          "variant_id" : 34534,
          "product_id" : 24221,
          "quantity" : 1,
          "available_quantity" : 20,
          "product_title" : "T-shirt with flames",
          "variant_title" : "XL / Red / Striped",
          "fulfillable_quantity" : 1,
          "fulfilled_quantity" : 0,
          "refunded_quantity" : 0,
          "featured_image" : {
            "id" : 981,
            "src" : "//cdn.pandacommerce.net/templates/1/1/template/983/assets/add_prod.png?7028",
            "alt" : "My image"
          },
          "fulfillment_service" : "my-own-fulfillment-service",
          "weight" : 500,
          "line_weight" : 500,
          "price" : 129.0,
          "price_excluding_tax" : 129.0,
          "line_price" : 129.0,
          "line_price_excluding_tax" : 129.0,
          "sku" : "XK3334L",
          "inventory_location" : "D6",
          "taxable" : true,
          "requires_shipping" : true,
          "tax_lines" : {
            "test" : "123123123123"
          },
          "title" : "T-shirt with flames - XL / Red / Striped",
          "properties" : "object"
        } ],
        "line_items_price" : 129.0,
        "line_items_price_excluding_tax" : 0.0,
        "line_items_tax_lines" : {
          "test" : "123123123123"
        },
        "transactions" : [ {
          "id" : 123,
          "kind" : "capture",
          "created_at" : "2016-05-01 22:00:01",
          "success" : true,
          "ip" : "127.0.0.1",
          "card_type" : "Visa",
          "card_number" : "XXXX XXXX XXXX 2134",
          "message" : "Capture Successful",
          "amount" : 129.0,
          "test" : false,
          "currency" : "SEK",
          "receipt" : "KK34742D",
          "gateway_title" : "Stripe",
          "gateway_id" : 345
        } ],
        "refunds" : [ {
          "id" : 123,
          "kind" : "capture",
          "created_at" : "2016-05-01 22:00:01",
          "success" : true,
          "ip" : "127.0.0.1",
          "card_type" : "Visa",
          "card_number" : "XXXX XXXX XXXX 2134",
          "message" : "Capture Successful",
          "amount" : 129.0,
          "test" : false,
          "currency" : "SEK",
          "receipt" : "KK34742D",
          "gateway_title" : "Stripe",
          "gateway_id" : 345
        } ],
        "fulfillments" : [ {
          "id" : 123,
          "order_id" : 4364,
          "created_at" : "2016-05-01 22:00:01",
          "status" : "success",
          "fulfillment_service" : {
            "id" : 123,
            "name" : "My own fulfillment service",
            "handle" : "my-own-fulfillment-service",
            "inventory_management" : true,
            "tracking_support" : true,
            "requires_shipping_method" : true,
            "return_handling" : true,
            "include_pending_stock" : true,
            "credential1" : "user@domain.com",
            "callback_url" : "https://www.my-app.com/fulfillment_service.php",
            "provider_id" : 3,
            "email" : "user@domain.com",
            "created_at" : "2016-05-01 22:00:01"
          },
          "fulfillment_service_receipt" : "GS3242",
          "line_items" : [ {
            "id" : 123,
            "variant_id" : 34534,
            "product_id" : 24221,
            "quantity" : 1,
            "available_quantity" : 20,
            "product_title" : "T-shirt with flames",
            "variant_title" : "XL / Red / Striped",
            "fulfillable_quantity" : 1,
            "fulfilled_quantity" : 0,
            "refunded_quantity" : 0,
            "featured_image" : {
              "id" : 981,
              "src" : "//cdn.pandacommerce.net/templates/1/1/template/983/assets/add_prod.png?7028",
              "alt" : "My image"
            },
            "fulfillment_service" : "my-own-fulfillment-service",
            "weight" : 500,
            "line_weight" : 500,
            "price" : 129.0,
            "price_excluding_tax" : 129.0,
            "line_price" : 129.0,
            "line_price_excluding_tax" : 129.0,
            "sku" : "XK3334L",
            "inventory_location" : "D6",
            "taxable" : true,
            "requires_shipping" : true,
            "tax_lines" : {
              "test" : "123123123123"
            },
            "title" : "T-shirt with flames - XL / Red / Striped",
            "properties" : "object"
          } ],
          "tracking_number" : "SE349329492P",
          "tracking_company" : "Standard Post",
          "tracking_company_id" : 232,
          "tracking_url" : "http://www.postcompany.com/?trackid=SE349329492P"
        } ],
        "note" : "Notes about order",
        "attributes" : "object",
        "referring_site" : "http://www.google.com",
        "landing_site" : "http://store.pandacommerce.net/?ref=myblog",
        "landing_site_ref" : "myblog",
        "cancelled" : false,
        "cancelled_at" : "2016-05-01 22:00:01",
        "cancel_reason" : "other",
        "refunded_amount" : 0.0,
        "discount_code" : "DISCOUNT20",
        "tags" : [ "string" ],
        "currency" : "SEK",
        "customer" : "...",
        "url" : "https://checkout.pandacommerce.net/order/b65673d761d01a8366d5a1a01e483e7b",
        "checkout_url" : "https://checkout.pandacommerce.net/complete/b65673d761d01a8366d5a1a01e483e7b",
        "customer_url" : "https://store.pandacommerce.net/account/order/34543",
        "open" : true
      } ],
      "last_order" : {
        "id" : 34543,
        "name" : "#100033",
        "metafields" : "object",
        "order_number" : 33,
        "hash" : "b65673d761d01a8366d5a1a01e483e7b",
        "email" : "customer@domain.com",
        "created_at" : "2016-05-01 22:00:01",
        "updated_at" : "2016-05-01 22:00:01",
        "payment" : {
          "id" : 123,
          "kind" : "capture",
          "created_at" : "2016-05-01 22:00:01",
          "success" : true,
          "ip" : "127.0.0.1",
          "card_type" : "Visa",
          "card_number" : "XXXX XXXX XXXX 2134",
          "message" : "Capture Successful",
          "amount" : 129.0,
          "test" : false,
          "currency" : "SEK",
          "receipt" : "KK34742D",
          "gateway_title" : "Stripe",
          "gateway_id" : 345
        },
        "payment_price" : 0.0,
        "payment_price_excluding_tax" : 0.0,
        "payment_tax_lines" : {
          "test" : "123123123123"
        },
        "tax_lines" : {
          "test" : "123123123123"
        },
        "tax_price" : 25.8,
        "shop_id" : 23424,
        "shop_name" : "My T-shirt store",
        "subtotal_price" : 129.0,
        "total_weight" : 500,
        "total_price" : 129.0,
        "gateway" : "Stripe",
        "financial_status" : "paid",
        "fulfillment_status" : "unfulfilled",
        "requires_shipping" : true,
        "shipping_price" : 0.0,
        "shipping_price_excluding_tax" : 0.0,
        "shipping_tax_lines" : {
          "test" : "123123123123"
        },
        "shipping_methods" : [ "object" ],
        "shipping_address" : {
          "id" : 543,
          "name" : "Richard Benson",
          "first_name" : "Benson",
          "last_name" : "Benson",
          "street" : "Street 1 apt5",
          "address1" : "Street 1",
          "address2" : "apt5",
          "company" : "Acme Ltd",
          "city" : "Stockholm",
          "phone" : "+467348583493",
          "zip" : "12345",
          "province" : "",
          "country" : "SE",
          "province_code" : "",
          "country_code" : "SE"
        },
        "billing_address" : {
          "id" : 543,
          "name" : "Richard Benson",
          "first_name" : "Benson",
          "last_name" : "Benson",
          "street" : "Street 1 apt5",
          "address1" : "Street 1",
          "address2" : "apt5",
          "company" : "Acme Ltd",
          "city" : "Stockholm",
          "phone" : "+467348583493",
          "zip" : "12345",
          "province" : "",
          "country" : "SE",
          "province_code" : "",
          "country_code" : "SE"
        },
        "line_items" : [ {
          "id" : 123,
          "variant_id" : 34534,
          "product_id" : 24221,
          "quantity" : 1,
          "available_quantity" : 20,
          "product_title" : "T-shirt with flames",
          "variant_title" : "XL / Red / Striped",
          "fulfillable_quantity" : 1,
          "fulfilled_quantity" : 0,
          "refunded_quantity" : 0,
          "featured_image" : {
            "id" : 981,
            "src" : "//cdn.pandacommerce.net/templates/1/1/template/983/assets/add_prod.png?7028",
            "alt" : "My image"
          },
          "fulfillment_service" : "my-own-fulfillment-service",
          "weight" : 500,
          "line_weight" : 500,
          "price" : 129.0,
          "price_excluding_tax" : 129.0,
          "line_price" : 129.0,
          "line_price_excluding_tax" : 129.0,
          "sku" : "XK3334L",
          "inventory_location" : "D6",
          "taxable" : true,
          "requires_shipping" : true,
          "tax_lines" : {
            "test" : "123123123123"
          },
          "title" : "T-shirt with flames - XL / Red / Striped",
          "properties" : "object"
        } ],
        "line_items_price" : 129.0,
        "line_items_price_excluding_tax" : 0.0,
        "line_items_tax_lines" : {
          "test" : "123123123123"
        },
        "transactions" : [ {
          "id" : 123,
          "kind" : "capture",
          "created_at" : "2016-05-01 22:00:01",
          "success" : true,
          "ip" : "127.0.0.1",
          "card_type" : "Visa",
          "card_number" : "XXXX XXXX XXXX 2134",
          "message" : "Capture Successful",
          "amount" : 129.0,
          "test" : false,
          "currency" : "SEK",
          "receipt" : "KK34742D",
          "gateway_title" : "Stripe",
          "gateway_id" : 345
        } ],
        "refunds" : [ {
          "id" : 123,
          "kind" : "capture",
          "created_at" : "2016-05-01 22:00:01",
          "success" : true,
          "ip" : "127.0.0.1",
          "card_type" : "Visa",
          "card_number" : "XXXX XXXX XXXX 2134",
          "message" : "Capture Successful",
          "amount" : 129.0,
          "test" : false,
          "currency" : "SEK",
          "receipt" : "KK34742D",
          "gateway_title" : "Stripe",
          "gateway_id" : 345
        } ],
        "fulfillments" : [ {
          "id" : 123,
          "order_id" : 4364,
          "created_at" : "2016-05-01 22:00:01",
          "status" : "success",
          "fulfillment_service" : {
            "id" : 123,
            "name" : "My own fulfillment service",
            "handle" : "my-own-fulfillment-service",
            "inventory_management" : true,
            "tracking_support" : true,
            "requires_shipping_method" : true,
            "return_handling" : true,
            "include_pending_stock" : true,
            "credential1" : "user@domain.com",
            "callback_url" : "https://www.my-app.com/fulfillment_service.php",
            "provider_id" : 3,
            "email" : "user@domain.com",
            "created_at" : "2016-05-01 22:00:01"
          },
          "fulfillment_service_receipt" : "GS3242",
          "line_items" : [ {
            "id" : 123,
            "variant_id" : 34534,
            "product_id" : 24221,
            "quantity" : 1,
            "available_quantity" : 20,
            "product_title" : "T-shirt with flames",
            "variant_title" : "XL / Red / Striped",
            "fulfillable_quantity" : 1,
            "fulfilled_quantity" : 0,
            "refunded_quantity" : 0,
            "featured_image" : {
              "id" : 981,
              "src" : "//cdn.pandacommerce.net/templates/1/1/template/983/assets/add_prod.png?7028",
              "alt" : "My image"
            },
            "fulfillment_service" : "my-own-fulfillment-service",
            "weight" : 500,
            "line_weight" : 500,
            "price" : 129.0,
            "price_excluding_tax" : 129.0,
            "line_price" : 129.0,
            "line_price_excluding_tax" : 129.0,
            "sku" : "XK3334L",
            "inventory_location" : "D6",
            "taxable" : true,
            "requires_shipping" : true,
            "tax_lines" : {
              "test" : "123123123123"
            },
            "title" : "T-shirt with flames - XL / Red / Striped",
            "properties" : "object"
          } ],
          "tracking_number" : "SE349329492P",
          "tracking_company" : "Standard Post",
          "tracking_company_id" : 232,
          "tracking_url" : "http://www.postcompany.com/?trackid=SE349329492P"
        } ],
        "note" : "Notes about order",
        "attributes" : "object",
        "referring_site" : "http://www.google.com",
        "landing_site" : "http://store.pandacommerce.net/?ref=myblog",
        "landing_site_ref" : "myblog",
        "cancelled" : false,
        "cancelled_at" : "2016-05-01 22:00:01",
        "cancel_reason" : "other",
        "refunded_amount" : 0.0,
        "discount_code" : "DISCOUNT20",
        "tags" : [ "string" ],
        "currency" : "SEK",
        "customer" : "...",
        "url" : "https://checkout.pandacommerce.net/order/b65673d761d01a8366d5a1a01e483e7b",
        "checkout_url" : "https://checkout.pandacommerce.net/complete/b65673d761d01a8366d5a1a01e483e7b",
        "customer_url" : "https://store.pandacommerce.net/account/order/34543",
        "open" : true
      },
      "addresses" : [ {
        "id" : 543,
        "name" : "Richard Benson",
        "first_name" : "Benson",
        "last_name" : "Benson",
        "street" : "Street 1 apt5",
        "address1" : "Street 1",
        "address2" : "apt5",
        "company" : "Acme Ltd",
        "city" : "Stockholm",
        "phone" : "+467348583493",
        "zip" : "12345",
        "province" : "",
        "country" : "SE",
        "province_code" : "",
        "country_code" : "SE"
      } ],
      "default_address" : {
        "id" : 543,
        "name" : "Richard Benson",
        "first_name" : "Benson",
        "last_name" : "Benson",
        "street" : "Street 1 apt5",
        "address1" : "Street 1",
        "address2" : "apt5",
        "company" : "Acme Ltd",
        "city" : "Stockholm",
        "phone" : "+467348583493",
        "zip" : "12345",
        "province" : "",
        "country" : "SE",
        "province_code" : "",
        "country_code" : "SE"
      },
      "addresses_option_tags" : "<option.....>Richard Benson, SE</option>",
      "reset_password_url" : "https://store.pandacommerce.net/account/reset/2938809835f3135a3ea8ba30b104154b",
      "account_activation_url" : "https://store.pandacommerce.net/account/activate/2938809835f3135a3ea8ba30b104154b"
    },
    "url" : "https://checkout.pandacommerce.net/order/b65673d761d01a8366d5a1a01e483e7b",
    "checkout_url" : "https://checkout.pandacommerce.net/complete/b65673d761d01a8366d5a1a01e483e7b",
    "customer_url" : "https://store.pandacommerce.net/account/order/34543",
    "open" : true
  } ],
  "last_order" : {
    "id" : 34543,
    "name" : "#100033",
    "metafields" : "object",
    "order_number" : 33,
    "hash" : "b65673d761d01a8366d5a1a01e483e7b",
    "email" : "customer@domain.com",
    "created_at" : "2016-05-01 22:00:01",
    "updated_at" : "2016-05-01 22:00:01",
    "payment" : {
      "id" : 123,
      "kind" : "capture",
      "created_at" : "2016-05-01 22:00:01",
      "success" : true,
      "ip" : "127.0.0.1",
      "card_type" : "Visa",
      "card_number" : "XXXX XXXX XXXX 2134",
      "message" : "Capture Successful",
      "amount" : 129.0,
      "test" : false,
      "currency" : "SEK",
      "receipt" : "KK34742D",
      "gateway_title" : "Stripe",
      "gateway_id" : 345
    },
    "payment_price" : 0.0,
    "payment_price_excluding_tax" : 0.0,
    "payment_tax_lines" : {
      "test" : "123123123123"
    },
    "tax_lines" : {
      "test" : "123123123123"
    },
    "tax_price" : 25.8,
    "shop_id" : 23424,
    "shop_name" : "My T-shirt store",
    "subtotal_price" : 129.0,
    "total_weight" : 500,
    "total_price" : 129.0,
    "gateway" : "Stripe",
    "financial_status" : "paid",
    "fulfillment_status" : "unfulfilled",
    "requires_shipping" : true,
    "shipping_price" : 0.0,
    "shipping_price_excluding_tax" : 0.0,
    "shipping_tax_lines" : {
      "test" : "123123123123"
    },
    "shipping_methods" : [ "object" ],
    "shipping_address" : {
      "id" : 543,
      "name" : "Richard Benson",
      "first_name" : "Benson",
      "last_name" : "Benson",
      "street" : "Street 1 apt5",
      "address1" : "Street 1",
      "address2" : "apt5",
      "company" : "Acme Ltd",
      "city" : "Stockholm",
      "phone" : "+467348583493",
      "zip" : "12345",
      "province" : "",
      "country" : "SE",
      "province_code" : "",
      "country_code" : "SE"
    },
    "billing_address" : {
      "id" : 543,
      "name" : "Richard Benson",
      "first_name" : "Benson",
      "last_name" : "Benson",
      "street" : "Street 1 apt5",
      "address1" : "Street 1",
      "address2" : "apt5",
      "company" : "Acme Ltd",
      "city" : "Stockholm",
      "phone" : "+467348583493",
      "zip" : "12345",
      "province" : "",
      "country" : "SE",
      "province_code" : "",
      "country_code" : "SE"
    },
    "line_items" : [ {
      "id" : 123,
      "variant_id" : 34534,
      "product_id" : 24221,
      "quantity" : 1,
      "available_quantity" : 20,
      "product_title" : "T-shirt with flames",
      "variant_title" : "XL / Red / Striped",
      "fulfillable_quantity" : 1,
      "fulfilled_quantity" : 0,
      "refunded_quantity" : 0,
      "featured_image" : {
        "id" : 981,
        "src" : "//cdn.pandacommerce.net/templates/1/1/template/983/assets/add_prod.png?7028",
        "alt" : "My image"
      },
      "fulfillment_service" : "my-own-fulfillment-service",
      "weight" : 500,
      "line_weight" : 500,
      "price" : 129.0,
      "price_excluding_tax" : 129.0,
      "line_price" : 129.0,
      "line_price_excluding_tax" : 129.0,
      "sku" : "XK3334L",
      "inventory_location" : "D6",
      "taxable" : true,
      "requires_shipping" : true,
      "tax_lines" : {
        "test" : "123123123123"
      },
      "title" : "T-shirt with flames - XL / Red / Striped",
      "properties" : "object"
    } ],
    "line_items_price" : 129.0,
    "line_items_price_excluding_tax" : 0.0,
    "line_items_tax_lines" : {
      "test" : "123123123123"
    },
    "transactions" : [ {
      "id" : 123,
      "kind" : "capture",
      "created_at" : "2016-05-01 22:00:01",
      "success" : true,
      "ip" : "127.0.0.1",
      "card_type" : "Visa",
      "card_number" : "XXXX XXXX XXXX 2134",
      "message" : "Capture Successful",
      "amount" : 129.0,
      "test" : false,
      "currency" : "SEK",
      "receipt" : "KK34742D",
      "gateway_title" : "Stripe",
      "gateway_id" : 345
    } ],
    "refunds" : [ {
      "id" : 123,
      "kind" : "capture",
      "created_at" : "2016-05-01 22:00:01",
      "success" : true,
      "ip" : "127.0.0.1",
      "card_type" : "Visa",
      "card_number" : "XXXX XXXX XXXX 2134",
      "message" : "Capture Successful",
      "amount" : 129.0,
      "test" : false,
      "currency" : "SEK",
      "receipt" : "KK34742D",
      "gateway_title" : "Stripe",
      "gateway_id" : 345
    } ],
    "fulfillments" : [ {
      "id" : 123,
      "order_id" : 4364,
      "created_at" : "2016-05-01 22:00:01",
      "status" : "success",
      "fulfillment_service" : {
        "id" : 123,
        "name" : "My own fulfillment service",
        "handle" : "my-own-fulfillment-service",
        "inventory_management" : true,
        "tracking_support" : true,
        "requires_shipping_method" : true,
        "return_handling" : true,
        "include_pending_stock" : true,
        "credential1" : "user@domain.com",
        "callback_url" : "https://www.my-app.com/fulfillment_service.php",
        "provider_id" : 3,
        "email" : "user@domain.com",
        "created_at" : "2016-05-01 22:00:01"
      },
      "fulfillment_service_receipt" : "GS3242",
      "line_items" : [ {
        "id" : 123,
        "variant_id" : 34534,
        "product_id" : 24221,
        "quantity" : 1,
        "available_quantity" : 20,
        "product_title" : "T-shirt with flames",
        "variant_title" : "XL / Red / Striped",
        "fulfillable_quantity" : 1,
        "fulfilled_quantity" : 0,
        "refunded_quantity" : 0,
        "featured_image" : {
          "id" : 981,
          "src" : "//cdn.pandacommerce.net/templates/1/1/template/983/assets/add_prod.png?7028",
          "alt" : "My image"
        },
        "fulfillment_service" : "my-own-fulfillment-service",
        "weight" : 500,
        "line_weight" : 500,
        "price" : 129.0,
        "price_excluding_tax" : 129.0,
        "line_price" : 129.0,
        "line_price_excluding_tax" : 129.0,
        "sku" : "XK3334L",
        "inventory_location" : "D6",
        "taxable" : true,
        "requires_shipping" : true,
        "tax_lines" : {
          "test" : "123123123123"
        },
        "title" : "T-shirt with flames - XL / Red / Striped",
        "properties" : "object"
      } ],
      "tracking_number" : "SE349329492P",
      "tracking_company" : "Standard Post",
      "tracking_company_id" : 232,
      "tracking_url" : "http://www.postcompany.com/?trackid=SE349329492P"
    } ],
    "note" : "Notes about order",
    "attributes" : "object",
    "referring_site" : "http://www.google.com",
    "landing_site" : "http://store.pandacommerce.net/?ref=myblog",
    "landing_site_ref" : "myblog",
    "cancelled" : false,
    "cancelled_at" : "2016-05-01 22:00:01",
    "cancel_reason" : "other",
    "refunded_amount" : 0.0,
    "discount_code" : "DISCOUNT20",
    "tags" : [ "string" ],
    "currency" : "SEK",
    "customer" : "...",
    "url" : "https://checkout.pandacommerce.net/order/b65673d761d01a8366d5a1a01e483e7b",
    "checkout_url" : "https://checkout.pandacommerce.net/complete/b65673d761d01a8366d5a1a01e483e7b",
    "customer_url" : "https://store.pandacommerce.net/account/order/34543",
    "open" : true
  },
  "addresses" : [ {
    "id" : 543,
    "name" : "Richard Benson",
    "first_name" : "Benson",
    "last_name" : "Benson",
    "street" : "Street 1 apt5",
    "address1" : "Street 1",
    "address2" : "apt5",
    "company" : "Acme Ltd",
    "city" : "Stockholm",
    "phone" : "+467348583493",
    "zip" : "12345",
    "province" : "",
    "country" : "SE",
    "province_code" : "",
    "country_code" : "SE"
  } ],
  "default_address" : {
    "id" : 543,
    "name" : "Richard Benson",
    "first_name" : "Benson",
    "last_name" : "Benson",
    "street" : "Street 1 apt5",
    "address1" : "Street 1",
    "address2" : "apt5",
    "company" : "Acme Ltd",
    "city" : "Stockholm",
    "phone" : "+467348583493",
    "zip" : "12345",
    "province" : "",
    "country" : "SE",
    "province_code" : "",
    "country_code" : "SE"
  },
  "addresses_option_tags" : "<option.....>Richard Benson, SE</option>",
  "reset_password_url" : "https://store.pandacommerce.net/account/reset/2938809835f3135a3ea8ba30b104154b",
  "account_activation_url" : "https://store.pandacommerce.net/account/activate/2938809835f3135a3ea8ba30b104154b"
}
Response default
{
  "errors" : "object"
}

GET /customers.json

Description

Returns all customers from the system that the user has access to

Parameters
Type Name Description Schema

Query

fields
optional

fields to return

< string > array

Query

limit
optional

maximum number of results to return (default 50)

integer

Query

offset
optional

result offset (default 0)

integer

Query

sorting
optional

sorting (title-asc,desc or published_at-asc,desc)

string

Responses
HTTP Code Description Schema

200

customer response

< Customer > array

default

unexpected error

ErrorModel

Produces
  • application/json

Security
Type Name Scopes

oauth2

oauth2

write_customers,read_customers

basic

basic_auth

Example HTTP request
Request path
"/customers.json"
Request query
{
  "fields" : "string",
  "limit" : 0,
  "offset" : 0,
  "sorting" : "string"
}
Example HTTP response
Response 200
"array"
Response default
{
  "errors" : "object"
}

GET /customers/{id}.json

Description

Returns a customer based on a single ID

Parameters
Type Name Description Schema

Path

id
required

ID of customer to fetch

integer

Responses
HTTP Code Description Schema

200

customer response

Customer

default

unexpected error

ErrorModel

Produces
  • application/json

Security
Type Name Scopes

oauth2

oauth2

write_customers,read_customers

basic

basic_auth

Example HTTP request
Request path
"/customers/0.json"
Example HTTP response
Response 200
{
  "id" : 9348,
  "shop_id" : 23424,
  "shop_name" : "My T-shirt store",
  "email" : "customer@domain.com",
  "metafields" : "object",
  "status" : "enabled",
  "name" : "Richard Benson",
  "first_name" : "Richard",
  "last_name" : "Benson",
  "company" : "Acme Ltd",
  "note" : "Notes about customer",
  "tags" : [ "string" ],
  "accepts_marketing" : true,
  "total_spent" : 129.0,
  "addresses_count" : 1,
  "orders_count" : 1,
  "orders" : [ {
    "id" : 34543,
    "name" : "#100033",
    "metafields" : "object",
    "order_number" : 33,
    "hash" : "b65673d761d01a8366d5a1a01e483e7b",
    "email" : "customer@domain.com",
    "created_at" : "2016-05-01 22:00:01",
    "updated_at" : "2016-05-01 22:00:01",
    "payment" : {
      "id" : 123,
      "kind" : "capture",
      "created_at" : "2016-05-01 22:00:01",
      "success" : true,
      "ip" : "127.0.0.1",
      "card_type" : "Visa",
      "card_number" : "XXXX XXXX XXXX 2134",
      "message" : "Capture Successful",
      "amount" : 129.0,
      "test" : false,
      "currency" : "SEK",
      "receipt" : "KK34742D",
      "gateway_title" : "Stripe",
      "gateway_id" : 345
    },
    "payment_price" : 0.0,
    "payment_price_excluding_tax" : 0.0,
    "payment_tax_lines" : {
      "test" : "123123123123"
    },
    "tax_lines" : {
      "test" : "123123123123"
    },
    "tax_price" : 25.8,
    "shop_id" : 23424,
    "shop_name" : "My T-shirt store",
    "subtotal_price" : 129.0,
    "total_weight" : 500,
    "total_price" : 129.0,
    "gateway" : "Stripe",
    "financial_status" : "paid",
    "fulfillment_status" : "unfulfilled",
    "requires_shipping" : true,
    "shipping_price" : 0.0,
    "shipping_price_excluding_tax" : 0.0,
    "shipping_tax_lines" : {
      "test" : "123123123123"
    },
    "shipping_methods" : [ "object" ],
    "shipping_address" : {
      "id" : 543,
      "name" : "Richard Benson",
      "first_name" : "Benson",
      "last_name" : "Benson",
      "street" : "Street 1 apt5",
      "address1" : "Street 1",
      "address2" : "apt5",
      "company" : "Acme Ltd",
      "city" : "Stockholm",
      "phone" : "+467348583493",
      "zip" : "12345",
      "province" : "",
      "country" : "SE",
      "province_code" : "",
      "country_code" : "SE"
    },
    "billing_address" : {
      "id" : 543,
      "name" : "Richard Benson",
      "first_name" : "Benson",
      "last_name" : "Benson",
      "street" : "Street 1 apt5",
      "address1" : "Street 1",
      "address2" : "apt5",
      "company" : "Acme Ltd",
      "city" : "Stockholm",
      "phone" : "+467348583493",
      "zip" : "12345",
      "province" : "",
      "country" : "SE",
      "province_code" : "",
      "country_code" : "SE"
    },
    "line_items" : [ {
      "id" : 123,
      "variant_id" : 34534,
      "product_id" : 24221,
      "quantity" : 1,
      "available_quantity" : 20,
      "product_title" : "T-shirt with flames",
      "variant_title" : "XL / Red / Striped",
      "fulfillable_quantity" : 1,
      "fulfilled_quantity" : 0,
      "refunded_quantity" : 0,
      "featured_image" : {
        "id" : 981,
        "src" : "//cdn.pandacommerce.net/templates/1/1/template/983/assets/add_prod.png?7028",
        "alt" : "My image"
      },
      "fulfillment_service" : "my-own-fulfillment-service",
      "weight" : 500,
      "line_weight" : 500,
      "price" : 129.0,
      "price_excluding_tax" : 129.0,
      "line_price" : 129.0,
      "line_price_excluding_tax" : 129.0,
      "sku" : "XK3334L",
      "inventory_location" : "D6",
      "taxable" : true,
      "requires_shipping" : true,
      "tax_lines" : {
        "test" : "123123123123"
      },
      "title" : "T-shirt with flames - XL / Red / Striped",
      "properties" : "object"
    } ],
    "line_items_price" : 129.0,
    "line_items_price_excluding_tax" : 0.0,
    "line_items_tax_lines" : {
      "test" : "123123123123"
    },
    "transactions" : [ {
      "id" : 123,
      "kind" : "capture",
      "created_at" : "2016-05-01 22:00:01",
      "success" : true,
      "ip" : "127.0.0.1",
      "card_type" : "Visa",
      "card_number" : "XXXX XXXX XXXX 2134",
      "message" : "Capture Successful",
      "amount" : 129.0,
      "test" : false,
      "currency" : "SEK",
      "receipt" : "KK34742D",
      "gateway_title" : "Stripe",
      "gateway_id" : 345
    } ],
    "refunds" : [ {
      "id" : 123,
      "kind" : "capture",
      "created_at" : "2016-05-01 22:00:01",
      "success" : true,
      "ip" : "127.0.0.1",
      "card_type" : "Visa",
      "card_number" : "XXXX XXXX XXXX 2134",
      "message" : "Capture Successful",
      "amount" : 129.0,
      "test" : false,
      "currency" : "SEK",
      "receipt" : "KK34742D",
      "gateway_title" : "Stripe",
      "gateway_id" : 345
    } ],
    "fulfillments" : [ {
      "id" : 123,
      "order_id" : 4364,
      "created_at" : "2016-05-01 22:00:01",
      "status" : "success",
      "fulfillment_service" : {
        "id" : 123,
        "name" : "My own fulfillment service",
        "handle" : "my-own-fulfillment-service",
        "inventory_management" : true,
        "tracking_support" : true,
        "requires_shipping_method" : true,
        "return_handling" : true,
        "include_pending_stock" : true,
        "credential1" : "user@domain.com",
        "callback_url" : "https://www.my-app.com/fulfillment_service.php",
        "provider_id" : 3,
        "email" : "user@domain.com",
        "created_at" : "2016-05-01 22:00:01"
      },
      "fulfillment_service_receipt" : "GS3242",
      "line_items" : [ {
        "id" : 123,
        "variant_id" : 34534,
        "product_id" : 24221,
        "quantity" : 1,
        "available_quantity" : 20,
        "product_title" : "T-shirt with flames",
        "variant_title" : "XL / Red / Striped",
        "fulfillable_quantity" : 1,
        "fulfilled_quantity" : 0,
        "refunded_quantity" : 0,
        "featured_image" : {
          "id" : 981,
          "src" : "//cdn.pandacommerce.net/templates/1/1/template/983/assets/add_prod.png?7028",
          "alt" : "My image"
        },
        "fulfillment_service" : "my-own-fulfillment-service",
        "weight" : 500,
        "line_weight" : 500,
        "price" : 129.0,
        "price_excluding_tax" : 129.0,
        "line_price" : 129.0,
        "line_price_excluding_tax" : 129.0,
        "sku" : "XK3334L",
        "inventory_location" : "D6",
        "taxable" : true,
        "requires_shipping" : true,
        "tax_lines" : {
          "test" : "123123123123"
        },
        "title" : "T-shirt with flames - XL / Red / Striped",
        "properties" : "object"
      } ],
      "tracking_number" : "SE349329492P",
      "tracking_company" : "Standard Post",
      "tracking_company_id" : 232,
      "tracking_url" : "http://www.postcompany.com/?trackid=SE349329492P"
    } ],
    "note" : "Notes about order",
    "attributes" : "object",
    "referring_site" : "http://www.google.com",
    "landing_site" : "http://store.pandacommerce.net/?ref=myblog",
    "landing_site_ref" : "myblog",
    "cancelled" : false,
    "cancelled_at" : "2016-05-01 22:00:01",
    "cancel_reason" : "other",
    "refunded_amount" : 0.0,
    "discount_code" : "DISCOUNT20",
    "tags" : [ "string" ],
    "currency" : "SEK",
    "customer" : {
      "id" : 9348,
      "shop_id" : 23424,
      "shop_name" : "My T-shirt store",
      "email" : "customer@domain.com",
      "metafields" : "object",
      "status" : "enabled",
      "name" : "Richard Benson",
      "first_name" : "Richard",
      "last_name" : "Benson",
      "company" : "Acme Ltd",
      "note" : "Notes about customer",
      "tags" : [ "string" ],
      "accepts_marketing" : true,
      "total_spent" : 129.0,
      "addresses_count" : 1,
      "orders_count" : 1,
      "orders" : [ {
        "id" : 34543,
        "name" : "#100033",
        "metafields" : "object",
        "order_number" : 33,
        "hash" : "b65673d761d01a8366d5a1a01e483e7b",
        "email" : "customer@domain.com",
        "created_at" : "2016-05-01 22:00:01",
        "updated_at" : "2016-05-01 22:00:01",
        "payment" : {
          "id" : 123,
          "kind" : "capture",
          "created_at" : "2016-05-01 22:00:01",
          "success" : true,
          "ip" : "127.0.0.1",
          "card_type" : "Visa",
          "card_number" : "XXXX XXXX XXXX 2134",
          "message" : "Capture Successful",
          "amount" : 129.0,
          "test" : false,
          "currency" : "SEK",
          "receipt" : "KK34742D",
          "gateway_title" : "Stripe",
          "gateway_id" : 345
        },
        "payment_price" : 0.0,
        "payment_price_excluding_tax" : 0.0,
        "payment_tax_lines" : {
          "test" : "123123123123"
        },
        "tax_lines" : {
          "test" : "123123123123"
        },
        "tax_price" : 25.8,
        "shop_id" : 23424,
        "shop_name" : "My T-shirt store",
        "subtotal_price" : 129.0,
        "total_weight" : 500,
        "total_price" : 129.0,
        "gateway" : "Stripe",
        "financial_status" : "paid",
        "fulfillment_status" : "unfulfilled",
        "requires_shipping" : true,
        "shipping_price" : 0.0,
        "shipping_price_excluding_tax" : 0.0,
        "shipping_tax_lines" : {
          "test" : "123123123123"
        },
        "shipping_methods" : [ "object" ],
        "shipping_address" : {
          "id" : 543,
          "name" : "Richard Benson",
          "first_name" : "Benson",
          "last_name" : "Benson",
          "street" : "Street 1 apt5",
          "address1" : "Street 1",
          "address2" : "apt5",
          "company" : "Acme Ltd",
          "city" : "Stockholm",
          "phone" : "+467348583493",
          "zip" : "12345",
          "province" : "",
          "country" : "SE",
          "province_code" : "",
          "country_code" : "SE"
        },
        "billing_address" : {
          "id" : 543,
          "name" : "Richard Benson",
          "first_name" : "Benson",
          "last_name" : "Benson",
          "street" : "Street 1 apt5",
          "address1" : "Street 1",
          "address2" : "apt5",
          "company" : "Acme Ltd",
          "city" : "Stockholm",
          "phone" : "+467348583493",
          "zip" : "12345",
          "province" : "",
          "country" : "SE",
          "province_code" : "",
          "country_code" : "SE"
        },
        "line_items" : [ {
          "id" : 123,
          "variant_id" : 34534,
          "product_id" : 24221,
          "quantity" : 1,
          "available_quantity" : 20,
          "product_title" : "T-shirt with flames",
          "variant_title" : "XL / Red / Striped",
          "fulfillable_quantity" : 1,
          "fulfilled_quantity" : 0,
          "refunded_quantity" : 0,
          "featured_image" : {
            "id" : 981,
            "src" : "//cdn.pandacommerce.net/templates/1/1/template/983/assets/add_prod.png?7028",
            "alt" : "My image"
          },
          "fulfillment_service" : "my-own-fulfillment-service",
          "weight" : 500,
          "line_weight" : 500,
          "price" : 129.0,
          "price_excluding_tax" : 129.0,
          "line_price" : 129.0,
          "line_price_excluding_tax" : 129.0,
          "sku" : "XK3334L",
          "inventory_location" : "D6",
          "taxable" : true,
          "requires_shipping" : true,
          "tax_lines" : {
            "test" : "123123123123"
          },
          "title" : "T-shirt with flames - XL / Red / Striped",
          "properties" : "object"
        } ],
        "line_items_price" : 129.0,
        "line_items_price_excluding_tax" : 0.0,
        "line_items_tax_lines" : {
          "test" : "123123123123"
        },
        "transactions" : [ {
          "id" : 123,
          "kind" : "capture",
          "created_at" : "2016-05-01 22:00:01",
          "success" : true,
          "ip" : "127.0.0.1",
          "card_type" : "Visa",
          "card_number" : "XXXX XXXX XXXX 2134",
          "message" : "Capture Successful",
          "amount" : 129.0,
          "test" : false,
          "currency" : "SEK",
          "receipt" : "KK34742D",
          "gateway_title" : "Stripe",
          "gateway_id" : 345
        } ],
        "refunds" : [ {
          "id" : 123,
          "kind" : "capture",
          "created_at" : "2016-05-01 22:00:01",
          "success" : true,
          "ip" : "127.0.0.1",
          "card_type" : "Visa",
          "card_number" : "XXXX XXXX XXXX 2134",
          "message" : "Capture Successful",
          "amount" : 129.0,
          "test" : false,
          "currency" : "SEK",
          "receipt" : "KK34742D",
          "gateway_title" : "Stripe",
          "gateway_id" : 345
        } ],
        "fulfillments" : [ {
          "id" : 123,
          "order_id" : 4364,
          "created_at" : "2016-05-01 22:00:01",
          "status" : "success",
          "fulfillment_service" : {
            "id" : 123,
            "name" : "My own fulfillment service",
            "handle" : "my-own-fulfillment-service",
            "inventory_management" : true,
            "tracking_support" : true,
            "requires_shipping_method" : true,
            "return_handling" : true,
            "include_pending_stock" : true,
            "credential1" : "user@domain.com",
            "callback_url" : "https://www.my-app.com/fulfillment_service.php",
            "provider_id" : 3,
            "email" : "user@domain.com",
            "created_at" : "2016-05-01 22:00:01"
          },
          "fulfillment_service_receipt" : "GS3242",
          "line_items" : [ {
            "id" : 123,
            "variant_id" : 34534,
            "product_id" : 24221,
            "quantity" : 1,
            "available_quantity" : 20,
            "product_title" : "T-shirt with flames",
            "variant_title" : "XL / Red / Striped",
            "fulfillable_quantity" : 1,
            "fulfilled_quantity" : 0,
            "refunded_quantity" : 0,
            "featured_image" : {
              "id" : 981,
              "src" : "//cdn.pandacommerce.net/templates/1/1/template/983/assets/add_prod.png?7028",
              "alt" : "My image"
            },
            "fulfillment_service" : "my-own-fulfillment-service",
            "weight" : 500,
            "line_weight" : 500,
            "price" : 129.0,
            "price_excluding_tax" : 129.0,
            "line_price" : 129.0,
            "line_price_excluding_tax" : 129.0,
            "sku" : "XK3334L",
            "inventory_location" : "D6",
            "taxable" : true,
            "requires_shipping" : true,
            "tax_lines" : {
              "test" : "123123123123"
            },
            "title" : "T-shirt with flames - XL / Red / Striped",
            "properties" : "object"
          } ],
          "tracking_number" : "SE349329492P",
          "tracking_company" : "Standard Post",
          "tracking_company_id" : 232,
          "tracking_url" : "http://www.postcompany.com/?trackid=SE349329492P"
        } ],
        "note" : "Notes about order",
        "attributes" : "object",
        "referring_site" : "http://www.google.com",
        "landing_site" : "http://store.pandacommerce.net/?ref=myblog",
        "landing_site_ref" : "myblog",
        "cancelled" : false,
        "cancelled_at" : "2016-05-01 22:00:01",
        "cancel_reason" : "other",
        "refunded_amount" : 0.0,
        "discount_code" : "DISCOUNT20",
        "tags" : [ "string" ],
        "currency" : "SEK",
        "customer" : "...",
        "url" : "https://checkout.pandacommerce.net/order/b65673d761d01a8366d5a1a01e483e7b",
        "checkout_url" : "https://checkout.pandacommerce.net/complete/b65673d761d01a8366d5a1a01e483e7b",
        "customer_url" : "https://store.pandacommerce.net/account/order/34543",
        "open" : true
      } ],
      "last_order" : {
        "id" : 34543,
        "name" : "#100033",
        "metafields" : "object",
        "order_number" : 33,
        "hash" : "b65673d761d01a8366d5a1a01e483e7b",
        "email" : "customer@domain.com",
        "created_at" : "2016-05-01 22:00:01",
        "updated_at" : "2016-05-01 22:00:01",
        "payment" : {
          "id" : 123,
          "kind" : "capture",
          "created_at" : "2016-05-01 22:00:01",
          "success" : true,
          "ip" : "127.0.0.1",
          "card_type" : "Visa",
          "card_number" : "XXXX XXXX XXXX 2134",
          "message" : "Capture Successful",
          "amount" : 129.0,
          "test" : false,
          "currency" : "SEK",
          "receipt" : "KK34742D",
          "gateway_title" : "Stripe",
          "gateway_id" : 345
        },
        "payment_price" : 0.0,
        "payment_price_excluding_tax" : 0.0,
        "payment_tax_lines" : {
          "test" : "123123123123"
        },
        "tax_lines" : {
          "test" : "123123123123"
        },
        "tax_price" : 25.8,
        "shop_id" : 23424,
        "shop_name" : "My T-shirt store",
        "subtotal_price" : 129.0,
        "total_weight" : 500,
        "total_price" : 129.0,
        "gateway" : "Stripe",
        "financial_status" : "paid",
        "fulfillment_status" : "unfulfilled",
        "requires_shipping" : true,
        "shipping_price" : 0.0,
        "shipping_price_excluding_tax" : 0.0,
        "shipping_tax_lines" : {
          "test" : "123123123123"
        },
        "shipping_methods" : [ "object" ],
        "shipping_address" : {
          "id" : 543,
          "name" : "Richard Benson",
          "first_name" : "Benson",
          "last_name" : "Benson",
          "street" : "Street 1 apt5",
          "address1" : "Street 1",
          "address2" : "apt5",
          "company" : "Acme Ltd",
          "city" : "Stockholm",
          "phone" : "+467348583493",
          "zip" : "12345",
          "province" : "",
          "country" : "SE",
          "province_code" : "",
          "country_code" : "SE"
        },
        "billing_address" : {
          "id" : 543,
          "name" : "Richard Benson",
          "first_name" : "Benson",
          "last_name" : "Benson",
          "street" : "Street 1 apt5",
          "address1" : "Street 1",
          "address2" : "apt5",
          "company" : "Acme Ltd",
          "city" : "Stockholm",
          "phone" : "+467348583493",
          "zip" : "12345",
          "province" : "",
          "country" : "SE",
          "province_code" : "",
          "country_code" : "SE"
        },
        "line_items" : [ {
          "id" : 123,
          "variant_id" : 34534,
          "product_id" : 24221,
          "quantity" : 1,
          "available_quantity" : 20,
          "product_title" : "T-shirt with flames",
          "variant_title" : "XL / Red / Striped",
          "fulfillable_quantity" : 1,
          "fulfilled_quantity" : 0,
          "refunded_quantity" : 0,
          "featured_image" : {
            "id" : 981,
            "src" : "//cdn.pandacommerce.net/templates/1/1/template/983/assets/add_prod.png?7028",
            "alt" : "My image"
          },
          "fulfillment_service" : "my-own-fulfillment-service",
          "weight" : 500,
          "line_weight" : 500,
          "price" : 129.0,
          "price_excluding_tax" : 129.0,
          "line_price" : 129.0,
          "line_price_excluding_tax" : 129.0,
          "sku" : "XK3334L",
          "inventory_location" : "D6",
          "taxable" : true,
          "requires_shipping" : true,
          "tax_lines" : {
            "test" : "123123123123"
          },
          "title" : "T-shirt with flames - XL / Red / Striped",
          "properties" : "object"
        } ],
        "line_items_price" : 129.0,
        "line_items_price_excluding_tax" : 0.0,
        "line_items_tax_lines" : {
          "test" : "123123123123"
        },
        "transactions" : [ {
          "id" : 123,
          "kind" : "capture",
          "created_at" : "2016-05-01 22:00:01",
          "success" : true,
          "ip" : "127.0.0.1",
          "card_type" : "Visa",
          "card_number" : "XXXX XXXX XXXX 2134",
          "message" : "Capture Successful",
          "amount" : 129.0,
          "test" : false,
          "currency" : "SEK",
          "receipt" : "KK34742D",
          "gateway_title" : "Stripe",
          "gateway_id" : 345
        } ],
        "refunds" : [ {
          "id" : 123,
          "kind" : "capture",
          "created_at" : "2016-05-01 22:00:01",
          "success" : true,
          "ip" : "127.0.0.1",
          "card_type" : "Visa",
          "card_number" : "XXXX XXXX XXXX 2134",
          "message" : "Capture Successful",
          "amount" : 129.0,
          "test" : false,
          "currency" : "SEK",
          "receipt" : "KK34742D",
          "gateway_title" : "Stripe",
          "gateway_id" : 345
        } ],
        "fulfillments" : [ {
          "id" : 123,
          "order_id" : 4364,
          "created_at" : "2016-05-01 22:00:01",
          "status" : "success",
          "fulfillment_service" : {
            "id" : 123,
            "name" : "My own fulfillment service",
            "handle" : "my-own-fulfillment-service",
            "inventory_management" : true,
            "tracking_support" : true,
            "requires_shipping_method" : true,
            "return_handling" : true,
            "include_pending_stock" : true,
            "credential1" : "user@domain.com",
            "callback_url" : "https://www.my-app.com/fulfillment_service.php",
            "provider_id" : 3,
            "email" : "user@domain.com",
            "created_at" : "2016-05-01 22:00:01"
          },
          "fulfillment_service_receipt" : "GS3242",
          "line_items" : [ {
            "id" : 123,
            "variant_id" : 34534,
            "product_id" : 24221,
            "quantity" : 1,
            "available_quantity" : 20,
            "product_title" : "T-shirt with flames",
            "variant_title" : "XL / Red / Striped",
            "fulfillable_quantity" : 1,
            "fulfilled_quantity" : 0,
            "refunded_quantity" : 0,
            "featured_image" : {
              "id" : 981,
              "src" : "//cdn.pandacommerce.net/templates/1/1/template/983/assets/add_prod.png?7028",
              "alt" : "My image"
            },
            "fulfillment_service" : "my-own-fulfillment-service",
            "weight" : 500,
            "line_weight" : 500,
            "price" : 129.0,
            "price_excluding_tax" : 129.0,
            "line_price" : 129.0,
            "line_price_excluding_tax" : 129.0,
            "sku" : "XK3334L",
            "inventory_location" : "D6",
            "taxable" : true,
            "requires_shipping" : true,
            "tax_lines" : {
              "test" : "123123123123"
            },
            "title" : "T-shirt with flames - XL / Red / Striped",
            "properties" : "object"
          } ],
          "tracking_number" : "SE349329492P",
          "tracking_company" : "Standard Post",
          "tracking_company_id" : 232,
          "tracking_url" : "http://www.postcompany.com/?trackid=SE349329492P"
        } ],
        "note" : "Notes about order",
        "attributes" : "object",
        "referring_site" : "http://www.google.com",
        "landing_site" : "http://store.pandacommerce.net/?ref=myblog",
        "landing_site_ref" : "myblog",
        "cancelled" : false,
        "cancelled_at" : "2016-05-01 22:00:01",
        "cancel_reason" : "other",
        "refunded_amount" : 0.0,
        "discount_code" : "DISCOUNT20",
        "tags" : [ "string" ],
        "currency" : "SEK",
        "customer" : "...",
        "url" : "https://checkout.pandacommerce.net/order/b65673d761d01a8366d5a1a01e483e7b",
        "checkout_url" : "https://checkout.pandacommerce.net/complete/b65673d761d01a8366d5a1a01e483e7b",
        "customer_url" : "https://store.pandacommerce.net/account/order/34543",
        "open" : true
      },
      "addresses" : [ {
        "id" : 543,
        "name" : "Richard Benson",
        "first_name" : "Benson",
        "last_name" : "Benson",
        "street" : "Street 1 apt5",
        "address1" : "Street 1",
        "address2" : "apt5",
        "company" : "Acme Ltd",
        "city" : "Stockholm",
        "phone" : "+467348583493",
        "zip" : "12345",
        "province" : "",
        "country" : "SE",
        "province_code" : "",
        "country_code" : "SE"
      } ],
      "default_address" : {
        "id" : 543,
        "name" : "Richard Benson",
        "first_name" : "Benson",
        "last_name" : "Benson",
        "street" : "Street 1 apt5",
        "address1" : "Street 1",
        "address2" : "apt5",
        "company" : "Acme Ltd",
        "city" : "Stockholm",
        "phone" : "+467348583493",
        "zip" : "12345",
        "province" : "",
        "country" : "SE",
        "province_code" : "",
        "country_code" : "SE"
      },
      "addresses_option_tags" : "<option.....>Richard Benson, SE</option>",
      "reset_password_url" : "https://store.pandacommerce.net/account/reset/2938809835f3135a3ea8ba30b104154b",
      "account_activation_url" : "https://store.pandacommerce.net/account/activate/2938809835f3135a3ea8ba30b104154b"
    },
    "url" : "https://checkout.pandacommerce.net/order/b65673d761d01a8366d5a1a01e483e7b",
    "checkout_url" : "https://checkout.pandacommerce.net/complete/b65673d761d01a8366d5a1a01e483e7b",
    "customer_url" : "https://store.pandacommerce.net/account/order/34543",
    "open" : true
  } ],
  "last_order" : {
    "id" : 34543,
    "name" : "#100033",
    "metafields" : "object",
    "order_number" : 33,
    "hash" : "b65673d761d01a8366d5a1a01e483e7b",
    "email" : "customer@domain.com",
    "created_at" : "2016-05-01 22:00:01",
    "updated_at" : "2016-05-01 22:00:01",
    "payment" : {
      "id" : 123,
      "kind" : "capture",
      "created_at" : "2016-05-01 22:00:01",
      "success" : true,
      "ip" : "127.0.0.1",
      "card_type" : "Visa",
      "card_number" : "XXXX XXXX XXXX 2134",
      "message" : "Capture Successful",
      "amount" : 129.0,
      "test" : false,
      "currency" : "SEK",
      "receipt" : "KK34742D",
      "gateway_title" : "Stripe",
      "gateway_id" : 345
    },
    "payment_price" : 0.0,
    "payment_price_excluding_tax" : 0.0,
    "payment_tax_lines" : {
      "test" : "123123123123"
    },
    "tax_lines" : {
      "test" : "123123123123"
    },
    "tax_price" : 25.8,
    "shop_id" : 23424,
    "shop_name" : "My T-shirt store",
    "subtotal_price" : 129.0,
    "total_weight" : 500,
    "total_price" : 129.0,
    "gateway" : "Stripe",
    "financial_status" : "paid",
    "fulfillment_status" : "unfulfilled",
    "requires_shipping" : true,
    "shipping_price" : 0.0,
    "shipping_price_excluding_tax" : 0.0,
    "shipping_tax_lines" : {
      "test" : "123123123123"
    },
    "shipping_methods" : [ "object" ],
    "shipping_address" : {
      "id" : 543,
      "name" : "Richard Benson",
      "first_name" : "Benson",
      "last_name" : "Benson",
      "street" : "Street 1 apt5",
      "address1" : "Street 1",
      "address2" : "apt5",
      "company" : "Acme Ltd",
      "city" : "Stockholm",
      "phone" : "+467348583493",
      "zip" : "12345",
      "province" : "",
      "country" : "SE",
      "province_code" : "",
      "country_code" : "SE"
    },
    "billing_address" : {
      "id" : 543,
      "name" : "Richard Benson",
      "first_name" : "Benson",
      "last_name" : "Benson",
      "street" : "Street 1 apt5",
      "address1" : "Street 1",
      "address2" : "apt5",
      "company" : "Acme Ltd",
      "city" : "Stockholm",
      "phone" : "+467348583493",
      "zip" : "12345",
      "province" : "",
      "country" : "SE",
      "province_code" : "",
      "country_code" : "SE"
    },
    "line_items" : [ {
      "id" : 123,
      "variant_id" : 34534,
      "product_id" : 24221,
      "quantity" : 1,
      "available_quantity" : 20,
      "product_title" : "T-shirt with flames",
      "variant_title" : "XL / Red / Striped",
      "fulfillable_quantity" : 1,
      "fulfilled_quantity" : 0,
      "refunded_quantity" : 0,
      "featured_image" : {
        "id" : 981,
        "src" : "//cdn.pandacommerce.net/templates/1/1/template/983/assets/add_prod.png?7028",
        "alt" : "My image"
      },
      "fulfillment_service" : "my-own-fulfillment-service",
      "weight" : 500,
      "line_weight" : 500,
      "price" : 129.0,
      "price_excluding_tax" : 129.0,
      "line_price" : 129.0,
      "line_price_excluding_tax" : 129.0,
      "sku" : "XK3334L",
      "inventory_location" : "D6",
      "taxable" : true,
      "requires_shipping" : true,
      "tax_lines" : {
        "test" : "123123123123"
      },
      "title" : "T-shirt with flames - XL / Red / Striped",
      "properties" : "object"
    } ],
    "line_items_price" : 129.0,
    "line_items_price_excluding_tax" : 0.0,
    "line_items_tax_lines" : {
      "test" : "123123123123"
    },
    "transactions" : [ {
      "id" : 123,
      "kind" : "capture",
      "created_at" : "2016-05-01 22:00:01",
      "success" : true,
      "ip" : "127.0.0.1",
      "card_type" : "Visa",
      "card_number" : "XXXX XXXX XXXX 2134",
      "message" : "Capture Successful",
      "amount" : 129.0,
      "test" : false,
      "currency" : "SEK",
      "receipt" : "KK34742D",
      "gateway_title" : "Stripe",
      "gateway_id" : 345
    } ],
    "refunds" : [ {
      "id" : 123,
      "kind" : "capture",
      "created_at" : "2016-05-01 22:00:01",
      "success" : true,
      "ip" : "127.0.0.1",
      "card_type" : "Visa",
      "card_number" : "XXXX XXXX XXXX 2134",
      "message" : "Capture Successful",
      "amount" : 129.0,
      "test" : false,
      "currency" : "SEK",
      "receipt" : "KK34742D",
      "gateway_title" : "Stripe",
      "gateway_id" : 345
    } ],
    "fulfillments" : [ {
      "id" : 123,
      "order_id" : 4364,
      "created_at" : "2016-05-01 22:00:01",
      "status" : "success",
      "fulfillment_service" : {
        "id" : 123,
        "name" : "My own fulfillment service",
        "handle" : "my-own-fulfillment-service",
        "inventory_management" : true,
        "tracking_support" : true,
        "requires_shipping_method" : true,
        "return_handling" : true,
        "include_pending_stock" : true,
        "credential1" : "user@domain.com",
        "callback_url" : "https://www.my-app.com/fulfillment_service.php",
        "provider_id" : 3,
        "email" : "user@domain.com",
        "created_at" : "2016-05-01 22:00:01"
      },
      "fulfillment_service_receipt" : "GS3242",
      "line_items" : [ {
        "id" : 123,
        "variant_id" : 34534,
        "product_id" : 24221,
        "quantity" : 1,
        "available_quantity" : 20,
        "product_title" : "T-shirt with flames",
        "variant_title" : "XL / Red / Striped",
        "fulfillable_quantity" : 1,
        "fulfilled_quantity" : 0,
        "refunded_quantity" : 0,
        "featured_image" : {
          "id" : 981,
          "src" : "//cdn.pandacommerce.net/templates/1/1/template/983/assets/add_prod.png?7028",
          "alt" : "My image"
        },
        "fulfillment_service" : "my-own-fulfillment-service",
        "weight" : 500,
        "line_weight" : 500,
        "price" : 129.0,
        "price_excluding_tax" : 129.0,
        "line_price" : 129.0,
        "line_price_excluding_tax" : 129.0,
        "sku" : "XK3334L",
        "inventory_location" : "D6",
        "taxable" : true,
        "requires_shipping" : true,
        "tax_lines" : {
          "test" : "123123123123"
        },
        "title" : "T-shirt with flames - XL / Red / Striped",
        "properties" : "object"
      } ],
      "tracking_number" : "SE349329492P",
      "tracking_company" : "Standard Post",
      "tracking_company_id" : 232,
      "tracking_url" : "http://www.postcompany.com/?trackid=SE349329492P"
    } ],
    "note" : "Notes about order",
    "attributes" : "object",
    "referring_site" : "http://www.google.com",
    "landing_site" : "http://store.pandacommerce.net/?ref=myblog",
    "landing_site_ref" : "myblog",
    "cancelled" : false,
    "cancelled_at" : "2016-05-01 22:00:01",
    "cancel_reason" : "other",
    "refunded_amount" : 0.0,
    "discount_code" : "DISCOUNT20",
    "tags" : [ "string" ],
    "currency" : "SEK",
    "customer" : "...",
    "url" : "https://checkout.pandacommerce.net/order/b65673d761d01a8366d5a1a01e483e7b",
    "checkout_url" : "https://checkout.pandacommerce.net/complete/b65673d761d01a8366d5a1a01e483e7b",
    "customer_url" : "https://store.pandacommerce.net/account/order/34543",
    "open" : true
  },
  "addresses" : [ {
    "id" : 543,
    "name" : "Richard Benson",
    "first_name" : "Benson",
    "last_name" : "Benson",
    "street" : "Street 1 apt5",
    "address1" : "Street 1",
    "address2" : "apt5",
    "company" : "Acme Ltd",
    "city" : "Stockholm",
    "phone" : "+467348583493",
    "zip" : "12345",
    "province" : "",
    "country" : "SE",
    "province_code" : "",
    "country_code" : "SE"
  } ],
  "default_address" : {
    "id" : 543,
    "name" : "Richard Benson",
    "first_name" : "Benson",
    "last_name" : "Benson",
    "street" : "Street 1 apt5",
    "address1" : "Street 1",
    "address2" : "apt5",
    "company" : "Acme Ltd",
    "city" : "Stockholm",
    "phone" : "+467348583493",
    "zip" : "12345",
    "province" : "",
    "country" : "SE",
    "province_code" : "",
    "country_code" : "SE"
  },
  "addresses_option_tags" : "<option.....>Richard Benson, SE</option>",
  "reset_password_url" : "https://store.pandacommerce.net/account/reset/2938809835f3135a3ea8ba30b104154b",
  "account_activation_url" : "https://store.pandacommerce.net/account/activate/2938809835f3135a3ea8ba30b104154b"
}
Response default
{
  "errors" : "object"
}

PUT /customers/{id}.json

Description

Edits an customer based on a single ID

Parameters
Type Name Description Schema

Path

id
required

ID of customer to edit

integer

Body

customer
required

Customer to create in store

Customer

Responses
HTTP Code Description Schema

200

customer response

Customer

default

unexpected error

ErrorModel

Produces
  • application/json

Security
Type Name Scopes

oauth2

oauth2

write_orders,read_customers

basic

basic_auth

Example HTTP request
Request path
"/customers/0.json"
Request body
{
  "id" : 9348,
  "shop_id" : 23424,
  "shop_name" : "My T-shirt store",
  "email" : "customer@domain.com",
  "metafields" : "object",
  "status" : "enabled",
  "name" : "Richard Benson",
  "first_name" : "Richard",
  "last_name" : "Benson",
  "company" : "Acme Ltd",
  "note" : "Notes about customer",
  "tags" : [ "string" ],
  "accepts_marketing" : true,
  "total_spent" : 129.0,
  "addresses_count" : 1,
  "orders_count" : 1,
  "orders" : [ {
    "id" : 34543,
    "name" : "#100033",
    "metafields" : "object",
    "order_number" : 33,
    "hash" : "b65673d761d01a8366d5a1a01e483e7b",
    "email" : "customer@domain.com",
    "created_at" : "2016-05-01 22:00:01",
    "updated_at" : "2016-05-01 22:00:01",
    "payment" : {
      "id" : 123,
      "kind" : "capture",
      "created_at" : "2016-05-01 22:00:01",
      "success" : true,
      "ip" : "127.0.0.1",
      "card_type" : "Visa",
      "card_number" : "XXXX XXXX XXXX 2134",
      "message" : "Capture Successful",
      "amount" : 129.0,
      "test" : false,
      "currency" : "SEK",
      "receipt" : "KK34742D",
      "gateway_title" : "Stripe",
      "gateway_id" : 345
    },
    "payment_price" : 0.0,
    "payment_price_excluding_tax" : 0.0,
    "payment_tax_lines" : {
      "test" : "123123123123"
    },
    "tax_lines" : {
      "test" : "123123123123"
    },
    "tax_price" : 25.8,
    "shop_id" : 23424,
    "shop_name" : "My T-shirt store",
    "subtotal_price" : 129.0,
    "total_weight" : 500,
    "total_price" : 129.0,
    "gateway" : "Stripe",
    "financial_status" : "paid",
    "fulfillment_status" : "unfulfilled",
    "requires_shipping" : true,
    "shipping_price" : 0.0,
    "shipping_price_excluding_tax" : 0.0,
    "shipping_tax_lines" : {
      "test" : "123123123123"
    },
    "shipping_methods" : [ "object" ],
    "shipping_address" : {
      "id" : 543,
      "name" : "Richard Benson",
      "first_name" : "Benson",
      "last_name" : "Benson",
      "street" : "Street 1 apt5",
      "address1" : "Street 1",
      "address2" : "apt5",
      "company" : "Acme Ltd",
      "city" : "Stockholm",
      "phone" : "+467348583493",
      "zip" : "12345",
      "province" : "",
      "country" : "SE",
      "province_code" : "",
      "country_code" : "SE"
    },
    "billing_address" : {
      "id" : 543,
      "name" : "Richard Benson",
      "first_name" : "Benson",
      "last_name" : "Benson",
      "street" : "Street 1 apt5",
      "address1" : "Street 1",
      "address2" : "apt5",
      "company" : "Acme Ltd",
      "city" : "Stockholm",
      "phone" : "+467348583493",
      "zip" : "12345",
      "province" : "",
      "country" : "SE",
      "province_code" : "",
      "country_code" : "SE"
    },
    "line_items" : [ {
      "id" : 123,
      "variant_id" : 34534,
      "product_id" : 24221,
      "quantity" : 1,
      "available_quantity" : 20,
      "product_title" : "T-shirt with flames",
      "variant_title" : "XL / Red / Striped",
      "fulfillable_quantity" : 1,
      "fulfilled_quantity" : 0,
      "refunded_quantity" : 0,
      "featured_image" : {
        "id" : 981,
        "src" : "//cdn.pandacommerce.net/templates/1/1/template/983/assets/add_prod.png?7028",
        "alt" : "My image"
      },
      "fulfillment_service" : "my-own-fulfillment-service",
      "weight" : 500,
      "line_weight" : 500,
      "price" : 129.0,
      "price_excluding_tax" : 129.0,
      "line_price" : 129.0,
      "line_price_excluding_tax" : 129.0,
      "sku" : "XK3334L",
      "inventory_location" : "D6",
      "taxable" : true,
      "requires_shipping" : true,
      "tax_lines" : {
        "test" : "123123123123"
      },
      "title" : "T-shirt with flames - XL / Red / Striped",
      "properties" : "object"
    } ],
    "line_items_price" : 129.0,
    "line_items_price_excluding_tax" : 0.0,
    "line_items_tax_lines" : {
      "test" : "123123123123"
    },
    "transactions" : [ {
      "id" : 123,
      "kind" : "capture",
      "created_at" : "2016-05-01 22:00:01",
      "success" : true,
      "ip" : "127.0.0.1",
      "card_type" : "Visa",
      "card_number" : "XXXX XXXX XXXX 2134",
      "message" : "Capture Successful",
      "amount" : 129.0,
      "test" : false,
      "currency" : "SEK",
      "receipt" : "KK34742D",
      "gateway_title" : "Stripe",
      "gateway_id" : 345
    } ],
    "refunds" : [ {
      "id" : 123,
      "kind" : "capture",
      "created_at" : "2016-05-01 22:00:01",
      "success" : true,
      "ip" : "127.0.0.1",
      "card_type" : "Visa",
      "card_number" : "XXXX XXXX XXXX 2134",
      "message" : "Capture Successful",
      "amount" : 129.0,
      "test" : false,
      "currency" : "SEK",
      "receipt" : "KK34742D",
      "gateway_title" : "Stripe",
      "gateway_id" : 345
    } ],
    "fulfillments" : [ {
      "id" : 123,
      "order_id" : 4364,
      "created_at" : "2016-05-01 22:00:01",
      "status" : "success",
      "fulfillment_service" : {
        "id" : 123,
        "name" : "My own fulfillment service",
        "handle" : "my-own-fulfillment-service",
        "inventory_management" : true,
        "tracking_support" : true,
        "requires_shipping_method" : true,
        "return_handling" : true,
        "include_pending_stock" : true,
        "credential1" : "user@domain.com",
        "callback_url" : "https://www.my-app.com/fulfillment_service.php",
        "provider_id" : 3,
        "email" : "user@domain.com",
        "created_at" : "2016-05-01 22:00:01"
      },
      "fulfillment_service_receipt" : "GS3242",
      "line_items" : [ {
        "id" : 123,
        "variant_id" : 34534,
        "product_id" : 24221,
        "quantity" : 1,
        "available_quantity" : 20,
        "product_title" : "T-shirt with flames",
        "variant_title" : "XL / Red / Striped",
        "fulfillable_quantity" : 1,
        "fulfilled_quantity" : 0,
        "refunded_quantity" : 0,
        "featured_image" : {
          "id" : 981,
          "src" : "//cdn.pandacommerce.net/templates/1/1/template/983/assets/add_prod.png?7028",
          "alt" : "My image"
        },
        "fulfillment_service" : "my-own-fulfillment-service",
        "weight" : 500,
        "line_weight" : 500,
        "price" : 129.0,
        "price_excluding_tax" : 129.0,
        "line_price" : 129.0,
        "line_price_excluding_tax" : 129.0,
        "sku" : "XK3334L",
        "inventory_location" : "D6",
        "taxable" : true,
        "requires_shipping" : true,
        "tax_lines" : {
          "test" : "123123123123"
        },
        "title" : "T-shirt with flames - XL / Red / Striped",
        "properties" : "object"
      } ],
      "tracking_number" : "SE349329492P",
      "tracking_company" : "Standard Post",
      "tracking_company_id" : 232,
      "tracking_url" : "http://www.postcompany.com/?trackid=SE349329492P"
    } ],
    "note" : "Notes about order",
    "attributes" : "object",
    "referring_site" : "http://www.google.com",
    "landing_site" : "http://store.pandacommerce.net/?ref=myblog",
    "landing_site_ref" : "myblog",
    "cancelled" : false,
    "cancelled_at" : "2016-05-01 22:00:01",
    "cancel_reason" : "other",
    "refunded_amount" : 0.0,
    "discount_code" : "DISCOUNT20",
    "tags" : [ "string" ],
    "currency" : "SEK",
    "customer" : {
      "id" : 9348,
      "shop_id" : 23424,
      "shop_name" : "My T-shirt store",
      "email" : "customer@domain.com",
      "metafields" : "object",
      "status" : "enabled",
      "name" : "Richard Benson",
      "first_name" : "Richard",
      "last_name" : "Benson",
      "company" : "Acme Ltd",
      "note" : "Notes about customer",
      "tags" : [ "string" ],
      "accepts_marketing" : true,
      "total_spent" : 129.0,
      "addresses_count" : 1,
      "orders_count" : 1,
      "orders" : [ {
        "id" : 34543,
        "name" : "#100033",
        "metafields" : "object",
        "order_number" : 33,
        "hash" : "b65673d761d01a8366d5a1a01e483e7b",
        "email" : "customer@domain.com",
        "created_at" : "2016-05-01 22:00:01",
        "updated_at" : "2016-05-01 22:00:01",
        "payment" : {
          "id" : 123,
          "kind" : "capture",
          "created_at" : "2016-05-01 22:00:01",
          "success" : true,
          "ip" : "127.0.0.1",
          "card_type" : "Visa",
          "card_number" : "XXXX XXXX XXXX 2134",
          "message" : "Capture Successful",
          "amount" : 129.0,
          "test" : false,
          "currency" : "SEK",
          "receipt" : "KK34742D",
          "gateway_title" : "Stripe",
          "gateway_id" : 345
        },
        "payment_price" : 0.0,
        "payment_price_excluding_tax" : 0.0,
        "payment_tax_lines" : {
          "test" : "123123123123"
        },
        "tax_lines" : {
          "test" : "123123123123"
        },
        "tax_price" : 25.8,
        "shop_id" : 23424,
        "shop_name" : "My T-shirt store",
        "subtotal_price" : 129.0,
        "total_weight" : 500,
        "total_price" : 129.0,
        "gateway" : "Stripe",
        "financial_status" : "paid",
        "fulfillment_status" : "unfulfilled",
        "requires_shipping" : true,
        "shipping_price" : 0.0,
        "shipping_price_excluding_tax" : 0.0,
        "shipping_tax_lines" : {
          "test" : "123123123123"
        },
        "shipping_methods" : [ "object" ],
        "shipping_address" : {
          "id" : 543,
          "name" : "Richard Benson",
          "first_name" : "Benson",
          "last_name" : "Benson",
          "street" : "Street 1 apt5",
          "address1" : "Street 1",
          "address2" : "apt5",
          "company" : "Acme Ltd",
          "city" : "Stockholm",
          "phone" : "+467348583493",
          "zip" : "12345",
          "province" : "",
          "country" : "SE",
          "province_code" : "",
          "country_code" : "SE"
        },
        "billing_address" : {
          "id" : 543,
          "name" : "Richard Benson",
          "first_name" : "Benson",
          "last_name" : "Benson",
          "street" : "Street 1 apt5",
          "address1" : "Street 1",
          "address2" : "apt5",
          "company" : "Acme Ltd",
          "city" : "Stockholm",
          "phone" : "+467348583493",
          "zip" : "12345",
          "province" : "",
          "country" : "SE",
          "province_code" : "",
          "country_code" : "SE"
        },
        "line_items" : [ {
          "id" : 123,
          "variant_id" : 34534,
          "product_id" : 24221,
          "quantity" : 1,
          "available_quantity" : 20,
          "product_title" : "T-shirt with flames",
          "variant_title" : "XL / Red / Striped",
          "fulfillable_quantity" : 1,
          "fulfilled_quantity" : 0,
          "refunded_quantity" : 0,
          "featured_image" : {
            "id" : 981,
            "src" : "//cdn.pandacommerce.net/templates/1/1/template/983/assets/add_prod.png?7028",
            "alt" : "My image"
          },
          "fulfillment_service" : "my-own-fulfillment-service",
          "weight" : 500,
          "line_weight" : 500,
          "price" : 129.0,
          "price_excluding_tax" : 129.0,
          "line_price" : 129.0,
          "line_price_excluding_tax" : 129.0,
          "sku" : "XK3334L",
          "inventory_location" : "D6",
          "taxable" : true,
          "requires_shipping" : true,
          "tax_lines" : {
            "test" : "123123123123"
          },
          "title" : "T-shirt with flames - XL / Red / Striped",
          "properties" : "object"
        } ],
        "line_items_price" : 129.0,
        "line_items_price_excluding_tax" : 0.0,
        "line_items_tax_lines" : {
          "test" : "123123123123"
        },
        "transactions" : [ {
          "id" : 123,
          "kind" : "capture",
          "created_at" : "2016-05-01 22:00:01",
          "success" : true,
          "ip" : "127.0.0.1",
          "card_type" : "Visa",
          "card_number" : "XXXX XXXX XXXX 2134",
          "message" : "Capture Successful",
          "amount" : 129.0,
          "test" : false,
          "currency" : "SEK",
          "receipt" : "KK34742D",
          "gateway_title" : "Stripe",
          "gateway_id" : 345
        } ],
        "refunds" : [ {
          "id" : 123,
          "kind" : "capture",
          "created_at" : "2016-05-01 22:00:01",
          "success" : true,
          "ip" : "127.0.0.1",
          "card_type" : "Visa",
          "card_number" : "XXXX XXXX XXXX 2134",
          "message" : "Capture Successful",
          "amount" : 129.0,
          "test" : false,
          "currency" : "SEK",
          "receipt" : "KK34742D",
          "gateway_title" : "Stripe",
          "gateway_id" : 345
        } ],
        "fulfillments" : [ {
          "id" : 123,
          "order_id" : 4364,
          "created_at" : "2016-05-01 22:00:01",
          "status" : "success",
          "fulfillment_service" : {
            "id" : 123,
            "name" : "My own fulfillment service",
            "handle" : "my-own-fulfillment-service",
            "inventory_management" : true,
            "tracking_support" : true,
            "requires_shipping_method" : true,
            "return_handling" : true,
            "include_pending_stock" : true,
            "credential1" : "user@domain.com",
            "callback_url" : "https://www.my-app.com/fulfillment_service.php",
            "provider_id" : 3,
            "email" : "user@domain.com",
            "created_at" : "2016-05-01 22:00:01"
          },
          "fulfillment_service_receipt" : "GS3242",
          "line_items" : [ {
            "id" : 123,
            "variant_id" : 34534,
            "product_id" : 24221,
            "quantity" : 1,
            "available_quantity" : 20,
            "product_title" : "T-shirt with flames",
            "variant_title" : "XL / Red / Striped",
            "fulfillable_quantity" : 1,
            "fulfilled_quantity" : 0,
            "refunded_quantity" : 0,
            "featured_image" : {
              "id" : 981,
              "src" : "//cdn.pandacommerce.net/templates/1/1/template/983/assets/add_prod.png?7028",
              "alt" : "My image"
            },
            "fulfillment_service" : "my-own-fulfillment-service",
            "weight" : 500,
            "line_weight" : 500,
            "price" : 129.0,
            "price_excluding_tax" : 129.0,
            "line_price" : 129.0,
            "line_price_excluding_tax" : 129.0,
            "sku" : "XK3334L",
            "inventory_location" : "D6",
            "taxable" : true,
            "requires_shipping" : true,
            "tax_lines" : {
              "test" : "123123123123"
            },
            "title" : "T-shirt with flames - XL / Red / Striped",
            "properties" : "object"
          } ],
          "tracking_number" : "SE349329492P",
          "tracking_company" : "Standard Post",
          "tracking_company_id" : 232,
          "tracking_url" : "http://www.postcompany.com/?trackid=SE349329492P"
        } ],
        "note" : "Notes about order",
        "attributes" : "object",
        "referring_site" : "http://www.google.com",
        "landing_site" : "http://store.pandacommerce.net/?ref=myblog",
        "landing_site_ref" : "myblog",
        "cancelled" : false,
        "cancelled_at" : "2016-05-01 22:00:01",
        "cancel_reason" : "other",
        "refunded_amount" : 0.0,
        "discount_code" : "DISCOUNT20",
        "tags" : [ "string" ],
        "currency" : "SEK",
        "customer" : "...",
        "url" : "https://checkout.pandacommerce.net/order/b65673d761d01a8366d5a1a01e483e7b",
        "checkout_url" : "https://checkout.pandacommerce.net/complete/b65673d761d01a8366d5a1a01e483e7b",
        "customer_url" : "https://store.pandacommerce.net/account/order/34543",
        "open" : true
      } ],
      "last_order" : {
        "id" : 34543,
        "name" : "#100033",
        "metafields" : "object",
        "order_number" : 33,
        "hash" : "b65673d761d01a8366d5a1a01e483e7b",
        "email" : "customer@domain.com",
        "created_at" : "2016-05-01 22:00:01",
        "updated_at" : "2016-05-01 22:00:01",
        "payment" : {
          "id" : 123,
          "kind" : "capture",
          "created_at" : "2016-05-01 22:00:01",
          "success" : true,
          "ip" : "127.0.0.1",
          "card_type" : "Visa",
          "card_number" : "XXXX XXXX XXXX 2134",
          "message" : "Capture Successful",
          "amount" : 129.0,
          "test" : false,
          "currency" : "SEK",
          "receipt" : "KK34742D",
          "gateway_title" : "Stripe",
          "gateway_id" : 345
        },
        "payment_price" : 0.0,
        "payment_price_excluding_tax" : 0.0,
        "payment_tax_lines" : {
          "test" : "123123123123"
        },
        "tax_lines" : {
          "test" : "123123123123"
        },
        "tax_price" : 25.8,
        "shop_id" : 23424,
        "shop_name" : "My T-shirt store",
        "subtotal_price" : 129.0,
        "total_weight" : 500,
        "total_price" : 129.0,
        "gateway" : "Stripe",
        "financial_status" : "paid",
        "fulfillment_status" : "unfulfilled",
        "requires_shipping" : true,
        "shipping_price" : 0.0,
        "shipping_price_excluding_tax" : 0.0,
        "shipping_tax_lines" : {
          "test" : "123123123123"
        },
        "shipping_methods" : [ "object" ],
        "shipping_address" : {
          "id" : 543,
          "name" : "Richard Benson",
          "first_name" : "Benson",
          "last_name" : "Benson",
          "street" : "Street 1 apt5",
          "address1" : "Street 1",
          "address2" : "apt5",
          "company" : "Acme Ltd",
          "city" : "Stockholm",
          "phone" : "+467348583493",
          "zip" : "12345",
          "province" : "",
          "country" : "SE",
          "province_code" : "",
          "country_code" : "SE"
        },
        "billing_address" : {
          "id" : 543,
          "name" : "Richard Benson",
          "first_name" : "Benson",
          "last_name" : "Benson",
          "street" : "Street 1 apt5",
          "address1" : "Street 1",
          "address2" : "apt5",
          "company" : "Acme Ltd",
          "city" : "Stockholm",
          "phone" : "+467348583493",
          "zip" : "12345",
          "province" : "",
          "country" : "SE",
          "province_code" : "",
          "country_code" : "SE"
        },
        "line_items" : [ {
          "id" : 123,
          "variant_id" : 34534,
          "product_id" : 24221,
          "quantity" : 1,
          "available_quantity" : 20,
          "product_title" : "T-shirt with flames",
          "variant_title" : "XL / Red / Striped",
          "fulfillable_quantity" : 1,
          "fulfilled_quantity" : 0,
          "refunded_quantity" : 0,
          "featured_image" : {
            "id" : 981,
            "src" : "//cdn.pandacommerce.net/templates/1/1/template/983/assets/add_prod.png?7028",
            "alt" : "My image"
          },
          "fulfillment_service" : "my-own-fulfillment-service",
          "weight" : 500,
          "line_weight" : 500,
          "price" : 129.0,
          "price_excluding_tax" : 129.0,
          "line_price" : 129.0,
          "line_price_excluding_tax" : 129.0,
          "sku" : "XK3334L",
          "inventory_location" : "D6",
          "taxable" : true,
          "requires_shipping" : true,
          "tax_lines" : {
            "test" : "123123123123"
          },
          "title" : "T-shirt with flames - XL / Red / Striped",
          "properties" : "object"
        } ],
        "line_items_price" : 129.0,
        "line_items_price_excluding_tax" : 0.0,
        "line_items_tax_lines" : {
          "test" : "123123123123"
        },
        "transactions" : [ {
          "id" : 123,
          "kind" : "capture",
          "created_at" : "2016-05-01 22:00:01",
          "success" : true,
          "ip" : "127.0.0.1",
          "card_type" : "Visa",
          "card_number" : "XXXX XXXX XXXX 2134",
          "message" : "Capture Successful",
          "amount" : 129.0,
          "test" : false,
          "currency" : "SEK",
          "receipt" : "KK34742D",
          "gateway_title" : "Stripe",
          "gateway_id" : 345
        } ],
        "refunds" : [ {
          "id" : 123,
          "kind" : "capture",
          "created_at" : "2016-05-01 22:00:01",
          "success" : true,
          "ip" : "127.0.0.1",
          "card_type" : "Visa",
          "card_number" : "XXXX XXXX XXXX 2134",
          "message" : "Capture Successful",
          "amount" : 129.0,
          "test" : false,
          "currency" : "SEK",
          "receipt" : "KK34742D",
          "gateway_title" : "Stripe",
          "gateway_id" : 345
        } ],
        "fulfillments" : [ {
          "id" : 123,
          "order_id" : 4364,
          "created_at" : "2016-05-01 22:00:01",
          "status" : "success",
          "fulfillment_service" : {
            "id" : 123,
            "name" : "My own fulfillment service",
            "handle" : "my-own-fulfillment-service",
            "inventory_management" : true,
            "tracking_support" : true,
            "requires_shipping_method" : true,
            "return_handling" : true,
            "include_pending_stock" : true,
            "credential1" : "user@domain.com",
            "callback_url" : "https://www.my-app.com/fulfillment_service.php",
            "provider_id" : 3,
            "email" : "user@domain.com",
            "created_at" : "2016-05-01 22:00:01"
          },
          "fulfillment_service_receipt" : "GS3242",
          "line_items" : [ {
            "id" : 123,
            "variant_id" : 34534,
            "product_id" : 24221,
            "quantity" : 1,
            "available_quantity" : 20,
            "product_title" : "T-shirt with flames",
            "variant_title" : "XL / Red / Striped",
            "fulfillable_quantity" : 1,
            "fulfilled_quantity" : 0,
            "refunded_quantity" : 0,
            "featured_image" : {
              "id" : 981,
              "src" : "//cdn.pandacommerce.net/templates/1/1/template/983/assets/add_prod.png?7028",
              "alt" : "My image"
            },
            "fulfillment_service" : "my-own-fulfillment-service",
            "weight" : 500,
            "line_weight" : 500,
            "price" : 129.0,
            "price_excluding_tax" : 129.0,
            "line_price" : 129.0,
            "line_price_excluding_tax" : 129.0,
            "sku" : "XK3334L",
            "inventory_location" : "D6",
            "taxable" : true,
            "requires_shipping" : true,
            "tax_lines" : {
              "test" : "123123123123"
            },
            "title" : "T-shirt with flames - XL / Red / Striped",
            "properties" : "object"
          } ],
          "tracking_number" : "SE349329492P",
          "tracking_company" : "Standard Post",
          "tracking_company_id" : 232,
          "tracking_url" : "http://www.postcompany.com/?trackid=SE349329492P"
        } ],
        "note" : "Notes about order",
        "attributes" : "object",
        "referring_site" : "http://www.google.com",
        "landing_site" : "http://store.pandacommerce.net/?ref=myblog",
        "landing_site_ref" : "myblog",
        "cancelled" : false,
        "cancelled_at" : "2016-05-01 22:00:01",
        "cancel_reason" : "other",
        "refunded_amount" : 0.0,
        "discount_code" : "DISCOUNT20",
        "tags" : [ "string" ],
        "currency" : "SEK",
        "customer" : "...",
        "url" : "https://checkout.pandacommerce.net/order/b65673d761d01a8366d5a1a01e483e7b",
        "checkout_url" : "https://checkout.pandacommerce.net/complete/b65673d761d01a8366d5a1a01e483e7b",
        "customer_url" : "https://store.pandacommerce.net/account/order/34543",
        "open" : true
      },
      "addresses" : [ {
        "id" : 543,
        "name" : "Richard Benson",
        "first_name" : "Benson",
        "last_name" : "Benson",
        "street" : "Street 1 apt5",
        "address1" : "Street 1",
        "address2" : "apt5",
        "company" : "Acme Ltd",
        "city" : "Stockholm",
        "phone" : "+467348583493",
        "zip" : "12345",
        "province" : "",
        "country" : "SE",
        "province_code" : "",
        "country_code" : "SE"
      } ],
      "default_address" : {
        "id" : 543,
        "name" : "Richard Benson",
        "first_name" : "Benson",
        "last_name" : "Benson",
        "street" : "Street 1 apt5",
        "address1" : "Street 1",
        "address2" : "apt5",
        "company" : "Acme Ltd",
        "city" : "Stockholm",
        "phone" : "+467348583493",
        "zip" : "12345",
        "province" : "",
        "country" : "SE",
        "province_code" : "",
        "country_code" : "SE"
      },
      "addresses_option_tags" : "<option.....>Richard Benson, SE</option>",
      "reset_password_url" : "https://store.pandacommerce.net/account/reset/2938809835f3135a3ea8ba30b104154b",
      "account_activation_url" : "https://store.pandacommerce.net/account/activate/2938809835f3135a3ea8ba30b104154b"
    },
    "url" : "https://checkout.pandacommerce.net/order/b65673d761d01a8366d5a1a01e483e7b",
    "checkout_url" : "https://checkout.pandacommerce.net/complete/b65673d761d01a8366d5a1a01e483e7b",
    "customer_url" : "https://store.pandacommerce.net/account/order/34543",
    "open" : true
  } ],
  "last_order" : {
    "id" : 34543,
    "name" : "#100033",
    "metafields" : "object",
    "order_number" : 33,
    "hash" : "b65673d761d01a8366d5a1a01e483e7b",
    "email" : "customer@domain.com",
    "created_at" : "2016-05-01 22:00:01",
    "updated_at" : "2016-05-01 22:00:01",
    "payment" : {
      "id" : 123,
      "kind" : "capture",
      "created_at" : "2016-05-01 22:00:01",
      "success" : true,
      "ip" : "127.0.0.1",
      "card_type" : "Visa",
      "card_number" : "XXXX XXXX XXXX 2134",
      "message" : "Capture Successful",
      "amount" : 129.0,
      "test" : false,
      "currency" : "SEK",
      "receipt" : "KK34742D",
      "gateway_title" : "Stripe",
      "gateway_id" : 345
    },
    "payment_price" : 0.0,
    "payment_price_excluding_tax" : 0.0,
    "payment_tax_lines" : {
      "test" : "123123123123"
    },
    "tax_lines" : {
      "test" : "123123123123"
    },
    "tax_price" : 25.8,
    "shop_id" : 23424,
    "shop_name" : "My T-shirt store",
    "subtotal_price" : 129.0,
    "total_weight" : 500,
    "total_price" : 129.0,
    "gateway" : "Stripe",
    "financial_status" : "paid",
    "fulfillment_status" : "unfulfilled",
    "requires_shipping" : true,
    "shipping_price" : 0.0,
    "shipping_price_excluding_tax" : 0.0,
    "shipping_tax_lines" : {
      "test" : "123123123123"
    },
    "shipping_methods" : [ "object" ],
    "shipping_address" : {
      "id" : 543,
      "name" : "Richard Benson",
      "first_name" : "Benson",
      "last_name" : "Benson",
      "street" : "Street 1 apt5",
      "address1" : "Street 1",
      "address2" : "apt5",
      "company" : "Acme Ltd",
      "city" : "Stockholm",
      "phone" : "+467348583493",
      "zip" : "12345",
      "province" : "",
      "country" : "SE",
      "province_code" : "",
      "country_code" : "SE"
    },
    "billing_address" : {
      "id" : 543,
      "name" : "Richard Benson",
      "first_name" : "Benson",
      "last_name" : "Benson",
      "street" : "Street 1 apt5",
      "address1" : "Street 1",
      "address2" : "apt5",
      "company" : "Acme Ltd",
      "city" : "Stockholm",
      "phone" : "+467348583493",
      "zip" : "12345",
      "province" : "",
      "country" : "SE",
      "province_code" : "",
      "country_code" : "SE"
    },
    "line_items" : [ {
      "id" : 123,
      "variant_id" : 34534,
      "product_id" : 24221,
      "quantity" : 1,
      "available_quantity" : 20,
      "product_title" : "T-shirt with flames",
      "variant_title" : "XL / Red / Striped",
      "fulfillable_quantity" : 1,
      "fulfilled_quantity" : 0,
      "refunded_quantity" : 0,
      "featured_image" : {
        "id" : 981,
        "src" : "//cdn.pandacommerce.net/templates/1/1/template/983/assets/add_prod.png?7028",
        "alt" : "My image"
      },
      "fulfillment_service" : "my-own-fulfillment-service",
      "weight" : 500,
      "line_weight" : 500,
      "price" : 129.0,
      "price_excluding_tax" : 129.0,
      "line_price" : 129.0,
      "line_price_excluding_tax" : 129.0,
      "sku" : "XK3334L",
      "inventory_location" : "D6",
      "taxable" : true,
      "requires_shipping" : true,
      "tax_lines" : {
        "test" : "123123123123"
      },
      "title" : "T-shirt with flames - XL / Red / Striped",
      "properties" : "object"
    } ],
    "line_items_price" : 129.0,
    "line_items_price_excluding_tax" : 0.0,
    "line_items_tax_lines" : {
      "test" : "123123123123"
    },
    "transactions" : [ {
      "id" : 123,
      "kind" : "capture",
      "created_at" : "2016-05-01 22:00:01",
      "success" : true,
      "ip" : "127.0.0.1",
      "card_type" : "Visa",
      "card_number" : "XXXX XXXX XXXX 2134",
      "message" : "Capture Successful",
      "amount" : 129.0,
      "test" : false,
      "currency" : "SEK",
      "receipt" : "KK34742D",
      "gateway_title" : "Stripe",
      "gateway_id" : 345
    } ],
    "refunds" : [ {
      "id" : 123,
      "kind" : "capture",
      "created_at" : "2016-05-01 22:00:01",
      "success" : true,
      "ip" : "127.0.0.1",
      "card_type" : "Visa",
      "card_number" : "XXXX XXXX XXXX 2134",
      "message" : "Capture Successful",
      "amount" : 129.0,
      "test" : false,
      "currency" : "SEK",
      "receipt" : "KK34742D",
      "gateway_title" : "Stripe",
      "gateway_id" : 345
    } ],
    "fulfillments" : [ {
      "id" : 123,
      "order_id" : 4364,
      "created_at" : "2016-05-01 22:00:01",
      "status" : "success",
      "fulfillment_service" : {
        "id" : 123,
        "name" : "My own fulfillment service",
        "handle" : "my-own-fulfillment-service",
        "inventory_management" : true,
        "tracking_support" : true,
        "requires_shipping_method" : true,
        "return_handling" : true,
        "include_pending_stock" : true,
        "credential1" : "user@domain.com",
        "callback_url" : "https://www.my-app.com/fulfillment_service.php",
        "provider_id" : 3,
        "email" : "user@domain.com",
        "created_at" : "2016-05-01 22:00:01"
      },
      "fulfillment_service_receipt" : "GS3242",
      "line_items" : [ {
        "id" : 123,
        "variant_id" : 34534,
        "product_id" : 24221,
        "quantity" : 1,
        "available_quantity" : 20,
        "product_title" : "T-shirt with flames",
        "variant_title" : "XL / Red / Striped",
        "fulfillable_quantity" : 1,
        "fulfilled_quantity" : 0,
        "refunded_quantity" : 0,
        "featured_image" : {
          "id" : 981,
          "src" : "//cdn.pandacommerce.net/templates/1/1/template/983/assets/add_prod.png?7028",
          "alt" : "My image"
        },
        "fulfillment_service" : "my-own-fulfillment-service",
        "weight" : 500,
        "line_weight" : 500,
        "price" : 129.0,
        "price_excluding_tax" : 129.0,
        "line_price" : 129.0,
        "line_price_excluding_tax" : 129.0,
        "sku" : "XK3334L",
        "inventory_location" : "D6",
        "taxable" : true,
        "requires_shipping" : true,
        "tax_lines" : {
          "test" : "123123123123"
        },
        "title" : "T-shirt with flames - XL / Red / Striped",
        "properties" : "object"
      } ],
      "tracking_number" : "SE349329492P",
      "tracking_company" : "Standard Post",
      "tracking_company_id" : 232,
      "tracking_url" : "http://www.postcompany.com/?trackid=SE349329492P"
    } ],
    "note" : "Notes about order",
    "attributes" : "object",
    "referring_site" : "http://www.google.com",
    "landing_site" : "http://store.pandacommerce.net/?ref=myblog",
    "landing_site_ref" : "myblog",
    "cancelled" : false,
    "cancelled_at" : "2016-05-01 22:00:01",
    "cancel_reason" : "other",
    "refunded_amount" : 0.0,
    "discount_code" : "DISCOUNT20",
    "tags" : [ "string" ],
    "currency" : "SEK",
    "customer" : "...",
    "url" : "https://checkout.pandacommerce.net/order/b65673d761d01a8366d5a1a01e483e7b",
    "checkout_url" : "https://checkout.pandacommerce.net/complete/b65673d761d01a8366d5a1a01e483e7b",
    "customer_url" : "https://store.pandacommerce.net/account/order/34543",
    "open" : true
  },
  "addresses" : [ {
    "id" : 543,
    "name" : "Richard Benson",
    "first_name" : "Benson",
    "last_name" : "Benson",
    "street" : "Street 1 apt5",
    "address1" : "Street 1",
    "address2" : "apt5",
    "company" : "Acme Ltd",
    "city" : "Stockholm",
    "phone" : "+467348583493",
    "zip" : "12345",
    "province" : "",
    "country" : "SE",
    "province_code" : "",
    "country_code" : "SE"
  } ],
  "default_address" : {
    "id" : 543,
    "name" : "Richard Benson",
    "first_name" : "Benson",
    "last_name" : "Benson",
    "street" : "Street 1 apt5",
    "address1" : "Street 1",
    "address2" : "apt5",
    "company" : "Acme Ltd",
    "city" : "Stockholm",
    "phone" : "+467348583493",
    "zip" : "12345",
    "province" : "",
    "country" : "SE",
    "province_code" : "",
    "country_code" : "SE"
  },
  "addresses_option_tags" : "<option.....>Richard Benson, SE</option>",
  "reset_password_url" : "https://store.pandacommerce.net/account/reset/2938809835f3135a3ea8ba30b104154b",
  "account_activation_url" : "https://store.pandacommerce.net/account/activate/2938809835f3135a3ea8ba30b104154b"
}
Example HTTP response
Response 200
{
  "id" : 9348,
  "shop_id" : 23424,
  "shop_name" : "My T-shirt store",
  "email" : "customer@domain.com",
  "metafields" : "object",
  "status" : "enabled",
  "name" : "Richard Benson",
  "first_name" : "Richard",
  "last_name" : "Benson",
  "company" : "Acme Ltd",
  "note" : "Notes about customer",
  "tags" : [ "string" ],
  "accepts_marketing" : true,
  "total_spent" : 129.0,
  "addresses_count" : 1,
  "orders_count" : 1,
  "orders" : [ {
    "id" : 34543,
    "name" : "#100033",
    "metafields" : "object",
    "order_number" : 33,
    "hash" : "b65673d761d01a8366d5a1a01e483e7b",
    "email" : "customer@domain.com",
    "created_at" : "2016-05-01 22:00:01",
    "updated_at" : "2016-05-01 22:00:01",
    "payment" : {
      "id" : 123,
      "kind" : "capture",
      "created_at" : "2016-05-01 22:00:01",
      "success" : true,
      "ip" : "127.0.0.1",
      "card_type" : "Visa",
      "card_number" : "XXXX XXXX XXXX 2134",
      "message" : "Capture Successful",
      "amount" : 129.0,
      "test" : false,
      "currency" : "SEK",
      "receipt" : "KK34742D",
      "gateway_title" : "Stripe",
      "gateway_id" : 345
    },
    "payment_price" : 0.0,
    "payment_price_excluding_tax" : 0.0,
    "payment_tax_lines" : {
      "test" : "123123123123"
    },
    "tax_lines" : {
      "test" : "123123123123"
    },
    "tax_price" : 25.8,
    "shop_id" : 23424,
    "shop_name" : "My T-shirt store",
    "subtotal_price" : 129.0,
    "total_weight" : 500,
    "total_price" : 129.0,
    "gateway" : "Stripe",
    "financial_status" : "paid",
    "fulfillment_status" : "unfulfilled",
    "requires_shipping" : true,
    "shipping_price" : 0.0,
    "shipping_price_excluding_tax" : 0.0,
    "shipping_tax_lines" : {
      "test" : "123123123123"
    },
    "shipping_methods" : [ "object" ],
    "shipping_address" : {
      "id" : 543,
      "name" : "Richard Benson",
      "first_name" : "Benson",
      "last_name" : "Benson",
      "street" : "Street 1 apt5",
      "address1" : "Street 1",
      "address2" : "apt5",
      "company" : "Acme Ltd",
      "city" : "Stockholm",
      "phone" : "+467348583493",
      "zip" : "12345",
      "province" : "",
      "country" : "SE",
      "province_code" : "",
      "country_code" : "SE"
    },
    "billing_address" : {
      "id" : 543,
      "name" : "Richard Benson",
      "first_name" : "Benson",
      "last_name" : "Benson",
      "street" : "Street 1 apt5",
      "address1" : "Street 1",
      "address2" : "apt5",
      "company" : "Acme Ltd",
      "city" : "Stockholm",
      "phone" : "+467348583493",
      "zip" : "12345",
      "province" : "",
      "country" : "SE",
      "province_code" : "",
      "country_code" : "SE"
    },
    "line_items" : [ {
      "id" : 123,
      "variant_id" : 34534,
      "product_id" : 24221,
      "quantity" : 1,
      "available_quantity" : 20,
      "product_title" : "T-shirt with flames",
      "variant_title" : "XL / Red / Striped",
      "fulfillable_quantity" : 1,
      "fulfilled_quantity" : 0,
      "refunded_quantity" : 0,
      "featured_image" : {
        "id" : 981,
        "src" : "//cdn.pandacommerce.net/templates/1/1/template/983/assets/add_prod.png?7028",
        "alt" : "My image"
      },
      "fulfillment_service" : "my-own-fulfillment-service",
      "weight" : 500,
      "line_weight" : 500,
      "price" : 129.0,
      "price_excluding_tax" : 129.0,
      "line_price" : 129.0,
      "line_price_excluding_tax" : 129.0,
      "sku" : "XK3334L",
      "inventory_location" : "D6",
      "taxable" : true,
      "requires_shipping" : true,
      "tax_lines" : {
        "test" : "123123123123"
      },
      "title" : "T-shirt with flames - XL / Red / Striped",
      "properties" : "object"
    } ],
    "line_items_price" : 129.0,
    "line_items_price_excluding_tax" : 0.0,
    "line_items_tax_lines" : {
      "test" : "123123123123"
    },
    "transactions" : [ {
      "id" : 123,
      "kind" : "capture",
      "created_at" : "2016-05-01 22:00:01",
      "success" : true,
      "ip" : "127.0.0.1",
      "card_type" : "Visa",
      "card_number" : "XXXX XXXX XXXX 2134",
      "message" : "Capture Successful",
      "amount" : 129.0,
      "test" : false,
      "currency" : "SEK",
      "receipt" : "KK34742D",
      "gateway_title" : "Stripe",
      "gateway_id" : 345
    } ],
    "refunds" : [ {
      "id" : 123,
      "kind" : "capture",
      "created_at" : "2016-05-01 22:00:01",
      "success" : true,
      "ip" : "127.0.0.1",
      "card_type" : "Visa",
      "card_number" : "XXXX XXXX XXXX 2134",
      "message" : "Capture Successful",
      "amount" : 129.0,
      "test" : false,
      "currency" : "SEK",
      "receipt" : "KK34742D",
      "gateway_title" : "Stripe",
      "gateway_id" : 345
    } ],
    "fulfillments" : [ {
      "id" : 123,
      "order_id" : 4364,
      "created_at" : "2016-05-01 22:00:01",
      "status" : "success",
      "fulfillment_service" : {
        "id" : 123,
        "name" : "My own fulfillment service",
        "handle" : "my-own-fulfillment-service",
        "inventory_management" : true,
        "tracking_support" : true,
        "requires_shipping_method" : true,
        "return_handling" : true,
        "include_pending_stock" : true,
        "credential1" : "user@domain.com",
        "callback_url" : "https://www.my-app.com/fulfillment_service.php",
        "provider_id" : 3,
        "email" : "user@domain.com",
        "created_at" : "2016-05-01 22:00:01"
      },
      "fulfillment_service_receipt" : "GS3242",
      "line_items" : [ {
        "id" : 123,
        "variant_id" : 34534,
        "product_id" : 24221,
        "quantity" : 1,
        "available_quantity" : 20,
        "product_title" : "T-shirt with flames",
        "variant_title" : "XL / Red / Striped",
        "fulfillable_quantity" : 1,
        "fulfilled_quantity" : 0,
        "refunded_quantity" : 0,
        "featured_image" : {
          "id" : 981,
          "src" : "//cdn.pandacommerce.net/templates/1/1/template/983/assets/add_prod.png?7028",
          "alt" : "My image"
        },
        "fulfillment_service" : "my-own-fulfillment-service",
        "weight" : 500,
        "line_weight" : 500,
        "price" : 129.0,
        "price_excluding_tax" : 129.0,
        "line_price" : 129.0,
        "line_price_excluding_tax" : 129.0,
        "sku" : "XK3334L",
        "inventory_location" : "D6",
        "taxable" : true,
        "requires_shipping" : true,
        "tax_lines" : {
          "test" : "123123123123"
        },
        "title" : "T-shirt with flames - XL / Red / Striped",
        "properties" : "object"
      } ],
      "tracking_number" : "SE349329492P",
      "tracking_company" : "Standard Post",
      "tracking_company_id" : 232,
      "tracking_url" : "http://www.postcompany.com/?trackid=SE349329492P"
    } ],
    "note" : "Notes about order",
    "attributes" : "object",
    "referring_site" : "http://www.google.com",
    "landing_site" : "http://store.pandacommerce.net/?ref=myblog",
    "landing_site_ref" : "myblog",
    "cancelled" : false,
    "cancelled_at" : "2016-05-01 22:00:01",
    "cancel_reason" : "other",
    "refunded_amount" : 0.0,
    "discount_code" : "DISCOUNT20",
    "tags" : [ "string" ],
    "currency" : "SEK",
    "customer" : {
      "id" : 9348,
      "shop_id" : 23424,
      "shop_name" : "My T-shirt store",
      "email" : "customer@domain.com",
      "metafields" : "object",
      "status" : "enabled",
      "name" : "Richard Benson",
      "first_name" : "Richard",
      "last_name" : "Benson",
      "company" : "Acme Ltd",
      "note" : "Notes about customer",
      "tags" : [ "string" ],
      "accepts_marketing" : true,
      "total_spent" : 129.0,
      "addresses_count" : 1,
      "orders_count" : 1,
      "orders" : [ {
        "id" : 34543,
        "name" : "#100033",
        "metafields" : "object",
        "order_number" : 33,
        "hash" : "b65673d761d01a8366d5a1a01e483e7b",
        "email" : "customer@domain.com",
        "created_at" : "2016-05-01 22:00:01",
        "updated_at" : "2016-05-01 22:00:01",
        "payment" : {
          "id" : 123,
          "kind" : "capture",
          "created_at" : "2016-05-01 22:00:01",
          "success" : true,
          "ip" : "127.0.0.1",
          "card_type" : "Visa",
          "card_number" : "XXXX XXXX XXXX 2134",
          "message" : "Capture Successful",
          "amount" : 129.0,
          "test" : false,
          "currency" : "SEK",
          "receipt" : "KK34742D",
          "gateway_title" : "Stripe",
          "gateway_id" : 345
        },
        "payment_price" : 0.0,
        "payment_price_excluding_tax" : 0.0,
        "payment_tax_lines" : {
          "test" : "123123123123"
        },
        "tax_lines" : {
          "test" : "123123123123"
        },
        "tax_price" : 25.8,
        "shop_id" : 23424,
        "shop_name" : "My T-shirt store",
        "subtotal_price" : 129.0,
        "total_weight" : 500,
        "total_price" : 129.0,
        "gateway" : "Stripe",
        "financial_status" : "paid",
        "fulfillment_status" : "unfulfilled",
        "requires_shipping" : true,
        "shipping_price" : 0.0,
        "shipping_price_excluding_tax" : 0.0,
        "shipping_tax_lines" : {
          "test" : "123123123123"
        },
        "shipping_methods" : [ "object" ],
        "shipping_address" : {
          "id" : 543,
          "name" : "Richard Benson",
          "first_name" : "Benson",
          "last_name" : "Benson",
          "street" : "Street 1 apt5",
          "address1" : "Street 1",
          "address2" : "apt5",
          "company" : "Acme Ltd",
          "city" : "Stockholm",
          "phone" : "+467348583493",
          "zip" : "12345",
          "province" : "",
          "country" : "SE",
          "province_code" : "",
          "country_code" : "SE"
        },
        "billing_address" : {
          "id" : 543,
          "name" : "Richard Benson",
          "first_name" : "Benson",
          "last_name" : "Benson",
          "street" : "Street 1 apt5",
          "address1" : "Street 1",
          "address2" : "apt5",
          "company" : "Acme Ltd",
          "city" : "Stockholm",
          "phone" : "+467348583493",
          "zip" : "12345",
          "province" : "",
          "country" : "SE",
          "province_code" : "",
          "country_code" : "SE"
        },
        "line_items" : [ {
          "id" : 123,
          "variant_id" : 34534,
          "product_id" : 24221,
          "quantity" : 1,
          "available_quantity" : 20,
          "product_title" : "T-shirt with flames",
          "variant_title" : "XL / Red / Striped",
          "fulfillable_quantity" : 1,
          "fulfilled_quantity" : 0,
          "refunded_quantity" : 0,
          "featured_image" : {
            "id" : 981,
            "src" : "//cdn.pandacommerce.net/templates/1/1/template/983/assets/add_prod.png?7028",
            "alt" : "My image"
          },
          "fulfillment_service" : "my-own-fulfillment-service",
          "weight" : 500,
          "line_weight" : 500,
          "price" : 129.0,
          "price_excluding_tax" : 129.0,
          "line_price" : 129.0,
          "line_price_excluding_tax" : 129.0,
          "sku" : "XK3334L",
          "inventory_location" : "D6",
          "taxable" : true,
          "requires_shipping" : true,
          "tax_lines" : {
            "test" : "123123123123"
          },
          "title" : "T-shirt with flames - XL / Red / Striped",
          "properties" : "object"
        } ],
        "line_items_price" : 129.0,
        "line_items_price_excluding_tax" : 0.0,
        "line_items_tax_lines" : {
          "test" : "123123123123"
        },
        "transactions" : [ {
          "id" : 123,
          "kind" : "capture",
          "created_at" : "2016-05-01 22:00:01",
          "success" : true,
          "ip" : "127.0.0.1",
          "card_type" : "Visa",
          "card_number" : "XXXX XXXX XXXX 2134",
          "message" : "Capture Successful",
          "amount" : 129.0,
          "test" : false,
          "currency" : "SEK",
          "receipt" : "KK34742D",
          "gateway_title" : "Stripe",
          "gateway_id" : 345
        } ],
        "refunds" : [ {
          "id" : 123,
          "kind" : "capture",
          "created_at" : "2016-05-01 22:00:01",
          "success" : true,
          "ip" : "127.0.0.1",
          "card_type" : "Visa",
          "card_number" : "XXXX XXXX XXXX 2134",
          "message" : "Capture Successful",
          "amount" : 129.0,
          "test" : false,
          "currency" : "SEK",
          "receipt" : "KK34742D",
          "gateway_title" : "Stripe",
          "gateway_id" : 345
        } ],
        "fulfillments" : [ {
          "id" : 123,
          "order_id" : 4364,
          "created_at" : "2016-05-01 22:00:01",
          "status" : "success",
          "fulfillment_service" : {
            "id" : 123,
            "name" : "My own fulfillment service",
            "handle" : "my-own-fulfillment-service",
            "inventory_management" : true,
            "tracking_support" : true,
            "requires_shipping_method" : true,
            "return_handling" : true,
            "include_pending_stock" : true,
            "credential1" : "user@domain.com",
            "callback_url" : "https://www.my-app.com/fulfillment_service.php",
            "provider_id" : 3,
            "email" : "user@domain.com",
            "created_at" : "2016-05-01 22:00:01"
          },
          "fulfillment_service_receipt" : "GS3242",
          "line_items" : [ {
            "id" : 123,
            "variant_id" : 34534,
            "product_id" : 24221,
            "quantity" : 1,
            "available_quantity" : 20,
            "product_title" : "T-shirt with flames",
            "variant_title" : "XL / Red / Striped",
            "fulfillable_quantity" : 1,
            "fulfilled_quantity" : 0,
            "refunded_quantity" : 0,
            "featured_image" : {
              "id" : 981,
              "src" : "//cdn.pandacommerce.net/templates/1/1/template/983/assets/add_prod.png?7028",
              "alt" : "My image"
            },
            "fulfillment_service" : "my-own-fulfillment-service",
            "weight" : 500,
            "line_weight" : 500,
            "price" : 129.0,
            "price_excluding_tax" : 129.0,
            "line_price" : 129.0,
            "line_price_excluding_tax" : 129.0,
            "sku" : "XK3334L",
            "inventory_location" : "D6",
            "taxable" : true,
            "requires_shipping" : true,
            "tax_lines" : {
              "test" : "123123123123"
            },
            "title" : "T-shirt with flames - XL / Red / Striped",
            "properties" : "object"
          } ],
          "tracking_number" : "SE349329492P",
          "tracking_company" : "Standard Post",
          "tracking_company_id" : 232,
          "tracking_url" : "http://www.postcompany.com/?trackid=SE349329492P"
        } ],
        "note" : "Notes about order",
        "attributes" : "object",
        "referring_site" : "http://www.google.com",
        "landing_site" : "http://store.pandacommerce.net/?ref=myblog",
        "landing_site_ref" : "myblog",
        "cancelled" : false,
        "cancelled_at" : "2016-05-01 22:00:01",
        "cancel_reason" : "other",
        "refunded_amount" : 0.0,
        "discount_code" : "DISCOUNT20",
        "tags" : [ "string" ],
        "currency" : "SEK",
        "customer" : "...",
        "url" : "https://checkout.pandacommerce.net/order/b65673d761d01a8366d5a1a01e483e7b",
        "checkout_url" : "https://checkout.pandacommerce.net/complete/b65673d761d01a8366d5a1a01e483e7b",
        "customer_url" : "https://store.pandacommerce.net/account/order/34543",
        "open" : true
      } ],
      "last_order" : {
        "id" : 34543,
        "name" : "#100033",
        "metafields" : "object",
        "order_number" : 33,
        "hash" : "b65673d761d01a8366d5a1a01e483e7b",
        "email" : "customer@domain.com",
        "created_at" : "2016-05-01 22:00:01",
        "updated_at" : "2016-05-01 22:00:01",
        "payment" : {
          "id" : 123,
          "kind" : "capture",
          "created_at" : "2016-05-01 22:00:01",
          "success" : true,
          "ip" : "127.0.0.1",
          "card_type" : "Visa",
          "card_number" : "XXXX XXXX XXXX 2134",
          "message" : "Capture Successful",
          "amount" : 129.0,
          "test" : false,
          "currency" : "SEK",
          "receipt" : "KK34742D",
          "gateway_title" : "Stripe",
          "gateway_id" : 345
        },
        "payment_price" : 0.0,
        "payment_price_excluding_tax" : 0.0,
        "payment_tax_lines" : {
          "test" : "123123123123"
        },
        "tax_lines" : {
          "test" : "123123123123"
        },
        "tax_price" : 25.8,
        "shop_id" : 23424,
        "shop_name" : "My T-shirt store",
        "subtotal_price" : 129.0,
        "total_weight" : 500,
        "total_price" : 129.0,
        "gateway" : "Stripe",
        "financial_status" : "paid",
        "fulfillment_status" : "unfulfilled",
        "requires_shipping" : true,
        "shipping_price" : 0.0,
        "shipping_price_excluding_tax" : 0.0,
        "shipping_tax_lines" : {
          "test" : "123123123123"
        },
        "shipping_methods" : [ "object" ],
        "shipping_address" : {
          "id" : 543,
          "name" : "Richard Benson",
          "first_name" : "Benson",
          "last_name" : "Benson",
          "street" : "Street 1 apt5",
          "address1" : "Street 1",
          "address2" : "apt5",
          "company" : "Acme Ltd",
          "city" : "Stockholm",
          "phone" : "+467348583493",
          "zip" : "12345",
          "province" : "",
          "country" : "SE",
          "province_code" : "",
          "country_code" : "SE"
        },
        "billing_address" : {
          "id" : 543,
          "name" : "Richard Benson",
          "first_name" : "Benson",
          "last_name" : "Benson",
          "street" : "Street 1 apt5",
          "address1" : "Street 1",
          "address2" : "apt5",
          "company" : "Acme Ltd",
          "city" : "Stockholm",
          "phone" : "+467348583493",
          "zip" : "12345",
          "province" : "",
          "country" : "SE",
          "province_code" : "",
          "country_code" : "SE"
        },
        "line_items" : [ {
          "id" : 123,
          "variant_id" : 34534,
          "product_id" : 24221,
          "quantity" : 1,
          "available_quantity" : 20,
          "product_title" : "T-shirt with flames",
          "variant_title" : "XL / Red / Striped",
          "fulfillable_quantity" : 1,
          "fulfilled_quantity" : 0,
          "refunded_quantity" : 0,
          "featured_image" : {
            "id" : 981,
            "src" : "//cdn.pandacommerce.net/templates/1/1/template/983/assets/add_prod.png?7028",
            "alt" : "My image"
          },
          "fulfillment_service" : "my-own-fulfillment-service",
          "weight" : 500,
          "line_weight" : 500,
          "price" : 129.0,
          "price_excluding_tax" : 129.0,
          "line_price" : 129.0,
          "line_price_excluding_tax" : 129.0,
          "sku" : "XK3334L",
          "inventory_location" : "D6",
          "taxable" : true,
          "requires_shipping" : true,
          "tax_lines" : {
            "test" : "123123123123"
          },
          "title" : "T-shirt with flames - XL / Red / Striped",
          "properties" : "object"
        } ],
        "line_items_price" : 129.0,
        "line_items_price_excluding_tax" : 0.0,
        "line_items_tax_lines" : {
          "test" : "123123123123"
        },
        "transactions" : [ {
          "id" : 123,
          "kind" : "capture",
          "created_at" : "2016-05-01 22:00:01",
          "success" : true,
          "ip" : "127.0.0.1",
          "card_type" : "Visa",
          "card_number" : "XXXX XXXX XXXX 2134",
          "message" : "Capture Successful",
          "amount" : 129.0,
          "test" : false,
          "currency" : "SEK",
          "receipt" : "KK34742D",
          "gateway_title" : "Stripe",
          "gateway_id" : 345
        } ],
        "refunds" : [ {
          "id" : 123,
          "kind" : "capture",
          "created_at" : "2016-05-01 22:00:01",
          "success" : true,
          "ip" : "127.0.0.1",
          "card_type" : "Visa",
          "card_number" : "XXXX XXXX XXXX 2134",
          "message" : "Capture Successful",
          "amount" : 129.0,
          "test" : false,
          "currency" : "SEK",
          "receipt" : "KK34742D",
          "gateway_title" : "Stripe",
          "gateway_id" : 345
        } ],
        "fulfillments" : [ {
          "id" : 123,
          "order_id" : 4364,
          "created_at" : "2016-05-01 22:00:01",
          "status" : "success",
          "fulfillment_service" : {
            "id" : 123,
            "name" : "My own fulfillment service",
            "handle" : "my-own-fulfillment-service",
            "inventory_management" : true,
            "tracking_support" : true,
            "requires_shipping_method" : true,
            "return_handling" : true,
            "include_pending_stock" : true,
            "credential1" : "user@domain.com",
            "callback_url" : "https://www.my-app.com/fulfillment_service.php",
            "provider_id" : 3,
            "email" : "user@domain.com",
            "created_at" : "2016-05-01 22:00:01"
          },
          "fulfillment_service_receipt" : "GS3242",
          "line_items" : [ {
            "id" : 123,
            "variant_id" : 34534,
            "product_id" : 24221,
            "quantity" : 1,
            "available_quantity" : 20,
            "product_title" : "T-shirt with flames",
            "variant_title" : "XL / Red / Striped",
            "fulfillable_quantity" : 1,
            "fulfilled_quantity" : 0,
            "refunded_quantity" : 0,
            "featured_image" : {
              "id" : 981,
              "src" : "//cdn.pandacommerce.net/templates/1/1/template/983/assets/add_prod.png?7028",
              "alt" : "My image"
            },
            "fulfillment_service" : "my-own-fulfillment-service",
            "weight" : 500,
            "line_weight" : 500,
            "price" : 129.0,
            "price_excluding_tax" : 129.0,
            "line_price" : 129.0,
            "line_price_excluding_tax" : 129.0,
            "sku" : "XK3334L",
            "inventory_location" : "D6",
            "taxable" : true,
            "requires_shipping" : true,
            "tax_lines" : {
              "test" : "123123123123"
            },
            "title" : "T-shirt with flames - XL / Red / Striped",
            "properties" : "object"
          } ],
          "tracking_number" : "SE349329492P",
          "tracking_company" : "Standard Post",
          "tracking_company_id" : 232,
          "tracking_url" : "http://www.postcompany.com/?trackid=SE349329492P"
        } ],
        "note" : "Notes about order",
        "attributes" : "object",
        "referring_site" : "http://www.google.com",
        "landing_site" : "http://store.pandacommerce.net/?ref=myblog",
        "landing_site_ref" : "myblog",
        "cancelled" : false,
        "cancelled_at" : "2016-05-01 22:00:01",
        "cancel_reason" : "other",
        "refunded_amount" : 0.0,
        "discount_code" : "DISCOUNT20",
        "tags" : [ "string" ],
        "currency" : "SEK",
        "customer" : "...",
        "url" : "https://checkout.pandacommerce.net/order/b65673d761d01a8366d5a1a01e483e7b",
        "checkout_url" : "https://checkout.pandacommerce.net/complete/b65673d761d01a8366d5a1a01e483e7b",
        "customer_url" : "https://store.pandacommerce.net/account/order/34543",
        "open" : true
      },
      "addresses" : [ {
        "id" : 543,
        "name" : "Richard Benson",
        "first_name" : "Benson",
        "last_name" : "Benson",
        "street" : "Street 1 apt5",
        "address1" : "Street 1",
        "address2" : "apt5",
        "company" : "Acme Ltd",
        "city" : "Stockholm",
        "phone" : "+467348583493",
        "zip" : "12345",
        "province" : "",
        "country" : "SE",
        "province_code" : "",
        "country_code" : "SE"
      } ],
      "default_address" : {
        "id" : 543,
        "name" : "Richard Benson",
        "first_name" : "Benson",
        "last_name" : "Benson",
        "street" : "Street 1 apt5",
        "address1" : "Street 1",
        "address2" : "apt5",
        "company" : "Acme Ltd",
        "city" : "Stockholm",
        "phone" : "+467348583493",
        "zip" : "12345",
        "province" : "",
        "country" : "SE",
        "province_code" : "",
        "country_code" : "SE"
      },
      "addresses_option_tags" : "<option.....>Richard Benson, SE</option>",
      "reset_password_url" : "https://store.pandacommerce.net/account/reset/2938809835f3135a3ea8ba30b104154b",
      "account_activation_url" : "https://store.pandacommerce.net/account/activate/2938809835f3135a3ea8ba30b104154b"
    },
    "url" : "https://checkout.pandacommerce.net/order/b65673d761d01a8366d5a1a01e483e7b",
    "checkout_url" : "https://checkout.pandacommerce.net/complete/b65673d761d01a8366d5a1a01e483e7b",
    "customer_url" : "https://store.pandacommerce.net/account/order/34543",
    "open" : true
  } ],
  "last_order" : {
    "id" : 34543,
    "name" : "#100033",
    "metafields" : "object",
    "order_number" : 33,
    "hash" : "b65673d761d01a8366d5a1a01e483e7b",
    "email" : "customer@domain.com",
    "created_at" : "2016-05-01 22:00:01",
    "updated_at" : "2016-05-01 22:00:01",
    "payment" : {
      "id" : 123,
      "kind" : "capture",
      "created_at" : "2016-05-01 22:00:01",
      "success" : true,
      "ip" : "127.0.0.1",
      "card_type" : "Visa",
      "card_number" : "XXXX XXXX XXXX 2134",
      "message" : "Capture Successful",
      "amount" : 129.0,
      "test" : false,
      "currency" : "SEK",
      "receipt" : "KK34742D",
      "gateway_title" : "Stripe",
      "gateway_id" : 345
    },
    "payment_price" : 0.0,
    "payment_price_excluding_tax" : 0.0,
    "payment_tax_lines" : {
      "test" : "123123123123"
    },
    "tax_lines" : {
      "test" : "123123123123"
    },
    "tax_price" : 25.8,
    "shop_id" : 23424,
    "shop_name" : "My T-shirt store",
    "subtotal_price" : 129.0,
    "total_weight" : 500,
    "total_price" : 129.0,
    "gateway" : "Stripe",
    "financial_status" : "paid",
    "fulfillment_status" : "unfulfilled",
    "requires_shipping" : true,
    "shipping_price" : 0.0,
    "shipping_price_excluding_tax" : 0.0,
    "shipping_tax_lines" : {
      "test" : "123123123123"
    },
    "shipping_methods" : [ "object" ],
    "shipping_address" : {
      "id" : 543,
      "name" : "Richard Benson",
      "first_name" : "Benson",
      "last_name" : "Benson",
      "street" : "Street 1 apt5",
      "address1" : "Street 1",
      "address2" : "apt5",
      "company" : "Acme Ltd",
      "city" : "Stockholm",
      "phone" : "+467348583493",
      "zip" : "12345",
      "province" : "",
      "country" : "SE",
      "province_code" : "",
      "country_code" : "SE"
    },
    "billing_address" : {
      "id" : 543,
      "name" : "Richard Benson",
      "first_name" : "Benson",
      "last_name" : "Benson",
      "street" : "Street 1 apt5",
      "address1" : "Street 1",
      "address2" : "apt5",
      "company" : "Acme Ltd",
      "city" : "Stockholm",
      "phone" : "+467348583493",
      "zip" : "12345",
      "province" : "",
      "country" : "SE",
      "province_code" : "",
      "country_code" : "SE"
    },
    "line_items" : [ {
      "id" : 123,
      "variant_id" : 34534,
      "product_id" : 24221,
      "quantity" : 1,
      "available_quantity" : 20,
      "product_title" : "T-shirt with flames",
      "variant_title" : "XL / Red / Striped",
      "fulfillable_quantity" : 1,
      "fulfilled_quantity" : 0,
      "refunded_quantity" : 0,
      "featured_image" : {
        "id" : 981,
        "src" : "//cdn.pandacommerce.net/templates/1/1/template/983/assets/add_prod.png?7028",
        "alt" : "My image"
      },
      "fulfillment_service" : "my-own-fulfillment-service",
      "weight" : 500,
      "line_weight" : 500,
      "price" : 129.0,
      "price_excluding_tax" : 129.0,
      "line_price" : 129.0,
      "line_price_excluding_tax" : 129.0,
      "sku" : "XK3334L",
      "inventory_location" : "D6",
      "taxable" : true,
      "requires_shipping" : true,
      "tax_lines" : {
        "test" : "123123123123"
      },
      "title" : "T-shirt with flames - XL / Red / Striped",
      "properties" : "object"
    } ],
    "line_items_price" : 129.0,
    "line_items_price_excluding_tax" : 0.0,
    "line_items_tax_lines" : {
      "test" : "123123123123"
    },
    "transactions" : [ {
      "id" : 123,
      "kind" : "capture",
      "created_at" : "2016-05-01 22:00:01",
      "success" : true,
      "ip" : "127.0.0.1",
      "card_type" : "Visa",
      "card_number" : "XXXX XXXX XXXX 2134",
      "message" : "Capture Successful",
      "amount" : 129.0,
      "test" : false,
      "currency" : "SEK",
      "receipt" : "KK34742D",
      "gateway_title" : "Stripe",
      "gateway_id" : 345
    } ],
    "refunds" : [ {
      "id" : 123,
      "kind" : "capture",
      "created_at" : "2016-05-01 22:00:01",
      "success" : true,
      "ip" : "127.0.0.1",
      "card_type" : "Visa",
      "card_number" : "XXXX XXXX XXXX 2134",
      "message" : "Capture Successful",
      "amount" : 129.0,
      "test" : false,
      "currency" : "SEK",
      "receipt" : "KK34742D",
      "gateway_title" : "Stripe",
      "gateway_id" : 345
    } ],
    "fulfillments" : [ {
      "id" : 123,
      "order_id" : 4364,
      "created_at" : "2016-05-01 22:00:01",
      "status" : "success",
      "fulfillment_service" : {
        "id" : 123,
        "name" : "My own fulfillment service",
        "handle" : "my-own-fulfillment-service",
        "inventory_management" : true,
        "tracking_support" : true,
        "requires_shipping_method" : true,
        "return_handling" : true,
        "include_pending_stock" : true,
        "credential1" : "user@domain.com",
        "callback_url" : "https://www.my-app.com/fulfillment_service.php",
        "provider_id" : 3,
        "email" : "user@domain.com",
        "created_at" : "2016-05-01 22:00:01"
      },
      "fulfillment_service_receipt" : "GS3242",
      "line_items" : [ {
        "id" : 123,
        "variant_id" : 34534,
        "product_id" : 24221,
        "quantity" : 1,
        "available_quantity" : 20,
        "product_title" : "T-shirt with flames",
        "variant_title" : "XL / Red / Striped",
        "fulfillable_quantity" : 1,
        "fulfilled_quantity" : 0,
        "refunded_quantity" : 0,
        "featured_image" : {
          "id" : 981,
          "src" : "//cdn.pandacommerce.net/templates/1/1/template/983/assets/add_prod.png?7028",
          "alt" : "My image"
        },
        "fulfillment_service" : "my-own-fulfillment-service",
        "weight" : 500,
        "line_weight" : 500,
        "price" : 129.0,
        "price_excluding_tax" : 129.0,
        "line_price" : 129.0,
        "line_price_excluding_tax" : 129.0,
        "sku" : "XK3334L",
        "inventory_location" : "D6",
        "taxable" : true,
        "requires_shipping" : true,
        "tax_lines" : {
          "test" : "123123123123"
        },
        "title" : "T-shirt with flames - XL / Red / Striped",
        "properties" : "object"
      } ],
      "tracking_number" : "SE349329492P",
      "tracking_company" : "Standard Post",
      "tracking_company_id" : 232,
      "tracking_url" : "http://www.postcompany.com/?trackid=SE349329492P"
    } ],
    "note" : "Notes about order",
    "attributes" : "object",
    "referring_site" : "http://www.google.com",
    "landing_site" : "http://store.pandacommerce.net/?ref=myblog",
    "landing_site_ref" : "myblog",
    "cancelled" : false,
    "cancelled_at" : "2016-05-01 22:00:01",
    "cancel_reason" : "other",
    "refunded_amount" : 0.0,
    "discount_code" : "DISCOUNT20",
    "tags" : [ "string" ],
    "currency" : "SEK",
    "customer" : "...",
    "url" : "https://checkout.pandacommerce.net/order/b65673d761d01a8366d5a1a01e483e7b",
    "checkout_url" : "https://checkout.pandacommerce.net/complete/b65673d761d01a8366d5a1a01e483e7b",
    "customer_url" : "https://store.pandacommerce.net/account/order/34543",
    "open" : true
  },
  "addresses" : [ {
    "id" : 543,
    "name" : "Richard Benson",
    "first_name" : "Benson",
    "last_name" : "Benson",
    "street" : "Street 1 apt5",
    "address1" : "Street 1",
    "address2" : "apt5",
    "company" : "Acme Ltd",
    "city" : "Stockholm",
    "phone" : "+467348583493",
    "zip" : "12345",
    "province" : "",
    "country" : "SE",
    "province_code" : "",
    "country_code" : "SE"
  } ],
  "default_address" : {
    "id" : 543,
    "name" : "Richard Benson",
    "first_name" : "Benson",
    "last_name" : "Benson",
    "street" : "Street 1 apt5",
    "address1" : "Street 1",
    "address2" : "apt5",
    "company" : "Acme Ltd",
    "city" : "Stockholm",
    "phone" : "+467348583493",
    "zip" : "12345",
    "province" : "",
    "country" : "SE",
    "province_code" : "",
    "country_code" : "SE"
  },
  "addresses_option_tags" : "<option.....>Richard Benson, SE</option>",
  "reset_password_url" : "https://store.pandacommerce.net/account/reset/2938809835f3135a3ea8ba30b104154b",
  "account_activation_url" : "https://store.pandacommerce.net/account/activate/2938809835f3135a3ea8ba30b104154b"
}
Response default
{
  "errors" : "object"
}

DELETE /customers/{id}.json

Description

deletes a single customer based on the ID supplied

Parameters
Type Name Description Schema

Path

id
required

ID of customer to delete

integer

Responses
HTTP Code Description Schema

200

Delete successful

No Content

default

unexpected error

ErrorModel

Security
Type Name Scopes

oauth2

oauth2

write_customers

basic

basic_auth

Example HTTP request
Request path
"/customers/0.json"
Example HTTP response
Response default
{
  "errors" : "object"
}

Discounts

POST /discounts.json

Description

Creates a new discount in the store.

Parameters
Type Name Description Schema

Body

discount
required

Discount to add to the store

Discount

Responses
HTTP Code Description Schema

200

discount response

Discount

default

unexpected error

ErrorModel

Produces
  • application/json

Security
Type Name Scopes

oauth2

oauth2

write_discounts

basic

basic_auth

Example HTTP request
Request path
"/discounts.json"
Request body
{
  "id" : 452,
  "created_at" : "2016-05-01 22:00:01",
  "title" : "DISCOUNT20",
  "type" : "discount_code",
  "inclusive" : true,
  "conditions" : [ "object" ],
  "apply_once" : true,
  "applicable_to" : [ "object" ],
  "status" : "enabled",
  "starts_at" : "2016-05-01 22:00:01",
  "ends_at" : "2016-05-01 22:00:01",
  "use_count" : 0,
  "max_uses" : 5
}
Example HTTP response
Response 200
{
  "id" : 452,
  "created_at" : "2016-05-01 22:00:01",
  "title" : "DISCOUNT20",
  "type" : "discount_code",
  "inclusive" : true,
  "conditions" : [ "object" ],
  "apply_once" : true,
  "applicable_to" : [ "object" ],
  "status" : "enabled",
  "starts_at" : "2016-05-01 22:00:01",
  "ends_at" : "2016-05-01 22:00:01",
  "use_count" : 0,
  "max_uses" : 5
}
Response default
{
  "errors" : "object"
}

GET /discounts.json

Description

Returns all discounts from the system that the user has access to

Parameters
Type Name Description Schema

Query

fields
optional

fields to return

< string > array

Query

limit
optional

maximum number of results to return (default 50)

integer

Query

offset
optional

result offset (default 0)

integer

Query

sorting
optional

sorting (title-asc,desc or published_at-asc,desc)

string

Responses
HTTP Code Description Schema

200

discount response

< Discount > array

default

unexpected error

ErrorModel

Produces
  • application/json

Security
Type Name Scopes

oauth2

oauth2

write_discounts,read_discounts

basic

basic_auth

Example HTTP request
Request path
"/discounts.json"
Request query
{
  "fields" : "string",
  "limit" : 0,
  "offset" : 0,
  "sorting" : "string"
}
Example HTTP response
Response 200
"array"
Response default
{
  "errors" : "object"
}

GET /discounts/{id}.json

Description

Returns a discount based on a single ID

Parameters
Type Name Description Schema

Path

id
required

ID of discount to fetch

integer

Responses
HTTP Code Description Schema

200

discount response

Discount

default

unexpected error

ErrorModel

Produces
  • application/json

Security
Type Name Scopes

oauth2

oauth2

write_discounts,read_discounts

basic

basic_auth

Example HTTP request
Request path
"/discounts/0.json"
Example HTTP response
Response 200
{
  "id" : 452,
  "created_at" : "2016-05-01 22:00:01",
  "title" : "DISCOUNT20",
  "type" : "discount_code",
  "inclusive" : true,
  "conditions" : [ "object" ],
  "apply_once" : true,
  "applicable_to" : [ "object" ],
  "status" : "enabled",
  "starts_at" : "2016-05-01 22:00:01",
  "ends_at" : "2016-05-01 22:00:01",
  "use_count" : 0,
  "max_uses" : 5
}
Response default
{
  "errors" : "object"
}

PUT /discounts/{id}.json

Description

Edits a discount based on a single ID

Parameters
Type Name Description Schema

Path

id
required

ID of discount to edit

integer

Body

discount
required

Discount to edit

Discount

Responses
HTTP Code Description Schema

200

discount response

Discount

default

unexpected error

ErrorModel

Produces
  • application/json

Security
Type Name Scopes

oauth2

oauth2

write_discounts,read_discounts

basic

basic_auth

Example HTTP request
Request path
"/discounts/0.json"
Request body
{
  "id" : 452,
  "created_at" : "2016-05-01 22:00:01",
  "title" : "DISCOUNT20",
  "type" : "discount_code",
  "inclusive" : true,
  "conditions" : [ "object" ],
  "apply_once" : true,
  "applicable_to" : [ "object" ],
  "status" : "enabled",
  "starts_at" : "2016-05-01 22:00:01",
  "ends_at" : "2016-05-01 22:00:01",
  "use_count" : 0,
  "max_uses" : 5
}
Example HTTP response
Response 200
{
  "id" : 452,
  "created_at" : "2016-05-01 22:00:01",
  "title" : "DISCOUNT20",
  "type" : "discount_code",
  "inclusive" : true,
  "conditions" : [ "object" ],
  "apply_once" : true,
  "applicable_to" : [ "object" ],
  "status" : "enabled",
  "starts_at" : "2016-05-01 22:00:01",
  "ends_at" : "2016-05-01 22:00:01",
  "use_count" : 0,
  "max_uses" : 5
}
Response default
{
  "errors" : "object"
}

DELETE /discounts/{id}.json

Description

deletes a single discount based on the ID supplied

Parameters
Type Name Description Schema

Path

id
required

ID of discount to delete

integer

Responses
HTTP Code Description Schema

200

[]

No Content

default

unexpected error

ErrorModel

Security
Type Name Scopes

oauth2

oauth2

write_discounts

basic

basic_auth

Example HTTP request
Request path
"/discounts/0.json"
Example HTTP response
Response default
{
  "errors" : "object"
}

Fulfillments

POST /fulfillment_services.json

Description

Creates a new fulfillment service in the store. Handle must be unique or left blank

Parameters
Type Name Description Schema

Body

fulfillment_service
required

Fulfillment Service to add to the store

FulfillmentService

Responses
HTTP Code Description Schema

200

fulfillment service response

FulfillmentService

default

unexpected error

ErrorModel

Produces
  • application/json

Security
Type Name Scopes

oauth2

oauth2

write_fulfillments

basic

basic_auth

Example HTTP request
Request path
"/fulfillment_services.json"
Request body
{
  "id" : 123,
  "name" : "My own fulfillment service",
  "handle" : "my-own-fulfillment-service",
  "inventory_management" : true,
  "tracking_support" : true,
  "requires_shipping_method" : true,
  "return_handling" : true,
  "include_pending_stock" : true,
  "credential1" : "user@domain.com",
  "callback_url" : "https://www.my-app.com/fulfillment_service.php",
  "provider_id" : 3,
  "email" : "user@domain.com",
  "created_at" : "2016-05-01 22:00:01"
}
Example HTTP response
Response 200
{
  "id" : 123,
  "name" : "My own fulfillment service",
  "handle" : "my-own-fulfillment-service",
  "inventory_management" : true,
  "tracking_support" : true,
  "requires_shipping_method" : true,
  "return_handling" : true,
  "include_pending_stock" : true,
  "credential1" : "user@domain.com",
  "callback_url" : "https://www.my-app.com/fulfillment_service.php",
  "provider_id" : 3,
  "email" : "user@domain.com",
  "created_at" : "2016-05-01 22:00:01"
}
Response default
{
  "errors" : "object"
}

GET /fulfillment_services.json

Description

Returns all fulfillment services from the system that the user has access to

Parameters
Type Name Description Schema

Query

fields
optional

fields to return

< string > array

Query

limit
optional

maximum number of results to return (default 50)

integer

Query

offset
optional

result offset (default 0)

integer

Query

sorting
optional

sorting (title-asc,desc or published_at-asc,desc)

string

Responses
HTTP Code Description Schema

200

fulfillment services response

< FulfillmentService > array

default

unexpected error

ErrorModel

Produces
  • application/json

Security
Type Name Scopes

oauth2

oauth2

write_fulfillments,read_fulfillments

basic

basic_auth

Example HTTP request
Request path
"/fulfillment_services.json"
Request query
{
  "fields" : "string",
  "limit" : 0,
  "offset" : 0,
  "sorting" : "string"
}
Example HTTP response
Response 200
"array"
Response default
{
  "errors" : "object"
}

GET /fulfillment_services/{id}.json

Description

Returns a fulfillment service based on a single ID

Parameters
Type Name Description Schema

Path

id
required

ID of fulfillment service to fetch

integer

Responses
HTTP Code Description Schema

200

fulfillment service response

FulfillmentService

default

unexpected error

ErrorModel

Produces
  • application/json

Security
Type Name Scopes

oauth2

oauth2

write_fulfillments,read_fulfillments

basic

basic_auth

Example HTTP request
Request path
"/fulfillment_services/0.json"
Example HTTP response
Response 200
{
  "id" : 123,
  "name" : "My own fulfillment service",
  "handle" : "my-own-fulfillment-service",
  "inventory_management" : true,
  "tracking_support" : true,
  "requires_shipping_method" : true,
  "return_handling" : true,
  "include_pending_stock" : true,
  "credential1" : "user@domain.com",
  "callback_url" : "https://www.my-app.com/fulfillment_service.php",
  "provider_id" : 3,
  "email" : "user@domain.com",
  "created_at" : "2016-05-01 22:00:01"
}
Response default
{
  "errors" : "object"
}

PUT /fulfillment_services/{id}.json

Description

Edits a fulfillment service based on a single ID

Parameters
Type Name Description Schema

Path

id
required

ID of fulfillment service to fetch

integer

Body

fulfillment_service
required

Fulfillment Service to add to the store

FulfillmentService

Responses
HTTP Code Description Schema

200

fulfillment service response

FulfillmentService

default

unexpected error

ErrorModel

Produces
  • application/json

Security
Type Name Scopes

oauth2

oauth2

write_fulfillments

basic

basic_auth

Example HTTP request
Request path
"/fulfillment_services/0.json"
Request body
{
  "id" : 123,
  "name" : "My own fulfillment service",
  "handle" : "my-own-fulfillment-service",
  "inventory_management" : true,
  "tracking_support" : true,
  "requires_shipping_method" : true,
  "return_handling" : true,
  "include_pending_stock" : true,
  "credential1" : "user@domain.com",
  "callback_url" : "https://www.my-app.com/fulfillment_service.php",
  "provider_id" : 3,
  "email" : "user@domain.com",
  "created_at" : "2016-05-01 22:00:01"
}
Example HTTP response
Response 200
{
  "id" : 123,
  "name" : "My own fulfillment service",
  "handle" : "my-own-fulfillment-service",
  "inventory_management" : true,
  "tracking_support" : true,
  "requires_shipping_method" : true,
  "return_handling" : true,
  "include_pending_stock" : true,
  "credential1" : "user@domain.com",
  "callback_url" : "https://www.my-app.com/fulfillment_service.php",
  "provider_id" : 3,
  "email" : "user@domain.com",
  "created_at" : "2016-05-01 22:00:01"
}
Response default
{
  "errors" : "object"
}

DELETE /fulfillment_services/{id}.json

Description

deletes a single fulfillment service based on the ID supplied

Parameters
Type Name Description Schema

Path

id
required

ID of fulfillment service to delete

integer

Responses
HTTP Code Description Schema

200

[]

No Content

default

unexpected error

ErrorModel

Security
Type Name Scopes

oauth2

oauth2

write_fulfillments

basic

basic_auth

Example HTTP request
Request path
"/fulfillment_services/0.json"
Example HTTP response
Response default
{
  "errors" : "object"
}

Orders

POST /orders.json

Description

Creates a new order in the store

Parameters
Type Name Description Schema

Body

order
required

Order to add to the store

Order

Responses
HTTP Code Description Schema

200

order response

Order

default

unexpected error

ErrorModel

Produces
  • application/json

Security
Type Name Scopes

oauth2

oauth2

write_orders

basic

basic_auth

Example HTTP request
Request path
"/orders.json"
Request body
{
  "id" : 34543,
  "name" : "#100033",
  "metafields" : "object",
  "order_number" : 33,
  "hash" : "b65673d761d01a8366d5a1a01e483e7b",
  "email" : "customer@domain.com",
  "created_at" : "2016-05-01 22:00:01",
  "updated_at" : "2016-05-01 22:00:01",
  "payment" : {
    "id" : 123,
    "kind" : "capture",
    "created_at" : "2016-05-01 22:00:01",
    "success" : true,
    "ip" : "127.0.0.1",
    "card_type" : "Visa",
    "card_number" : "XXXX XXXX XXXX 2134",
    "message" : "Capture Successful",
    "amount" : 129.0,
    "test" : false,
    "currency" : "SEK",
    "receipt" : "KK34742D",
    "gateway_title" : "Stripe",
    "gateway_id" : 345
  },
  "payment_price" : 0.0,
  "payment_price_excluding_tax" : 0.0,
  "payment_tax_lines" : {
    "test" : "123123123123"
  },
  "tax_lines" : {
    "test" : "123123123123"
  },
  "tax_price" : 25.8,
  "shop_id" : 23424,
  "shop_name" : "My T-shirt store",
  "subtotal_price" : 129.0,
  "total_weight" : 500,
  "total_price" : 129.0,
  "gateway" : "Stripe",
  "financial_status" : "paid",
  "fulfillment_status" : "unfulfilled",
  "requires_shipping" : true,
  "shipping_price" : 0.0,
  "shipping_price_excluding_tax" : 0.0,
  "shipping_tax_lines" : {
    "test" : "123123123123"
  },
  "shipping_methods" : [ "object" ],
  "shipping_address" : {
    "id" : 543,
    "name" : "Richard Benson",
    "first_name" : "Benson",
    "last_name" : "Benson",
    "street" : "Street 1 apt5",
    "address1" : "Street 1",
    "address2" : "apt5",
    "company" : "Acme Ltd",
    "city" : "Stockholm",
    "phone" : "+467348583493",
    "zip" : "12345",
    "province" : "",
    "country" : "SE",
    "province_code" : "",
    "country_code" : "SE"
  },
  "billing_address" : {
    "id" : 543,
    "name" : "Richard Benson",
    "first_name" : "Benson",
    "last_name" : "Benson",
    "street" : "Street 1 apt5",
    "address1" : "Street 1",
    "address2" : "apt5",
    "company" : "Acme Ltd",
    "city" : "Stockholm",
    "phone" : "+467348583493",
    "zip" : "12345",
    "province" : "",
    "country" : "SE",
    "province_code" : "",
    "country_code" : "SE"
  },
  "line_items" : [ {
    "id" : 123,
    "variant_id" : 34534,
    "product_id" : 24221,
    "quantity" : 1,
    "available_quantity" : 20,
    "product_title" : "T-shirt with flames",
    "variant_title" : "XL / Red / Striped",
    "fulfillable_quantity" : 1,
    "fulfilled_quantity" : 0,
    "refunded_quantity" : 0,
    "featured_image" : {
      "id" : 981,
      "src" : "//cdn.pandacommerce.net/templates/1/1/template/983/assets/add_prod.png?7028",
      "alt" : "My image"
    },
    "fulfillment_service" : "my-own-fulfillment-service",
    "weight" : 500,
    "line_weight" : 500,
    "price" : 129.0,
    "price_excluding_tax" : 129.0,
    "line_price" : 129.0,
    "line_price_excluding_tax" : 129.0,
    "sku" : "XK3334L",
    "inventory_location" : "D6",
    "taxable" : true,
    "requires_shipping" : true,
    "tax_lines" : {
      "test" : "123123123123"
    },
    "title" : "T-shirt with flames - XL / Red / Striped",
    "properties" : "object"
  } ],
  "line_items_price" : 129.0,
  "line_items_price_excluding_tax" : 0.0,
  "line_items_tax_lines" : {
    "test" : "123123123123"
  },
  "transactions" : [ {
    "id" : 123,
    "kind" : "capture",
    "created_at" : "2016-05-01 22:00:01",
    "success" : true,
    "ip" : "127.0.0.1",
    "card_type" : "Visa",
    "card_number" : "XXXX XXXX XXXX 2134",
    "message" : "Capture Successful",
    "amount" : 129.0,
    "test" : false,
    "currency" : "SEK",
    "receipt" : "KK34742D",
    "gateway_title" : "Stripe",
    "gateway_id" : 345
  } ],
  "refunds" : [ {
    "id" : 123,
    "kind" : "capture",
    "created_at" : "2016-05-01 22:00:01",
    "success" : true,
    "ip" : "127.0.0.1",
    "card_type" : "Visa",
    "card_number" : "XXXX XXXX XXXX 2134",
    "message" : "Capture Successful",
    "amount" : 129.0,
    "test" : false,
    "currency" : "SEK",
    "receipt" : "KK34742D",
    "gateway_title" : "Stripe",
    "gateway_id" : 345
  } ],
  "fulfillments" : [ {
    "id" : 123,
    "order_id" : 4364,
    "created_at" : "2016-05-01 22:00:01",
    "status" : "success",
    "fulfillment_service" : {
      "id" : 123,
      "name" : "My own fulfillment service",
      "handle" : "my-own-fulfillment-service",
      "inventory_management" : true,
      "tracking_support" : true,
      "requires_shipping_method" : true,
      "return_handling" : true,
      "include_pending_stock" : true,
      "credential1" : "user@domain.com",
      "callback_url" : "https://www.my-app.com/fulfillment_service.php",
      "provider_id" : 3,
      "email" : "user@domain.com",
      "created_at" : "2016-05-01 22:00:01"
    },
    "fulfillment_service_receipt" : "GS3242",
    "line_items" : [ {
      "id" : 123,
      "variant_id" : 34534,
      "product_id" : 24221,
      "quantity" : 1,
      "available_quantity" : 20,
      "product_title" : "T-shirt with flames",
      "variant_title" : "XL / Red / Striped",
      "fulfillable_quantity" : 1,
      "fulfilled_quantity" : 0,
      "refunded_quantity" : 0,
      "featured_image" : {
        "id" : 981,
        "src" : "//cdn.pandacommerce.net/templates/1/1/template/983/assets/add_prod.png?7028",
        "alt" : "My image"
      },
      "fulfillment_service" : "my-own-fulfillment-service",
      "weight" : 500,
      "line_weight" : 500,
      "price" : 129.0,
      "price_excluding_tax" : 129.0,
      "line_price" : 129.0,
      "line_price_excluding_tax" : 129.0,
      "sku" : "XK3334L",
      "inventory_location" : "D6",
      "taxable" : true,
      "requires_shipping" : true,
      "tax_lines" : {
        "test" : "123123123123"
      },
      "title" : "T-shirt with flames - XL / Red / Striped",
      "properties" : "object"
    } ],
    "tracking_number" : "SE349329492P",
    "tracking_company" : "Standard Post",
    "tracking_company_id" : 232,
    "tracking_url" : "http://www.postcompany.com/?trackid=SE349329492P"
  } ],
  "note" : "Notes about order",
  "attributes" : "object",
  "referring_site" : "http://www.google.com",
  "landing_site" : "http://store.pandacommerce.net/?ref=myblog",
  "landing_site_ref" : "myblog",
  "cancelled" : false,
  "cancelled_at" : "2016-05-01 22:00:01",
  "cancel_reason" : "other",
  "refunded_amount" : 0.0,
  "discount_code" : "DISCOUNT20",
  "tags" : [ "string" ],
  "currency" : "SEK",
  "customer" : {
    "id" : 9348,
    "shop_id" : 23424,
    "shop_name" : "My T-shirt store",
    "email" : "customer@domain.com",
    "metafields" : "object",
    "status" : "enabled",
    "name" : "Richard Benson",
    "first_name" : "Richard",
    "last_name" : "Benson",
    "company" : "Acme Ltd",
    "note" : "Notes about customer",
    "tags" : [ "string" ],
    "accepts_marketing" : true,
    "total_spent" : 129.0,
    "addresses_count" : 1,
    "orders_count" : 1,
    "orders" : [ {
      "id" : 34543,
      "name" : "#100033",
      "metafields" : "object",
      "order_number" : 33,
      "hash" : "b65673d761d01a8366d5a1a01e483e7b",
      "email" : "customer@domain.com",
      "created_at" : "2016-05-01 22:00:01",
      "updated_at" : "2016-05-01 22:00:01",
      "payment" : {
        "id" : 123,
        "kind" : "capture",
        "created_at" : "2016-05-01 22:00:01",
        "success" : true,
        "ip" : "127.0.0.1",
        "card_type" : "Visa",
        "card_number" : "XXXX XXXX XXXX 2134",
        "message" : "Capture Successful",
        "amount" : 129.0,
        "test" : false,
        "currency" : "SEK",
        "receipt" : "KK34742D",
        "gateway_title" : "Stripe",
        "gateway_id" : 345
      },
      "payment_price" : 0.0,
      "payment_price_excluding_tax" : 0.0,
      "payment_tax_lines" : {
        "test" : "123123123123"
      },
      "tax_lines" : {
        "test" : "123123123123"
      },
      "tax_price" : 25.8,
      "shop_id" : 23424,
      "shop_name" : "My T-shirt store",
      "subtotal_price" : 129.0,
      "total_weight" : 500,
      "total_price" : 129.0,
      "gateway" : "Stripe",
      "financial_status" : "paid",
      "fulfillment_status" : "unfulfilled",
      "requires_shipping" : true,
      "shipping_price" : 0.0,
      "shipping_price_excluding_tax" : 0.0,
      "shipping_tax_lines" : {
        "test" : "123123123123"
      },
      "shipping_methods" : [ "object" ],
      "shipping_address" : {
        "id" : 543,
        "name" : "Richard Benson",
        "first_name" : "Benson",
        "last_name" : "Benson",
        "street" : "Street 1 apt5",
        "address1" : "Street 1",
        "address2" : "apt5",
        "company" : "Acme Ltd",
        "city" : "Stockholm",
        "phone" : "+467348583493",
        "zip" : "12345",
        "province" : "",
        "country" : "SE",
        "province_code" : "",
        "country_code" : "SE"
      },
      "billing_address" : {
        "id" : 543,
        "name" : "Richard Benson",
        "first_name" : "Benson",
        "last_name" : "Benson",
        "street" : "Street 1 apt5",
        "address1" : "Street 1",
        "address2" : "apt5",
        "company" : "Acme Ltd",
        "city" : "Stockholm",
        "phone" : "+467348583493",
        "zip" : "12345",
        "province" : "",
        "country" : "SE",
        "province_code" : "",
        "country_code" : "SE"
      },
      "line_items" : [ {
        "id" : 123,
        "variant_id" : 34534,
        "product_id" : 24221,
        "quantity" : 1,
        "available_quantity" : 20,
        "product_title" : "T-shirt with flames",
        "variant_title" : "XL / Red / Striped",
        "fulfillable_quantity" : 1,
        "fulfilled_quantity" : 0,
        "refunded_quantity" : 0,
        "featured_image" : {
          "id" : 981,
          "src" : "//cdn.pandacommerce.net/templates/1/1/template/983/assets/add_prod.png?7028",
          "alt" : "My image"
        },
        "fulfillment_service" : "my-own-fulfillment-service",
        "weight" : 500,
        "line_weight" : 500,
        "price" : 129.0,
        "price_excluding_tax" : 129.0,
        "line_price" : 129.0,
        "line_price_excluding_tax" : 129.0,
        "sku" : "XK3334L",
        "inventory_location" : "D6",
        "taxable" : true,
        "requires_shipping" : true,
        "tax_lines" : {
          "test" : "123123123123"
        },
        "title" : "T-shirt with flames - XL / Red / Striped",
        "properties" : "object"
      } ],
      "line_items_price" : 129.0,
      "line_items_price_excluding_tax" : 0.0,
      "line_items_tax_lines" : {
        "test" : "123123123123"
      },
      "transactions" : [ {
        "id" : 123,
        "kind" : "capture",
        "created_at" : "2016-05-01 22:00:01",
        "success" : true,
        "ip" : "127.0.0.1",
        "card_type" : "Visa",
        "card_number" : "XXXX XXXX XXXX 2134",
        "message" : "Capture Successful",
        "amount" : 129.0,
        "test" : false,
        "currency" : "SEK",
        "receipt" : "KK34742D",
        "gateway_title" : "Stripe",
        "gateway_id" : 345
      } ],
      "refunds" : [ {
        "id" : 123,
        "kind" : "capture",
        "created_at" : "2016-05-01 22:00:01",
        "success" : true,
        "ip" : "127.0.0.1",
        "card_type" : "Visa",
        "card_number" : "XXXX XXXX XXXX 2134",
        "message" : "Capture Successful",
        "amount" : 129.0,
        "test" : false,
        "currency" : "SEK",
        "receipt" : "KK34742D",
        "gateway_title" : "Stripe",
        "gateway_id" : 345
      } ],
      "fulfillments" : [ {
        "id" : 123,
        "order_id" : 4364,
        "created_at" : "2016-05-01 22:00:01",
        "status" : "success",
        "fulfillment_service" : {
          "id" : 123,
          "name" : "My own fulfillment service",
          "handle" : "my-own-fulfillment-service",
          "inventory_management" : true,
          "tracking_support" : true,
          "requires_shipping_method" : true,
          "return_handling" : true,
          "include_pending_stock" : true,
          "credential1" : "user@domain.com",
          "callback_url" : "https://www.my-app.com/fulfillment_service.php",
          "provider_id" : 3,
          "email" : "user@domain.com",
          "created_at" : "2016-05-01 22:00:01"
        },
        "fulfillment_service_receipt" : "GS3242",
        "line_items" : [ {
          "id" : 123,
          "variant_id" : 34534,
          "product_id" : 24221,
          "quantity" : 1,
          "available_quantity" : 20,
          "product_title" : "T-shirt with flames",
          "variant_title" : "XL / Red / Striped",
          "fulfillable_quantity" : 1,
          "fulfilled_quantity" : 0,
          "refunded_quantity" : 0,
          "featured_image" : {
            "id" : 981,
            "src" : "//cdn.pandacommerce.net/templates/1/1/template/983/assets/add_prod.png?7028",
            "alt" : "My image"
          },
          "fulfillment_service" : "my-own-fulfillment-service",
          "weight" : 500,
          "line_weight" : 500,
          "price" : 129.0,
          "price_excluding_tax" : 129.0,
          "line_price" : 129.0,
          "line_price_excluding_tax" : 129.0,
          "sku" : "XK3334L",
          "inventory_location" : "D6",
          "taxable" : true,
          "requires_shipping" : true,
          "tax_lines" : {
            "test" : "123123123123"
          },
          "title" : "T-shirt with flames - XL / Red / Striped",
          "properties" : "object"
        } ],
        "tracking_number" : "SE349329492P",
        "tracking_company" : "Standard Post",
        "tracking_company_id" : 232,
        "tracking_url" : "http://www.postcompany.com/?trackid=SE349329492P"
      } ],
      "note" : "Notes about order",
      "attributes" : "object",
      "referring_site" : "http://www.google.com",
      "landing_site" : "http://store.pandacommerce.net/?ref=myblog",
      "landing_site_ref" : "myblog",
      "cancelled" : false,
      "cancelled_at" : "2016-05-01 22:00:01",
      "cancel_reason" : "other",
      "refunded_amount" : 0.0,
      "discount_code" : "DISCOUNT20",
      "tags" : [ "string" ],
      "currency" : "SEK",
      "customer" : {
        "id" : 9348,
        "shop_id" : 23424,
        "shop_name" : "My T-shirt store",
        "email" : "customer@domain.com",
        "metafields" : "object",
        "status" : "enabled",
        "name" : "Richard Benson",
        "first_name" : "Richard",
        "last_name" : "Benson",
        "company" : "Acme Ltd",
        "note" : "Notes about customer",
        "tags" : [ "string" ],
        "accepts_marketing" : true,
        "total_spent" : 129.0,
        "addresses_count" : 1,
        "orders_count" : 1,
        "orders" : [ "..." ],
        "last_order" : "...",
        "addresses" : [ {
          "id" : 543,
          "name" : "Richard Benson",
          "first_name" : "Benson",
          "last_name" : "Benson",
          "street" : "Street 1 apt5",
          "address1" : "Street 1",
          "address2" : "apt5",
          "company" : "Acme Ltd",
          "city" : "Stockholm",
          "phone" : "+467348583493",
          "zip" : "12345",
          "province" : "",
          "country" : "SE",
          "province_code" : "",
          "country_code" : "SE"
        } ],
        "default_address" : {
          "id" : 543,
          "name" : "Richard Benson",
          "first_name" : "Benson",
          "last_name" : "Benson",
          "street" : "Street 1 apt5",
          "address1" : "Street 1",
          "address2" : "apt5",
          "company" : "Acme Ltd",
          "city" : "Stockholm",
          "phone" : "+467348583493",
          "zip" : "12345",
          "province" : "",
          "country" : "SE",
          "province_code" : "",
          "country_code" : "SE"
        },
        "addresses_option_tags" : "<option.....>Richard Benson, SE</option>",
        "reset_password_url" : "https://store.pandacommerce.net/account/reset/2938809835f3135a3ea8ba30b104154b",
        "account_activation_url" : "https://store.pandacommerce.net/account/activate/2938809835f3135a3ea8ba30b104154b"
      },
      "url" : "https://checkout.pandacommerce.net/order/b65673d761d01a8366d5a1a01e483e7b",
      "checkout_url" : "https://checkout.pandacommerce.net/complete/b65673d761d01a8366d5a1a01e483e7b",
      "customer_url" : "https://store.pandacommerce.net/account/order/34543",
      "open" : true
    } ],
    "last_order" : "...",
    "addresses" : [ {
      "id" : 543,
      "name" : "Richard Benson",
      "first_name" : "Benson",
      "last_name" : "Benson",
      "street" : "Street 1 apt5",
      "address1" : "Street 1",
      "address2" : "apt5",
      "company" : "Acme Ltd",
      "city" : "Stockholm",
      "phone" : "+467348583493",
      "zip" : "12345",
      "province" : "",
      "country" : "SE",
      "province_code" : "",
      "country_code" : "SE"
    } ],
    "default_address" : {
      "id" : 543,
      "name" : "Richard Benson",
      "first_name" : "Benson",
      "last_name" : "Benson",
      "street" : "Street 1 apt5",
      "address1" : "Street 1",
      "address2" : "apt5",
      "company" : "Acme Ltd",
      "city" : "Stockholm",
      "phone" : "+467348583493",
      "zip" : "12345",
      "province" : "",
      "country" : "SE",
      "province_code" : "",
      "country_code" : "SE"
    },
    "addresses_option_tags" : "<option.....>Richard Benson, SE</option>",
    "reset_password_url" : "https://store.pandacommerce.net/account/reset/2938809835f3135a3ea8ba30b104154b",
    "account_activation_url" : "https://store.pandacommerce.net/account/activate/2938809835f3135a3ea8ba30b104154b"
  },
  "url" : "https://checkout.pandacommerce.net/order/b65673d761d01a8366d5a1a01e483e7b",
  "checkout_url" : "https://checkout.pandacommerce.net/complete/b65673d761d01a8366d5a1a01e483e7b",
  "customer_url" : "https://store.pandacommerce.net/account/order/34543",
  "open" : true
}
Example HTTP response
Response 200
{
  "id" : 34543,
  "name" : "#100033",
  "metafields" : "object",
  "order_number" : 33,
  "hash" : "b65673d761d01a8366d5a1a01e483e7b",
  "email" : "customer@domain.com",
  "created_at" : "2016-05-01 22:00:01",
  "updated_at" : "2016-05-01 22:00:01",
  "payment" : {
    "id" : 123,
    "kind" : "capture",
    "created_at" : "2016-05-01 22:00:01",
    "success" : true,
    "ip" : "127.0.0.1",
    "card_type" : "Visa",
    "card_number" : "XXXX XXXX XXXX 2134",
    "message" : "Capture Successful",
    "amount" : 129.0,
    "test" : false,
    "currency" : "SEK",
    "receipt" : "KK34742D",
    "gateway_title" : "Stripe",
    "gateway_id" : 345
  },
  "payment_price" : 0.0,
  "payment_price_excluding_tax" : 0.0,
  "payment_tax_lines" : {
    "test" : "123123123123"
  },
  "tax_lines" : {
    "test" : "123123123123"
  },
  "tax_price" : 25.8,
  "shop_id" : 23424,
  "shop_name" : "My T-shirt store",
  "subtotal_price" : 129.0,
  "total_weight" : 500,
  "total_price" : 129.0,
  "gateway" : "Stripe",
  "financial_status" : "paid",
  "fulfillment_status" : "unfulfilled",
  "requires_shipping" : true,
  "shipping_price" : 0.0,
  "shipping_price_excluding_tax" : 0.0,
  "shipping_tax_lines" : {
    "test" : "123123123123"
  },
  "shipping_methods" : [ "object" ],
  "shipping_address" : {
    "id" : 543,
    "name" : "Richard Benson",
    "first_name" : "Benson",
    "last_name" : "Benson",
    "street" : "Street 1 apt5",
    "address1" : "Street 1",
    "address2" : "apt5",
    "company" : "Acme Ltd",
    "city" : "Stockholm",
    "phone" : "+467348583493",
    "zip" : "12345",
    "province" : "",
    "country" : "SE",
    "province_code" : "",
    "country_code" : "SE"
  },
  "billing_address" : {
    "id" : 543,
    "name" : "Richard Benson",
    "first_name" : "Benson",
    "last_name" : "Benson",
    "street" : "Street 1 apt5",
    "address1" : "Street 1",
    "address2" : "apt5",
    "company" : "Acme Ltd",
    "city" : "Stockholm",
    "phone" : "+467348583493",
    "zip" : "12345",
    "province" : "",
    "country" : "SE",
    "province_code" : "",
    "country_code" : "SE"
  },
  "line_items" : [ {
    "id" : 123,
    "variant_id" : 34534,
    "product_id" : 24221,
    "quantity" : 1,
    "available_quantity" : 20,
    "product_title" : "T-shirt with flames",
    "variant_title" : "XL / Red / Striped",
    "fulfillable_quantity" : 1,
    "fulfilled_quantity" : 0,
    "refunded_quantity" : 0,
    "featured_image" : {
      "id" : 981,
      "src" : "//cdn.pandacommerce.net/templates/1/1/template/983/assets/add_prod.png?7028",
      "alt" : "My image"
    },
    "fulfillment_service" : "my-own-fulfillment-service",
    "weight" : 500,
    "line_weight" : 500,
    "price" : 129.0,
    "price_excluding_tax" : 129.0,
    "line_price" : 129.0,
    "line_price_excluding_tax" : 129.0,
    "sku" : "XK3334L",
    "inventory_location" : "D6",
    "taxable" : true,
    "requires_shipping" : true,
    "tax_lines" : {
      "test" : "123123123123"
    },
    "title" : "T-shirt with flames - XL / Red / Striped",
    "properties" : "object"
  } ],
  "line_items_price" : 129.0,
  "line_items_price_excluding_tax" : 0.0,
  "line_items_tax_lines" : {
    "test" : "123123123123"
  },
  "transactions" : [ {
    "id" : 123,
    "kind" : "capture",
    "created_at" : "2016-05-01 22:00:01",
    "success" : true,
    "ip" : "127.0.0.1",
    "card_type" : "Visa",
    "card_number" : "XXXX XXXX XXXX 2134",
    "message" : "Capture Successful",
    "amount" : 129.0,
    "test" : false,
    "currency" : "SEK",
    "receipt" : "KK34742D",
    "gateway_title" : "Stripe",
    "gateway_id" : 345
  } ],
  "refunds" : [ {
    "id" : 123,
    "kind" : "capture",
    "created_at" : "2016-05-01 22:00:01",
    "success" : true,
    "ip" : "127.0.0.1",
    "card_type" : "Visa",
    "card_number" : "XXXX XXXX XXXX 2134",
    "message" : "Capture Successful",
    "amount" : 129.0,
    "test" : false,
    "currency" : "SEK",
    "receipt" : "KK34742D",
    "gateway_title" : "Stripe",
    "gateway_id" : 345
  } ],
  "fulfillments" : [ {
    "id" : 123,
    "order_id" : 4364,
    "created_at" : "2016-05-01 22:00:01",
    "status" : "success",
    "fulfillment_service" : {
      "id" : 123,
      "name" : "My own fulfillment service",
      "handle" : "my-own-fulfillment-service",
      "inventory_management" : true,
      "tracking_support" : true,
      "requires_shipping_method" : true,
      "return_handling" : true,
      "include_pending_stock" : true,
      "credential1" : "user@domain.com",
      "callback_url" : "https://www.my-app.com/fulfillment_service.php",
      "provider_id" : 3,
      "email" : "user@domain.com",
      "created_at" : "2016-05-01 22:00:01"
    },
    "fulfillment_service_receipt" : "GS3242",
    "line_items" : [ {
      "id" : 123,
      "variant_id" : 34534,
      "product_id" : 24221,
      "quantity" : 1,
      "available_quantity" : 20,
      "product_title" : "T-shirt with flames",
      "variant_title" : "XL / Red / Striped",
      "fulfillable_quantity" : 1,
      "fulfilled_quantity" : 0,
      "refunded_quantity" : 0,
      "featured_image" : {
        "id" : 981,
        "src" : "//cdn.pandacommerce.net/templates/1/1/template/983/assets/add_prod.png?7028",
        "alt" : "My image"
      },
      "fulfillment_service" : "my-own-fulfillment-service",
      "weight" : 500,
      "line_weight" : 500,
      "price" : 129.0,
      "price_excluding_tax" : 129.0,
      "line_price" : 129.0,
      "line_price_excluding_tax" : 129.0,
      "sku" : "XK3334L",
      "inventory_location" : "D6",
      "taxable" : true,
      "requires_shipping" : true,
      "tax_lines" : {
        "test" : "123123123123"
      },
      "title" : "T-shirt with flames - XL / Red / Striped",
      "properties" : "object"
    } ],
    "tracking_number" : "SE349329492P",
    "tracking_company" : "Standard Post",
    "tracking_company_id" : 232,
    "tracking_url" : "http://www.postcompany.com/?trackid=SE349329492P"
  } ],
  "note" : "Notes about order",
  "attributes" : "object",
  "referring_site" : "http://www.google.com",
  "landing_site" : "http://store.pandacommerce.net/?ref=myblog",
  "landing_site_ref" : "myblog",
  "cancelled" : false,
  "cancelled_at" : "2016-05-01 22:00:01",
  "cancel_reason" : "other",
  "refunded_amount" : 0.0,
  "discount_code" : "DISCOUNT20",
  "tags" : [ "string" ],
  "currency" : "SEK",
  "customer" : {
    "id" : 9348,
    "shop_id" : 23424,
    "shop_name" : "My T-shirt store",
    "email" : "customer@domain.com",
    "metafields" : "object",
    "status" : "enabled",
    "name" : "Richard Benson",
    "first_name" : "Richard",
    "last_name" : "Benson",
    "company" : "Acme Ltd",
    "note" : "Notes about customer",
    "tags" : [ "string" ],
    "accepts_marketing" : true,
    "total_spent" : 129.0,
    "addresses_count" : 1,
    "orders_count" : 1,
    "orders" : [ {
      "id" : 34543,
      "name" : "#100033",
      "metafields" : "object",
      "order_number" : 33,
      "hash" : "b65673d761d01a8366d5a1a01e483e7b",
      "email" : "customer@domain.com",
      "created_at" : "2016-05-01 22:00:01",
      "updated_at" : "2016-05-01 22:00:01",
      "payment" : {
        "id" : 123,
        "kind" : "capture",
        "created_at" : "2016-05-01 22:00:01",
        "success" : true,
        "ip" : "127.0.0.1",
        "card_type" : "Visa",
        "card_number" : "XXXX XXXX XXXX 2134",
        "message" : "Capture Successful",
        "amount" : 129.0,
        "test" : false,
        "currency" : "SEK",
        "receipt" : "KK34742D",
        "gateway_title" : "Stripe",
        "gateway_id" : 345
      },
      "payment_price" : 0.0,
      "payment_price_excluding_tax" : 0.0,
      "payment_tax_lines" : {
        "test" : "123123123123"
      },
      "tax_lines" : {
        "test" : "123123123123"
      },
      "tax_price" : 25.8,
      "shop_id" : 23424,
      "shop_name" : "My T-shirt store",
      "subtotal_price" : 129.0,
      "total_weight" : 500,
      "total_price" : 129.0,
      "gateway" : "Stripe",
      "financial_status" : "paid",
      "fulfillment_status" : "unfulfilled",
      "requires_shipping" : true,
      "shipping_price" : 0.0,
      "shipping_price_excluding_tax" : 0.0,
      "shipping_tax_lines" : {
        "test" : "123123123123"
      },
      "shipping_methods" : [ "object" ],
      "shipping_address" : {
        "id" : 543,
        "name" : "Richard Benson",
        "first_name" : "Benson",
        "last_name" : "Benson",
        "street" : "Street 1 apt5",
        "address1" : "Street 1",
        "address2" : "apt5",
        "company" : "Acme Ltd",
        "city" : "Stockholm",
        "phone" : "+467348583493",
        "zip" : "12345",
        "province" : "",
        "country" : "SE",
        "province_code" : "",
        "country_code" : "SE"
      },
      "billing_address" : {
        "id" : 543,
        "name" : "Richard Benson",
        "first_name" : "Benson",
        "last_name" : "Benson",
        "street" : "Street 1 apt5",
        "address1" : "Street 1",
        "address2" : "apt5",
        "company" : "Acme Ltd",
        "city" : "Stockholm",
        "phone" : "+467348583493",
        "zip" : "12345",
        "province" : "",
        "country" : "SE",
        "province_code" : "",
        "country_code" : "SE"
      },
      "line_items" : [ {
        "id" : 123,
        "variant_id" : 34534,
        "product_id" : 24221,
        "quantity" : 1,
        "available_quantity" : 20,
        "product_title" : "T-shirt with flames",
        "variant_title" : "XL / Red / Striped",
        "fulfillable_quantity" : 1,
        "fulfilled_quantity" : 0,
        "refunded_quantity" : 0,
        "featured_image" : {
          "id" : 981,
          "src" : "//cdn.pandacommerce.net/templates/1/1/template/983/assets/add_prod.png?7028",
          "alt" : "My image"
        },
        "fulfillment_service" : "my-own-fulfillment-service",
        "weight" : 500,
        "line_weight" : 500,
        "price" : 129.0,
        "price_excluding_tax" : 129.0,
        "line_price" : 129.0,
        "line_price_excluding_tax" : 129.0,
        "sku" : "XK3334L",
        "inventory_location" : "D6",
        "taxable" : true,
        "requires_shipping" : true,
        "tax_lines" : {
          "test" : "123123123123"
        },
        "title" : "T-shirt with flames - XL / Red / Striped",
        "properties" : "object"
      } ],
      "line_items_price" : 129.0,
      "line_items_price_excluding_tax" : 0.0,
      "line_items_tax_lines" : {
        "test" : "123123123123"
      },
      "transactions" : [ {
        "id" : 123,
        "kind" : "capture",
        "created_at" : "2016-05-01 22:00:01",
        "success" : true,
        "ip" : "127.0.0.1",
        "card_type" : "Visa",
        "card_number" : "XXXX XXXX XXXX 2134",
        "message" : "Capture Successful",
        "amount" : 129.0,
        "test" : false,
        "currency" : "SEK",
        "receipt" : "KK34742D",
        "gateway_title" : "Stripe",
        "gateway_id" : 345
      } ],
      "refunds" : [ {
        "id" : 123,
        "kind" : "capture",
        "created_at" : "2016-05-01 22:00:01",
        "success" : true,
        "ip" : "127.0.0.1",
        "card_type" : "Visa",
        "card_number" : "XXXX XXXX XXXX 2134",
        "message" : "Capture Successful",
        "amount" : 129.0,
        "test" : false,
        "currency" : "SEK",
        "receipt" : "KK34742D",
        "gateway_title" : "Stripe",
        "gateway_id" : 345
      } ],
      "fulfillments" : [ {
        "id" : 123,
        "order_id" : 4364,
        "created_at" : "2016-05-01 22:00:01",
        "status" : "success",
        "fulfillment_service" : {
          "id" : 123,
          "name" : "My own fulfillment service",
          "handle" : "my-own-fulfillment-service",
          "inventory_management" : true,
          "tracking_support" : true,
          "requires_shipping_method" : true,
          "return_handling" : true,
          "include_pending_stock" : true,
          "credential1" : "user@domain.com",
          "callback_url" : "https://www.my-app.com/fulfillment_service.php",
          "provider_id" : 3,
          "email" : "user@domain.com",
          "created_at" : "2016-05-01 22:00:01"
        },
        "fulfillment_service_receipt" : "GS3242",
        "line_items" : [ {
          "id" : 123,
          "variant_id" : 34534,
          "product_id" : 24221,
          "quantity" : 1,
          "available_quantity" : 20,
          "product_title" : "T-shirt with flames",
          "variant_title" : "XL / Red / Striped",
          "fulfillable_quantity" : 1,
          "fulfilled_quantity" : 0,
          "refunded_quantity" : 0,
          "featured_image" : {
            "id" : 981,
            "src" : "//cdn.pandacommerce.net/templates/1/1/template/983/assets/add_prod.png?7028",
            "alt" : "My image"
          },
          "fulfillment_service" : "my-own-fulfillment-service",
          "weight" : 500,
          "line_weight" : 500,
          "price" : 129.0,
          "price_excluding_tax" : 129.0,
          "line_price" : 129.0,
          "line_price_excluding_tax" : 129.0,
          "sku" : "XK3334L",
          "inventory_location" : "D6",
          "taxable" : true,
          "requires_shipping" : true,
          "tax_lines" : {
            "test" : "123123123123"
          },
          "title" : "T-shirt with flames - XL / Red / Striped",
          "properties" : "object"
        } ],
        "tracking_number" : "SE349329492P",
        "tracking_company" : "Standard Post",
        "tracking_company_id" : 232,
        "tracking_url" : "http://www.postcompany.com/?trackid=SE349329492P"
      } ],
      "note" : "Notes about order",
      "attributes" : "object",
      "referring_site" : "http://www.google.com",
      "landing_site" : "http://store.pandacommerce.net/?ref=myblog",
      "landing_site_ref" : "myblog",
      "cancelled" : false,
      "cancelled_at" : "2016-05-01 22:00:01",
      "cancel_reason" : "other",
      "refunded_amount" : 0.0,
      "discount_code" : "DISCOUNT20",
      "tags" : [ "string" ],
      "currency" : "SEK",
      "customer" : {
        "id" : 9348,
        "shop_id" : 23424,
        "shop_name" : "My T-shirt store",
        "email" : "customer@domain.com",
        "metafields" : "object",
        "status" : "enabled",
        "name" : "Richard Benson",
        "first_name" : "Richard",
        "last_name" : "Benson",
        "company" : "Acme Ltd",
        "note" : "Notes about customer",
        "tags" : [ "string" ],
        "accepts_marketing" : true,
        "total_spent" : 129.0,
        "addresses_count" : 1,
        "orders_count" : 1,
        "orders" : [ "..." ],
        "last_order" : "...",
        "addresses" : [ {
          "id" : 543,
          "name" : "Richard Benson",
          "first_name" : "Benson",
          "last_name" : "Benson",
          "street" : "Street 1 apt5",
          "address1" : "Street 1",
          "address2" : "apt5",
          "company" : "Acme Ltd",
          "city" : "Stockholm",
          "phone" : "+467348583493",
          "zip" : "12345",
          "province" : "",
          "country" : "SE",
          "province_code" : "",
          "country_code" : "SE"
        } ],
        "default_address" : {
          "id" : 543,
          "name" : "Richard Benson",
          "first_name" : "Benson",
          "last_name" : "Benson",
          "street" : "Street 1 apt5",
          "address1" : "Street 1",
          "address2" : "apt5",
          "company" : "Acme Ltd",
          "city" : "Stockholm",
          "phone" : "+467348583493",
          "zip" : "12345",
          "province" : "",
          "country" : "SE",
          "province_code" : "",
          "country_code" : "SE"
        },
        "addresses_option_tags" : "<option.....>Richard Benson, SE</option>",
        "reset_password_url" : "https://store.pandacommerce.net/account/reset/2938809835f3135a3ea8ba30b104154b",
        "account_activation_url" : "https://store.pandacommerce.net/account/activate/2938809835f3135a3ea8ba30b104154b"
      },
      "url" : "https://checkout.pandacommerce.net/order/b65673d761d01a8366d5a1a01e483e7b",
      "checkout_url" : "https://checkout.pandacommerce.net/complete/b65673d761d01a8366d5a1a01e483e7b",
      "customer_url" : "https://store.pandacommerce.net/account/order/34543",
      "open" : true
    } ],
    "last_order" : "...",
    "addresses" : [ {
      "id" : 543,
      "name" : "Richard Benson",
      "first_name" : "Benson",
      "last_name" : "Benson",
      "street" : "Street 1 apt5",
      "address1" : "Street 1",
      "address2" : "apt5",
      "company" : "Acme Ltd",
      "city" : "Stockholm",
      "phone" : "+467348583493",
      "zip" : "12345",
      "province" : "",
      "country" : "SE",
      "province_code" : "",
      "country_code" : "SE"
    } ],
    "default_address" : {
      "id" : 543,
      "name" : "Richard Benson",
      "first_name" : "Benson",
      "last_name" : "Benson",
      "street" : "Street 1 apt5",
      "address1" : "Street 1",
      "address2" : "apt5",
      "company" : "Acme Ltd",
      "city" : "Stockholm",
      "phone" : "+467348583493",
      "zip" : "12345",
      "province" : "",
      "country" : "SE",
      "province_code" : "",
      "country_code" : "SE"
    },
    "addresses_option_tags" : "<option.....>Richard Benson, SE</option>",
    "reset_password_url" : "https://store.pandacommerce.net/account/reset/2938809835f3135a3ea8ba30b104154b",
    "account_activation_url" : "https://store.pandacommerce.net/account/activate/2938809835f3135a3ea8ba30b104154b"
  },
  "url" : "https://checkout.pandacommerce.net/order/b65673d761d01a8366d5a1a01e483e7b",
  "checkout_url" : "https://checkout.pandacommerce.net/complete/b65673d761d01a8366d5a1a01e483e7b",
  "customer_url" : "https://store.pandacommerce.net/account/order/34543",
  "open" : true
}
Response default
{
  "errors" : "object"
}

GET /orders.json

Description

Returns all orders from the system that the user has access to

Parameters
Type Name Description Schema

Query

fields
optional

fields to return

< string > array

Query

limit
optional

maximum number of results to return (default 50)

integer

Query

offset
optional

result offset (default 0)

integer

Query

sorting
optional

sorting (title-asc,desc or published_at-asc,desc)

string

Responses
HTTP Code Description Schema

200

order response

< Order > array

default

unexpected error

ErrorModel

Produces
  • application/json

Security
Type Name Scopes

oauth2

oauth2

write_orders,read_orders

basic

basic_auth

Example HTTP request
Request path
"/orders.json"
Request query
{
  "fields" : "string",
  "limit" : 0,
  "offset" : 0,
  "sorting" : "string"
}
Example HTTP response
Response 200
"array"
Response default
{
  "errors" : "object"
}

GET /orders/{id}.json

Description

Returns an order based on a single ID

Parameters
Type Name Description Schema

Path

id
required

ID of order to fetch

integer

Responses
HTTP Code Description Schema

200

order response

Order

default

unexpected error

ErrorModel

Produces
  • application/json

Security
Type Name Scopes

oauth2

oauth2

write_orders,read_orders

basic

basic_auth

Example HTTP request
Request path
"/orders/0.json"
Example HTTP response
Response 200
{
  "id" : 34543,
  "name" : "#100033",
  "metafields" : "object",
  "order_number" : 33,
  "hash" : "b65673d761d01a8366d5a1a01e483e7b",
  "email" : "customer@domain.com",
  "created_at" : "2016-05-01 22:00:01",
  "updated_at" : "2016-05-01 22:00:01",
  "payment" : {
    "id" : 123,
    "kind" : "capture",
    "created_at" : "2016-05-01 22:00:01",
    "success" : true,
    "ip" : "127.0.0.1",
    "card_type" : "Visa",
    "card_number" : "XXXX XXXX XXXX 2134",
    "message" : "Capture Successful",
    "amount" : 129.0,
    "test" : false,
    "currency" : "SEK",
    "receipt" : "KK34742D",
    "gateway_title" : "Stripe",
    "gateway_id" : 345
  },
  "payment_price" : 0.0,
  "payment_price_excluding_tax" : 0.0,
  "payment_tax_lines" : {
    "test" : "123123123123"
  },
  "tax_lines" : {
    "test" : "123123123123"
  },
  "tax_price" : 25.8,
  "shop_id" : 23424,
  "shop_name" : "My T-shirt store",
  "subtotal_price" : 129.0,
  "total_weight" : 500,
  "total_price" : 129.0,
  "gateway" : "Stripe",
  "financial_status" : "paid",
  "fulfillment_status" : "unfulfilled",
  "requires_shipping" : true,
  "shipping_price" : 0.0,
  "shipping_price_excluding_tax" : 0.0,
  "shipping_tax_lines" : {
    "test" : "123123123123"
  },
  "shipping_methods" : [ "object" ],
  "shipping_address" : {
    "id" : 543,
    "name" : "Richard Benson",
    "first_name" : "Benson",
    "last_name" : "Benson",
    "street" : "Street 1 apt5",
    "address1" : "Street 1",
    "address2" : "apt5",
    "company" : "Acme Ltd",
    "city" : "Stockholm",
    "phone" : "+467348583493",
    "zip" : "12345",
    "province" : "",
    "country" : "SE",
    "province_code" : "",
    "country_code" : "SE"
  },
  "billing_address" : {
    "id" : 543,
    "name" : "Richard Benson",
    "first_name" : "Benson",
    "last_name" : "Benson",
    "street" : "Street 1 apt5",
    "address1" : "Street 1",
    "address2" : "apt5",
    "company" : "Acme Ltd",
    "city" : "Stockholm",
    "phone" : "+467348583493",
    "zip" : "12345",
    "province" : "",
    "country" : "SE",
    "province_code" : "",
    "country_code" : "SE"
  },
  "line_items" : [ {
    "id" : 123,
    "variant_id" : 34534,
    "product_id" : 24221,
    "quantity" : 1,
    "available_quantity" : 20,
    "product_title" : "T-shirt with flames",
    "variant_title" : "XL / Red / Striped",
    "fulfillable_quantity" : 1,
    "fulfilled_quantity" : 0,
    "refunded_quantity" : 0,
    "featured_image" : {
      "id" : 981,
      "src" : "//cdn.pandacommerce.net/templates/1/1/template/983/assets/add_prod.png?7028",
      "alt" : "My image"
    },
    "fulfillment_service" : "my-own-fulfillment-service",
    "weight" : 500,
    "line_weight" : 500,
    "price" : 129.0,
    "price_excluding_tax" : 129.0,
    "line_price" : 129.0,
    "line_price_excluding_tax" : 129.0,
    "sku" : "XK3334L",
    "inventory_location" : "D6",
    "taxable" : true,
    "requires_shipping" : true,
    "tax_lines" : {
      "test" : "123123123123"
    },
    "title" : "T-shirt with flames - XL / Red / Striped",
    "properties" : "object"
  } ],
  "line_items_price" : 129.0,
  "line_items_price_excluding_tax" : 0.0,
  "line_items_tax_lines" : {
    "test" : "123123123123"
  },
  "transactions" : [ {
    "id" : 123,
    "kind" : "capture",
    "created_at" : "2016-05-01 22:00:01",
    "success" : true,
    "ip" : "127.0.0.1",
    "card_type" : "Visa",
    "card_number" : "XXXX XXXX XXXX 2134",
    "message" : "Capture Successful",
    "amount" : 129.0,
    "test" : false,
    "currency" : "SEK",
    "receipt" : "KK34742D",
    "gateway_title" : "Stripe",
    "gateway_id" : 345
  } ],
  "refunds" : [ {
    "id" : 123,
    "kind" : "capture",
    "created_at" : "2016-05-01 22:00:01",
    "success" : true,
    "ip" : "127.0.0.1",
    "card_type" : "Visa",
    "card_number" : "XXXX XXXX XXXX 2134",
    "message" : "Capture Successful",
    "amount" : 129.0,
    "test" : false,
    "currency" : "SEK",
    "receipt" : "KK34742D",
    "gateway_title" : "Stripe",
    "gateway_id" : 345
  } ],
  "fulfillments" : [ {
    "id" : 123,
    "order_id" : 4364,
    "created_at" : "2016-05-01 22:00:01",
    "status" : "success",
    "fulfillment_service" : {
      "id" : 123,
      "name" : "My own fulfillment service",
      "handle" : "my-own-fulfillment-service",
      "inventory_management" : true,
      "tracking_support" : true,
      "requires_shipping_method" : true,
      "return_handling" : true,
      "include_pending_stock" : true,
      "credential1" : "user@domain.com",
      "callback_url" : "https://www.my-app.com/fulfillment_service.php",
      "provider_id" : 3,
      "email" : "user@domain.com",
      "created_at" : "2016-05-01 22:00:01"
    },
    "fulfillment_service_receipt" : "GS3242",
    "line_items" : [ {
      "id" : 123,
      "variant_id" : 34534,
      "product_id" : 24221,
      "quantity" : 1,
      "available_quantity" : 20,
      "product_title" : "T-shirt with flames",
      "variant_title" : "XL / Red / Striped",
      "fulfillable_quantity" : 1,
      "fulfilled_quantity" : 0,
      "refunded_quantity" : 0,
      "featured_image" : {
        "id" : 981,
        "src" : "//cdn.pandacommerce.net/templates/1/1/template/983/assets/add_prod.png?7028",
        "alt" : "My image"
      },
      "fulfillment_service" : "my-own-fulfillment-service",
      "weight" : 500,
      "line_weight" : 500,
      "price" : 129.0,
      "price_excluding_tax" : 129.0,
      "line_price" : 129.0,
      "line_price_excluding_tax" : 129.0,
      "sku" : "XK3334L",
      "inventory_location" : "D6",
      "taxable" : true,
      "requires_shipping" : true,
      "tax_lines" : {
        "test" : "123123123123"
      },
      "title" : "T-shirt with flames - XL / Red / Striped",
      "properties" : "object"
    } ],
    "tracking_number" : "SE349329492P",
    "tracking_company" : "Standard Post",
    "tracking_company_id" : 232,
    "tracking_url" : "http://www.postcompany.com/?trackid=SE349329492P"
  } ],
  "note" : "Notes about order",
  "attributes" : "object",
  "referring_site" : "http://www.google.com",
  "landing_site" : "http://store.pandacommerce.net/?ref=myblog",
  "landing_site_ref" : "myblog",
  "cancelled" : false,
  "cancelled_at" : "2016-05-01 22:00:01",
  "cancel_reason" : "other",
  "refunded_amount" : 0.0,
  "discount_code" : "DISCOUNT20",
  "tags" : [ "string" ],
  "currency" : "SEK",
  "customer" : {
    "id" : 9348,
    "shop_id" : 23424,
    "shop_name" : "My T-shirt store",
    "email" : "customer@domain.com",
    "metafields" : "object",
    "status" : "enabled",
    "name" : "Richard Benson",
    "first_name" : "Richard",
    "last_name" : "Benson",
    "company" : "Acme Ltd",
    "note" : "Notes about customer",
    "tags" : [ "string" ],
    "accepts_marketing" : true,
    "total_spent" : 129.0,
    "addresses_count" : 1,
    "orders_count" : 1,
    "orders" : [ {
      "id" : 34543,
      "name" : "#100033",
      "metafields" : "object",
      "order_number" : 33,
      "hash" : "b65673d761d01a8366d5a1a01e483e7b",
      "email" : "customer@domain.com",
      "created_at" : "2016-05-01 22:00:01",
      "updated_at" : "2016-05-01 22:00:01",
      "payment" : {
        "id" : 123,
        "kind" : "capture",
        "created_at" : "2016-05-01 22:00:01",
        "success" : true,
        "ip" : "127.0.0.1",
        "card_type" : "Visa",
        "card_number" : "XXXX XXXX XXXX 2134",
        "message" : "Capture Successful",
        "amount" : 129.0,
        "test" : false,
        "currency" : "SEK",
        "receipt" : "KK34742D",
        "gateway_title" : "Stripe",
        "gateway_id" : 345
      },
      "payment_price" : 0.0,
      "payment_price_excluding_tax" : 0.0,
      "payment_tax_lines" : {
        "test" : "123123123123"
      },
      "tax_lines" : {
        "test" : "123123123123"
      },
      "tax_price" : 25.8,
      "shop_id" : 23424,
      "shop_name" : "My T-shirt store",
      "subtotal_price" : 129.0,
      "total_weight" : 500,
      "total_price" : 129.0,
      "gateway" : "Stripe",
      "financial_status" : "paid",
      "fulfillment_status" : "unfulfilled",
      "requires_shipping" : true,
      "shipping_price" : 0.0,
      "shipping_price_excluding_tax" : 0.0,
      "shipping_tax_lines" : {
        "test" : "123123123123"
      },
      "shipping_methods" : [ "object" ],
      "shipping_address" : {
        "id" : 543,
        "name" : "Richard Benson",
        "first_name" : "Benson",
        "last_name" : "Benson",
        "street" : "Street 1 apt5",
        "address1" : "Street 1",
        "address2" : "apt5",
        "company" : "Acme Ltd",
        "city" : "Stockholm",
        "phone" : "+467348583493",
        "zip" : "12345",
        "province" : "",
        "country" : "SE",
        "province_code" : "",
        "country_code" : "SE"
      },
      "billing_address" : {
        "id" : 543,
        "name" : "Richard Benson",
        "first_name" : "Benson",
        "last_name" : "Benson",
        "street" : "Street 1 apt5",
        "address1" : "Street 1",
        "address2" : "apt5",
        "company" : "Acme Ltd",
        "city" : "Stockholm",
        "phone" : "+467348583493",
        "zip" : "12345",
        "province" : "",
        "country" : "SE",
        "province_code" : "",
        "country_code" : "SE"
      },
      "line_items" : [ {
        "id" : 123,
        "variant_id" : 34534,
        "product_id" : 24221,
        "quantity" : 1,
        "available_quantity" : 20,
        "product_title" : "T-shirt with flames",
        "variant_title" : "XL / Red / Striped",
        "fulfillable_quantity" : 1,
        "fulfilled_quantity" : 0,
        "refunded_quantity" : 0,
        "featured_image" : {
          "id" : 981,
          "src" : "//cdn.pandacommerce.net/templates/1/1/template/983/assets/add_prod.png?7028",
          "alt" : "My image"
        },
        "fulfillment_service" : "my-own-fulfillment-service",
        "weight" : 500,
        "line_weight" : 500,
        "price" : 129.0,
        "price_excluding_tax" : 129.0,
        "line_price" : 129.0,
        "line_price_excluding_tax" : 129.0,
        "sku" : "XK3334L",
        "inventory_location" : "D6",
        "taxable" : true,
        "requires_shipping" : true,
        "tax_lines" : {
          "test" : "123123123123"
        },
        "title" : "T-shirt with flames - XL / Red / Striped",
        "properties" : "object"
      } ],
      "line_items_price" : 129.0,
      "line_items_price_excluding_tax" : 0.0,
      "line_items_tax_lines" : {
        "test" : "123123123123"
      },
      "transactions" : [ {
        "id" : 123,
        "kind" : "capture",
        "created_at" : "2016-05-01 22:00:01",
        "success" : true,
        "ip" : "127.0.0.1",
        "card_type" : "Visa",
        "card_number" : "XXXX XXXX XXXX 2134",
        "message" : "Capture Successful",
        "amount" : 129.0,
        "test" : false,
        "currency" : "SEK",
        "receipt" : "KK34742D",
        "gateway_title" : "Stripe",
        "gateway_id" : 345
      } ],
      "refunds" : [ {
        "id" : 123,
        "kind" : "capture",
        "created_at" : "2016-05-01 22:00:01",
        "success" : true,
        "ip" : "127.0.0.1",
        "card_type" : "Visa",
        "card_number" : "XXXX XXXX XXXX 2134",
        "message" : "Capture Successful",
        "amount" : 129.0,
        "test" : false,
        "currency" : "SEK",
        "receipt" : "KK34742D",
        "gateway_title" : "Stripe",
        "gateway_id" : 345
      } ],
      "fulfillments" : [ {
        "id" : 123,
        "order_id" : 4364,
        "created_at" : "2016-05-01 22:00:01",
        "status" : "success",
        "fulfillment_service" : {
          "id" : 123,
          "name" : "My own fulfillment service",
          "handle" : "my-own-fulfillment-service",
          "inventory_management" : true,
          "tracking_support" : true,
          "requires_shipping_method" : true,
          "return_handling" : true,
          "include_pending_stock" : true,
          "credential1" : "user@domain.com",
          "callback_url" : "https://www.my-app.com/fulfillment_service.php",
          "provider_id" : 3,
          "email" : "user@domain.com",
          "created_at" : "2016-05-01 22:00:01"
        },
        "fulfillment_service_receipt" : "GS3242",
        "line_items" : [ {
          "id" : 123,
          "variant_id" : 34534,
          "product_id" : 24221,
          "quantity" : 1,
          "available_quantity" : 20,
          "product_title" : "T-shirt with flames",
          "variant_title" : "XL / Red / Striped",
          "fulfillable_quantity" : 1,
          "fulfilled_quantity" : 0,
          "refunded_quantity" : 0,
          "featured_image" : {
            "id" : 981,
            "src" : "//cdn.pandacommerce.net/templates/1/1/template/983/assets/add_prod.png?7028",
            "alt" : "My image"
          },
          "fulfillment_service" : "my-own-fulfillment-service",
          "weight" : 500,
          "line_weight" : 500,
          "price" : 129.0,
          "price_excluding_tax" : 129.0,
          "line_price" : 129.0,
          "line_price_excluding_tax" : 129.0,
          "sku" : "XK3334L",
          "inventory_location" : "D6",
          "taxable" : true,
          "requires_shipping" : true,
          "tax_lines" : {
            "test" : "123123123123"
          },
          "title" : "T-shirt with flames - XL / Red / Striped",
          "properties" : "object"
        } ],
        "tracking_number" : "SE349329492P",
        "tracking_company" : "Standard Post",
        "tracking_company_id" : 232,
        "tracking_url" : "http://www.postcompany.com/?trackid=SE349329492P"
      } ],
      "note" : "Notes about order",
      "attributes" : "object",
      "referring_site" : "http://www.google.com",
      "landing_site" : "http://store.pandacommerce.net/?ref=myblog",
      "landing_site_ref" : "myblog",
      "cancelled" : false,
      "cancelled_at" : "2016-05-01 22:00:01",
      "cancel_reason" : "other",
      "refunded_amount" : 0.0,
      "discount_code" : "DISCOUNT20",
      "tags" : [ "string" ],
      "currency" : "SEK",
      "customer" : {
        "id" : 9348,
        "shop_id" : 23424,
        "shop_name" : "My T-shirt store",
        "email" : "customer@domain.com",
        "metafields" : "object",
        "status" : "enabled",
        "name" : "Richard Benson",
        "first_name" : "Richard",
        "last_name" : "Benson",
        "company" : "Acme Ltd",
        "note" : "Notes about customer",
        "tags" : [ "string" ],
        "accepts_marketing" : true,
        "total_spent" : 129.0,
        "addresses_count" : 1,
        "orders_count" : 1,
        "orders" : [ "..." ],
        "last_order" : "...",
        "addresses" : [ {
          "id" : 543,
          "name" : "Richard Benson",
          "first_name" : "Benson",
          "last_name" : "Benson",
          "street" : "Street 1 apt5",
          "address1" : "Street 1",
          "address2" : "apt5",
          "company" : "Acme Ltd",
          "city" : "Stockholm",
          "phone" : "+467348583493",
          "zip" : "12345",
          "province" : "",
          "country" : "SE",
          "province_code" : "",
          "country_code" : "SE"
        } ],
        "default_address" : {
          "id" : 543,
          "name" : "Richard Benson",
          "first_name" : "Benson",
          "last_name" : "Benson",
          "street" : "Street 1 apt5",
          "address1" : "Street 1",
          "address2" : "apt5",
          "company" : "Acme Ltd",
          "city" : "Stockholm",
          "phone" : "+467348583493",
          "zip" : "12345",
          "province" : "",
          "country" : "SE",
          "province_code" : "",
          "country_code" : "SE"
        },
        "addresses_option_tags" : "<option.....>Richard Benson, SE</option>",
        "reset_password_url" : "https://store.pandacommerce.net/account/reset/2938809835f3135a3ea8ba30b104154b",
        "account_activation_url" : "https://store.pandacommerce.net/account/activate/2938809835f3135a3ea8ba30b104154b"
      },
      "url" : "https://checkout.pandacommerce.net/order/b65673d761d01a8366d5a1a01e483e7b",
      "checkout_url" : "https://checkout.pandacommerce.net/complete/b65673d761d01a8366d5a1a01e483e7b",
      "customer_url" : "https://store.pandacommerce.net/account/order/34543",
      "open" : true
    } ],
    "last_order" : "...",
    "addresses" : [ {
      "id" : 543,
      "name" : "Richard Benson",
      "first_name" : "Benson",
      "last_name" : "Benson",
      "street" : "Street 1 apt5",
      "address1" : "Street 1",
      "address2" : "apt5",
      "company" : "Acme Ltd",
      "city" : "Stockholm",
      "phone" : "+467348583493",
      "zip" : "12345",
      "province" : "",
      "country" : "SE",
      "province_code" : "",
      "country_code" : "SE"
    } ],
    "default_address" : {
      "id" : 543,
      "name" : "Richard Benson",
      "first_name" : "Benson",
      "last_name" : "Benson",
      "street" : "Street 1 apt5",
      "address1" : "Street 1",
      "address2" : "apt5",
      "company" : "Acme Ltd",
      "city" : "Stockholm",
      "phone" : "+467348583493",
      "zip" : "12345",
      "province" : "",
      "country" : "SE",
      "province_code" : "",
      "country_code" : "SE"
    },
    "addresses_option_tags" : "<option.....>Richard Benson, SE</option>",
    "reset_password_url" : "https://store.pandacommerce.net/account/reset/2938809835f3135a3ea8ba30b104154b",
    "account_activation_url" : "https://store.pandacommerce.net/account/activate/2938809835f3135a3ea8ba30b104154b"
  },
  "url" : "https://checkout.pandacommerce.net/order/b65673d761d01a8366d5a1a01e483e7b",
  "checkout_url" : "https://checkout.pandacommerce.net/complete/b65673d761d01a8366d5a1a01e483e7b",
  "customer_url" : "https://store.pandacommerce.net/account/order/34543",
  "open" : true
}
Response default
{
  "errors" : "object"
}

PUT /orders/{id}.json

Description

Edits an order based on a single ID

Parameters
Type Name Description Schema

Path

id
required

ID of order to edit

integer

Body

order
required

Order to create in store

Order

Responses
HTTP Code Description Schema

200

order response

Order

default

unexpected error

ErrorModel

Produces
  • application/json

Security
Type Name Scopes

oauth2

oauth2

write_orders,read_orders

basic

basic_auth

Example HTTP request
Request path
"/orders/0.json"
Request body
{
  "id" : 34543,
  "name" : "#100033",
  "metafields" : "object",
  "order_number" : 33,
  "hash" : "b65673d761d01a8366d5a1a01e483e7b",
  "email" : "customer@domain.com",
  "created_at" : "2016-05-01 22:00:01",
  "updated_at" : "2016-05-01 22:00:01",
  "payment" : {
    "id" : 123,
    "kind" : "capture",
    "created_at" : "2016-05-01 22:00:01",
    "success" : true,
    "ip" : "127.0.0.1",
    "card_type" : "Visa",
    "card_number" : "XXXX XXXX XXXX 2134",
    "message" : "Capture Successful",
    "amount" : 129.0,
    "test" : false,
    "currency" : "SEK",
    "receipt" : "KK34742D",
    "gateway_title" : "Stripe",
    "gateway_id" : 345
  },
  "payment_price" : 0.0,
  "payment_price_excluding_tax" : 0.0,
  "payment_tax_lines" : {
    "test" : "123123123123"
  },
  "tax_lines" : {
    "test" : "123123123123"
  },
  "tax_price" : 25.8,
  "shop_id" : 23424,
  "shop_name" : "My T-shirt store",
  "subtotal_price" : 129.0,
  "total_weight" : 500,
  "total_price" : 129.0,
  "gateway" : "Stripe",
  "financial_status" : "paid",
  "fulfillment_status" : "unfulfilled",
  "requires_shipping" : true,
  "shipping_price" : 0.0,
  "shipping_price_excluding_tax" : 0.0,
  "shipping_tax_lines" : {
    "test" : "123123123123"
  },
  "shipping_methods" : [ "object" ],
  "shipping_address" : {
    "id" : 543,
    "name" : "Richard Benson",
    "first_name" : "Benson",
    "last_name" : "Benson",
    "street" : "Street 1 apt5",
    "address1" : "Street 1",
    "address2" : "apt5",
    "company" : "Acme Ltd",
    "city" : "Stockholm",
    "phone" : "+467348583493",
    "zip" : "12345",
    "province" : "",
    "country" : "SE",
    "province_code" : "",
    "country_code" : "SE"
  },
  "billing_address" : {
    "id" : 543,
    "name" : "Richard Benson",
    "first_name" : "Benson",
    "last_name" : "Benson",
    "street" : "Street 1 apt5",
    "address1" : "Street 1",
    "address2" : "apt5",
    "company" : "Acme Ltd",
    "city" : "Stockholm",
    "phone" : "+467348583493",
    "zip" : "12345",
    "province" : "",
    "country" : "SE",
    "province_code" : "",
    "country_code" : "SE"
  },
  "line_items" : [ {
    "id" : 123,
    "variant_id" : 34534,
    "product_id" : 24221,
    "quantity" : 1,
    "available_quantity" : 20,
    "product_title" : "T-shirt with flames",
    "variant_title" : "XL / Red / Striped",
    "fulfillable_quantity" : 1,
    "fulfilled_quantity" : 0,
    "refunded_quantity" : 0,
    "featured_image" : {
      "id" : 981,
      "src" : "//cdn.pandacommerce.net/templates/1/1/template/983/assets/add_prod.png?7028",
      "alt" : "My image"
    },
    "fulfillment_service" : "my-own-fulfillment-service",
    "weight" : 500,
    "line_weight" : 500,
    "price" : 129.0,
    "price_excluding_tax" : 129.0,
    "line_price" : 129.0,
    "line_price_excluding_tax" : 129.0,
    "sku" : "XK3334L",
    "inventory_location" : "D6",
    "taxable" : true,
    "requires_shipping" : true,
    "tax_lines" : {
      "test" : "123123123123"
    },
    "title" : "T-shirt with flames - XL / Red / Striped",
    "properties" : "object"
  } ],
  "line_items_price" : 129.0,
  "line_items_price_excluding_tax" : 0.0,
  "line_items_tax_lines" : {
    "test" : "123123123123"
  },
  "transactions" : [ {
    "id" : 123,
    "kind" : "capture",
    "created_at" : "2016-05-01 22:00:01",
    "success" : true,
    "ip" : "127.0.0.1",
    "card_type" : "Visa",
    "card_number" : "XXXX XXXX XXXX 2134",
    "message" : "Capture Successful",
    "amount" : 129.0,
    "test" : false,
    "currency" : "SEK",
    "receipt" : "KK34742D",
    "gateway_title" : "Stripe",
    "gateway_id" : 345
  } ],
  "refunds" : [ {
    "id" : 123,
    "kind" : "capture",
    "created_at" : "2016-05-01 22:00:01",
    "success" : true,
    "ip" : "127.0.0.1",
    "card_type" : "Visa",
    "card_number" : "XXXX XXXX XXXX 2134",
    "message" : "Capture Successful",
    "amount" : 129.0,
    "test" : false,
    "currency" : "SEK",
    "receipt" : "KK34742D",
    "gateway_title" : "Stripe",
    "gateway_id" : 345
  } ],
  "fulfillments" : [ {
    "id" : 123,
    "order_id" : 4364,
    "created_at" : "2016-05-01 22:00:01",
    "status" : "success",
    "fulfillment_service" : {
      "id" : 123,
      "name" : "My own fulfillment service",
      "handle" : "my-own-fulfillment-service",
      "inventory_management" : true,
      "tracking_support" : true,
      "requires_shipping_method" : true,
      "return_handling" : true,
      "include_pending_stock" : true,
      "credential1" : "user@domain.com",
      "callback_url" : "https://www.my-app.com/fulfillment_service.php",
      "provider_id" : 3,
      "email" : "user@domain.com",
      "created_at" : "2016-05-01 22:00:01"
    },
    "fulfillment_service_receipt" : "GS3242",
    "line_items" : [ {
      "id" : 123,
      "variant_id" : 34534,
      "product_id" : 24221,
      "quantity" : 1,
      "available_quantity" : 20,
      "product_title" : "T-shirt with flames",
      "variant_title" : "XL / Red / Striped",
      "fulfillable_quantity" : 1,
      "fulfilled_quantity" : 0,
      "refunded_quantity" : 0,
      "featured_image" : {
        "id" : 981,
        "src" : "//cdn.pandacommerce.net/templates/1/1/template/983/assets/add_prod.png?7028",
        "alt" : "My image"
      },
      "fulfillment_service" : "my-own-fulfillment-service",
      "weight" : 500,
      "line_weight" : 500,
      "price" : 129.0,
      "price_excluding_tax" : 129.0,
      "line_price" : 129.0,
      "line_price_excluding_tax" : 129.0,
      "sku" : "XK3334L",
      "inventory_location" : "D6",
      "taxable" : true,
      "requires_shipping" : true,
      "tax_lines" : {
        "test" : "123123123123"
      },
      "title" : "T-shirt with flames - XL / Red / Striped",
      "properties" : "object"
    } ],
    "tracking_number" : "SE349329492P",
    "tracking_company" : "Standard Post",
    "tracking_company_id" : 232,
    "tracking_url" : "http://www.postcompany.com/?trackid=SE349329492P"
  } ],
  "note" : "Notes about order",
  "attributes" : "object",
  "referring_site" : "http://www.google.com",
  "landing_site" : "http://store.pandacommerce.net/?ref=myblog",
  "landing_site_ref" : "myblog",
  "cancelled" : false,
  "cancelled_at" : "2016-05-01 22:00:01",
  "cancel_reason" : "other",
  "refunded_amount" : 0.0,
  "discount_code" : "DISCOUNT20",
  "tags" : [ "string" ],
  "currency" : "SEK",
  "customer" : {
    "id" : 9348,
    "shop_id" : 23424,
    "shop_name" : "My T-shirt store",
    "email" : "customer@domain.com",
    "metafields" : "object",
    "status" : "enabled",
    "name" : "Richard Benson",
    "first_name" : "Richard",
    "last_name" : "Benson",
    "company" : "Acme Ltd",
    "note" : "Notes about customer",
    "tags" : [ "string" ],
    "accepts_marketing" : true,
    "total_spent" : 129.0,
    "addresses_count" : 1,
    "orders_count" : 1,
    "orders" : [ {
      "id" : 34543,
      "name" : "#100033",
      "metafields" : "object",
      "order_number" : 33,
      "hash" : "b65673d761d01a8366d5a1a01e483e7b",
      "email" : "customer@domain.com",
      "created_at" : "2016-05-01 22:00:01",
      "updated_at" : "2016-05-01 22:00:01",
      "payment" : {
        "id" : 123,
        "kind" : "capture",
        "created_at" : "2016-05-01 22:00:01",
        "success" : true,
        "ip" : "127.0.0.1",
        "card_type" : "Visa",
        "card_number" : "XXXX XXXX XXXX 2134",
        "message" : "Capture Successful",
        "amount" : 129.0,
        "test" : false,
        "currency" : "SEK",
        "receipt" : "KK34742D",
        "gateway_title" : "Stripe",
        "gateway_id" : 345
      },
      "payment_price" : 0.0,
      "payment_price_excluding_tax" : 0.0,
      "payment_tax_lines" : {
        "test" : "123123123123"
      },
      "tax_lines" : {
        "test" : "123123123123"
      },
      "tax_price" : 25.8,
      "shop_id" : 23424,
      "shop_name" : "My T-shirt store",
      "subtotal_price" : 129.0,
      "total_weight" : 500,
      "total_price" : 129.0,
      "gateway" : "Stripe",
      "financial_status" : "paid",
      "fulfillment_status" : "unfulfilled",
      "requires_shipping" : true,
      "shipping_price" : 0.0,
      "shipping_price_excluding_tax" : 0.0,
      "shipping_tax_lines" : {
        "test" : "123123123123"
      },
      "shipping_methods" : [ "object" ],
      "shipping_address" : {
        "id" : 543,
        "name" : "Richard Benson",
        "first_name" : "Benson",
        "last_name" : "Benson",
        "street" : "Street 1 apt5",
        "address1" : "Street 1",
        "address2" : "apt5",
        "company" : "Acme Ltd",
        "city" : "Stockholm",
        "phone" : "+467348583493",
        "zip" : "12345",
        "province" : "",
        "country" : "SE",
        "province_code" : "",
        "country_code" : "SE"
      },
      "billing_address" : {
        "id" : 543,
        "name" : "Richard Benson",
        "first_name" : "Benson",
        "last_name" : "Benson",
        "street" : "Street 1 apt5",
        "address1" : "Street 1",
        "address2" : "apt5",
        "company" : "Acme Ltd",
        "city" : "Stockholm",
        "phone" : "+467348583493",
        "zip" : "12345",
        "province" : "",
        "country" : "SE",
        "province_code" : "",
        "country_code" : "SE"
      },
      "line_items" : [ {
        "id" : 123,
        "variant_id" : 34534,
        "product_id" : 24221,
        "quantity" : 1,
        "available_quantity" : 20,
        "product_title" : "T-shirt with flames",
        "variant_title" : "XL / Red / Striped",
        "fulfillable_quantity" : 1,
        "fulfilled_quantity" : 0,
        "refunded_quantity" : 0,
        "featured_image" : {
          "id" : 981,
          "src" : "//cdn.pandacommerce.net/templates/1/1/template/983/assets/add_prod.png?7028",
          "alt" : "My image"
        },
        "fulfillment_service" : "my-own-fulfillment-service",
        "weight" : 500,
        "line_weight" : 500,
        "price" : 129.0,
        "price_excluding_tax" : 129.0,
        "line_price" : 129.0,
        "line_price_excluding_tax" : 129.0,
        "sku" : "XK3334L",
        "inventory_location" : "D6",
        "taxable" : true,
        "requires_shipping" : true,
        "tax_lines" : {
          "test" : "123123123123"
        },
        "title" : "T-shirt with flames - XL / Red / Striped",
        "properties" : "object"
      } ],
      "line_items_price" : 129.0,
      "line_items_price_excluding_tax" : 0.0,
      "line_items_tax_lines" : {
        "test" : "123123123123"
      },
      "transactions" : [ {
        "id" : 123,
        "kind" : "capture",
        "created_at" : "2016-05-01 22:00:01",
        "success" : true,
        "ip" : "127.0.0.1",
        "card_type" : "Visa",
        "card_number" : "XXXX XXXX XXXX 2134",
        "message" : "Capture Successful",
        "amount" : 129.0,
        "test" : false,
        "currency" : "SEK",
        "receipt" : "KK34742D",
        "gateway_title" : "Stripe",
        "gateway_id" : 345
      } ],
      "refunds" : [ {
        "id" : 123,
        "kind" : "capture",
        "created_at" : "2016-05-01 22:00:01",
        "success" : true,
        "ip" : "127.0.0.1",
        "card_type" : "Visa",
        "card_number" : "XXXX XXXX XXXX 2134",
        "message" : "Capture Successful",
        "amount" : 129.0,
        "test" : false,
        "currency" : "SEK",
        "receipt" : "KK34742D",
        "gateway_title" : "Stripe",
        "gateway_id" : 345
      } ],
      "fulfillments" : [ {
        "id" : 123,
        "order_id" : 4364,
        "created_at" : "2016-05-01 22:00:01",
        "status" : "success",
        "fulfillment_service" : {
          "id" : 123,
          "name" : "My own fulfillment service",
          "handle" : "my-own-fulfillment-service",
          "inventory_management" : true,
          "tracking_support" : true,
          "requires_shipping_method" : true,
          "return_handling" : true,
          "include_pending_stock" : true,
          "credential1" : "user@domain.com",
          "callback_url" : "https://www.my-app.com/fulfillment_service.php",
          "provider_id" : 3,
          "email" : "user@domain.com",
          "created_at" : "2016-05-01 22:00:01"
        },
        "fulfillment_service_receipt" : "GS3242",
        "line_items" : [ {
          "id" : 123,
          "variant_id" : 34534,
          "product_id" : 24221,
          "quantity" : 1,
          "available_quantity" : 20,
          "product_title" : "T-shirt with flames",
          "variant_title" : "XL / Red / Striped",
          "fulfillable_quantity" : 1,
          "fulfilled_quantity" : 0,
          "refunded_quantity" : 0,
          "featured_image" : {
            "id" : 981,
            "src" : "//cdn.pandacommerce.net/templates/1/1/template/983/assets/add_prod.png?7028",
            "alt" : "My image"
          },
          "fulfillment_service" : "my-own-fulfillment-service",
          "weight" : 500,
          "line_weight" : 500,
          "price" : 129.0,
          "price_excluding_tax" : 129.0,
          "line_price" : 129.0,
          "line_price_excluding_tax" : 129.0,
          "sku" : "XK3334L",
          "inventory_location" : "D6",
          "taxable" : true,
          "requires_shipping" : true,
          "tax_lines" : {
            "test" : "123123123123"
          },
          "title" : "T-shirt with flames - XL / Red / Striped",
          "properties" : "object"
        } ],
        "tracking_number" : "SE349329492P",
        "tracking_company" : "Standard Post",
        "tracking_company_id" : 232,
        "tracking_url" : "http://www.postcompany.com/?trackid=SE349329492P"
      } ],
      "note" : "Notes about order",
      "attributes" : "object",
      "referring_site" : "http://www.google.com",
      "landing_site" : "http://store.pandacommerce.net/?ref=myblog",
      "landing_site_ref" : "myblog",
      "cancelled" : false,
      "cancelled_at" : "2016-05-01 22:00:01",
      "cancel_reason" : "other",
      "refunded_amount" : 0.0,
      "discount_code" : "DISCOUNT20",
      "tags" : [ "string" ],
      "currency" : "SEK",
      "customer" : {
        "id" : 9348,
        "shop_id" : 23424,
        "shop_name" : "My T-shirt store",
        "email" : "customer@domain.com",
        "metafields" : "object",
        "status" : "enabled",
        "name" : "Richard Benson",
        "first_name" : "Richard",
        "last_name" : "Benson",
        "company" : "Acme Ltd",
        "note" : "Notes about customer",
        "tags" : [ "string" ],
        "accepts_marketing" : true,
        "total_spent" : 129.0,
        "addresses_count" : 1,
        "orders_count" : 1,
        "orders" : [ "..." ],
        "last_order" : "...",
        "addresses" : [ {
          "id" : 543,
          "name" : "Richard Benson",
          "first_name" : "Benson",
          "last_name" : "Benson",
          "street" : "Street 1 apt5",
          "address1" : "Street 1",
          "address2" : "apt5",
          "company" : "Acme Ltd",
          "city" : "Stockholm",
          "phone" : "+467348583493",
          "zip" : "12345",
          "province" : "",
          "country" : "SE",
          "province_code" : "",
          "country_code" : "SE"
        } ],
        "default_address" : {
          "id" : 543,
          "name" : "Richard Benson",
          "first_name" : "Benson",
          "last_name" : "Benson",
          "street" : "Street 1 apt5",
          "address1" : "Street 1",
          "address2" : "apt5",
          "company" : "Acme Ltd",
          "city" : "Stockholm",
          "phone" : "+467348583493",
          "zip" : "12345",
          "province" : "",
          "country" : "SE",
          "province_code" : "",
          "country_code" : "SE"
        },
        "addresses_option_tags" : "<option.....>Richard Benson, SE</option>",
        "reset_password_url" : "https://store.pandacommerce.net/account/reset/2938809835f3135a3ea8ba30b104154b",
        "account_activation_url" : "https://store.pandacommerce.net/account/activate/2938809835f3135a3ea8ba30b104154b"
      },
      "url" : "https://checkout.pandacommerce.net/order/b65673d761d01a8366d5a1a01e483e7b",
      "checkout_url" : "https://checkout.pandacommerce.net/complete/b65673d761d01a8366d5a1a01e483e7b",
      "customer_url" : "https://store.pandacommerce.net/account/order/34543",
      "open" : true
    } ],
    "last_order" : "...",
    "addresses" : [ {
      "id" : 543,
      "name" : "Richard Benson",
      "first_name" : "Benson",
      "last_name" : "Benson",
      "street" : "Street 1 apt5",
      "address1" : "Street 1",
      "address2" : "apt5",
      "company" : "Acme Ltd",
      "city" : "Stockholm",
      "phone" : "+467348583493",
      "zip" : "12345",
      "province" : "",
      "country" : "SE",
      "province_code" : "",
      "country_code" : "SE"
    } ],
    "default_address" : {
      "id" : 543,
      "name" : "Richard Benson",
      "first_name" : "Benson",
      "last_name" : "Benson",
      "street" : "Street 1 apt5",
      "address1" : "Street 1",
      "address2" : "apt5",
      "company" : "Acme Ltd",
      "city" : "Stockholm",
      "phone" : "+467348583493",
      "zip" : "12345",
      "province" : "",
      "country" : "SE",
      "province_code" : "",
      "country_code" : "SE"
    },
    "addresses_option_tags" : "<option.....>Richard Benson, SE</option>",
    "reset_password_url" : "https://store.pandacommerce.net/account/reset/2938809835f3135a3ea8ba30b104154b",
    "account_activation_url" : "https://store.pandacommerce.net/account/activate/2938809835f3135a3ea8ba30b104154b"
  },
  "url" : "https://checkout.pandacommerce.net/order/b65673d761d01a8366d5a1a01e483e7b",
  "checkout_url" : "https://checkout.pandacommerce.net/complete/b65673d761d01a8366d5a1a01e483e7b",
  "customer_url" : "https://store.pandacommerce.net/account/order/34543",
  "open" : true
}
Example HTTP response
Response 200
{
  "id" : 34543,
  "name" : "#100033",
  "metafields" : "object",
  "order_number" : 33,
  "hash" : "b65673d761d01a8366d5a1a01e483e7b",
  "email" : "customer@domain.com",
  "created_at" : "2016-05-01 22:00:01",
  "updated_at" : "2016-05-01 22:00:01",
  "payment" : {
    "id" : 123,
    "kind" : "capture",
    "created_at" : "2016-05-01 22:00:01",
    "success" : true,
    "ip" : "127.0.0.1",
    "card_type" : "Visa",
    "card_number" : "XXXX XXXX XXXX 2134",
    "message" : "Capture Successful",
    "amount" : 129.0,
    "test" : false,
    "currency" : "SEK",
    "receipt" : "KK34742D",
    "gateway_title" : "Stripe",
    "gateway_id" : 345
  },
  "payment_price" : 0.0,
  "payment_price_excluding_tax" : 0.0,
  "payment_tax_lines" : {
    "test" : "123123123123"
  },
  "tax_lines" : {
    "test" : "123123123123"
  },
  "tax_price" : 25.8,
  "shop_id" : 23424,
  "shop_name" : "My T-shirt store",
  "subtotal_price" : 129.0,
  "total_weight" : 500,
  "total_price" : 129.0,
  "gateway" : "Stripe",
  "financial_status" : "paid",
  "fulfillment_status" : "unfulfilled",
  "requires_shipping" : true,
  "shipping_price" : 0.0,
  "shipping_price_excluding_tax" : 0.0,
  "shipping_tax_lines" : {
    "test" : "123123123123"
  },
  "shipping_methods" : [ "object" ],
  "shipping_address" : {
    "id" : 543,
    "name" : "Richard Benson",
    "first_name" : "Benson",
    "last_name" : "Benson",
    "street" : "Street 1 apt5",
    "address1" : "Street 1",
    "address2" : "apt5",
    "company" : "Acme Ltd",
    "city" : "Stockholm",
    "phone" : "+467348583493",
    "zip" : "12345",
    "province" : "",
    "country" : "SE",
    "province_code" : "",
    "country_code" : "SE"
  },
  "billing_address" : {
    "id" : 543,
    "name" : "Richard Benson",
    "first_name" : "Benson",
    "last_name" : "Benson",
    "street" : "Street 1 apt5",
    "address1" : "Street 1",
    "address2" : "apt5",
    "company" : "Acme Ltd",
    "city" : "Stockholm",
    "phone" : "+467348583493",
    "zip" : "12345",
    "province" : "",
    "country" : "SE",
    "province_code" : "",
    "country_code" : "SE"
  },
  "line_items" : [ {
    "id" : 123,
    "variant_id" : 34534,
    "product_id" : 24221,
    "quantity" : 1,
    "available_quantity" : 20,
    "product_title" : "T-shirt with flames",
    "variant_title" : "XL / Red / Striped",
    "fulfillable_quantity" : 1,
    "fulfilled_quantity" : 0,
    "refunded_quantity" : 0,
    "featured_image" : {
      "id" : 981,
      "src" : "//cdn.pandacommerce.net/templates/1/1/template/983/assets/add_prod.png?7028",
      "alt" : "My image"
    },
    "fulfillment_service" : "my-own-fulfillment-service",
    "weight" : 500,
    "line_weight" : 500,
    "price" : 129.0,
    "price_excluding_tax" : 129.0,
    "line_price" : 129.0,
    "line_price_excluding_tax" : 129.0,
    "sku" : "XK3334L",
    "inventory_location" : "D6",
    "taxable" : true,
    "requires_shipping" : true,
    "tax_lines" : {
      "test" : "123123123123"
    },
    "title" : "T-shirt with flames - XL / Red / Striped",
    "properties" : "object"
  } ],
  "line_items_price" : 129.0,
  "line_items_price_excluding_tax" : 0.0,
  "line_items_tax_lines" : {
    "test" : "123123123123"
  },
  "transactions" : [ {
    "id" : 123,
    "kind" : "capture",
    "created_at" : "2016-05-01 22:00:01",
    "success" : true,
    "ip" : "127.0.0.1",
    "card_type" : "Visa",
    "card_number" : "XXXX XXXX XXXX 2134",
    "message" : "Capture Successful",
    "amount" : 129.0,
    "test" : false,
    "currency" : "SEK",
    "receipt" : "KK34742D",
    "gateway_title" : "Stripe",
    "gateway_id" : 345
  } ],
  "refunds" : [ {
    "id" : 123,
    "kind" : "capture",
    "created_at" : "2016-05-01 22:00:01",
    "success" : true,
    "ip" : "127.0.0.1",
    "card_type" : "Visa",
    "card_number" : "XXXX XXXX XXXX 2134",
    "message" : "Capture Successful",
    "amount" : 129.0,
    "test" : false,
    "currency" : "SEK",
    "receipt" : "KK34742D",
    "gateway_title" : "Stripe",
    "gateway_id" : 345
  } ],
  "fulfillments" : [ {
    "id" : 123,
    "order_id" : 4364,
    "created_at" : "2016-05-01 22:00:01",
    "status" : "success",
    "fulfillment_service" : {
      "id" : 123,
      "name" : "My own fulfillment service",
      "handle" : "my-own-fulfillment-service",
      "inventory_management" : true,
      "tracking_support" : true,
      "requires_shipping_method" : true,
      "return_handling" : true,
      "include_pending_stock" : true,
      "credential1" : "user@domain.com",
      "callback_url" : "https://www.my-app.com/fulfillment_service.php",
      "provider_id" : 3,
      "email" : "user@domain.com",
      "created_at" : "2016-05-01 22:00:01"
    },
    "fulfillment_service_receipt" : "GS3242",
    "line_items" : [ {
      "id" : 123,
      "variant_id" : 34534,
      "product_id" : 24221,
      "quantity" : 1,
      "available_quantity" : 20,
      "product_title" : "T-shirt with flames",
      "variant_title" : "XL / Red / Striped",
      "fulfillable_quantity" : 1,
      "fulfilled_quantity" : 0,
      "refunded_quantity" : 0,
      "featured_image" : {
        "id" : 981,
        "src" : "//cdn.pandacommerce.net/templates/1/1/template/983/assets/add_prod.png?7028",
        "alt" : "My image"
      },
      "fulfillment_service" : "my-own-fulfillment-service",
      "weight" : 500,
      "line_weight" : 500,
      "price" : 129.0,
      "price_excluding_tax" : 129.0,
      "line_price" : 129.0,
      "line_price_excluding_tax" : 129.0,
      "sku" : "XK3334L",
      "inventory_location" : "D6",
      "taxable" : true,
      "requires_shipping" : true,
      "tax_lines" : {
        "test" : "123123123123"
      },
      "title" : "T-shirt with flames - XL / Red / Striped",
      "properties" : "object"
    } ],
    "tracking_number" : "SE349329492P",
    "tracking_company" : "Standard Post",
    "tracking_company_id" : 232,
    "tracking_url" : "http://www.postcompany.com/?trackid=SE349329492P"
  } ],
  "note" : "Notes about order",
  "attributes" : "object",
  "referring_site" : "http://www.google.com",
  "landing_site" : "http://store.pandacommerce.net/?ref=myblog",
  "landing_site_ref" : "myblog",
  "cancelled" : false,
  "cancelled_at" : "2016-05-01 22:00:01",
  "cancel_reason" : "other",
  "refunded_amount" : 0.0,
  "discount_code" : "DISCOUNT20",
  "tags" : [ "string" ],
  "currency" : "SEK",
  "customer" : {
    "id" : 9348,
    "shop_id" : 23424,
    "shop_name" : "My T-shirt store",
    "email" : "customer@domain.com",
    "metafields" : "object",
    "status" : "enabled",
    "name" : "Richard Benson",
    "first_name" : "Richard",
    "last_name" : "Benson",
    "company" : "Acme Ltd",
    "note" : "Notes about customer",
    "tags" : [ "string" ],
    "accepts_marketing" : true,
    "total_spent" : 129.0,
    "addresses_count" : 1,
    "orders_count" : 1,
    "orders" : [ {
      "id" : 34543,
      "name" : "#100033",
      "metafields" : "object",
      "order_number" : 33,
      "hash" : "b65673d761d01a8366d5a1a01e483e7b",
      "email" : "customer@domain.com",
      "created_at" : "2016-05-01 22:00:01",
      "updated_at" : "2016-05-01 22:00:01",
      "payment" : {
        "id" : 123,
        "kind" : "capture",
        "created_at" : "2016-05-01 22:00:01",
        "success" : true,
        "ip" : "127.0.0.1",
        "card_type" : "Visa",
        "card_number" : "XXXX XXXX XXXX 2134",
        "message" : "Capture Successful",
        "amount" : 129.0,
        "test" : false,
        "currency" : "SEK",
        "receipt" : "KK34742D",
        "gateway_title" : "Stripe",
        "gateway_id" : 345
      },
      "payment_price" : 0.0,
      "payment_price_excluding_tax" : 0.0,
      "payment_tax_lines" : {
        "test" : "123123123123"
      },
      "tax_lines" : {
        "test" : "123123123123"
      },
      "tax_price" : 25.8,
      "shop_id" : 23424,
      "shop_name" : "My T-shirt store",
      "subtotal_price" : 129.0,
      "total_weight" : 500,
      "total_price" : 129.0,
      "gateway" : "Stripe",
      "financial_status" : "paid",
      "fulfillment_status" : "unfulfilled",
      "requires_shipping" : true,
      "shipping_price" : 0.0,
      "shipping_price_excluding_tax" : 0.0,
      "shipping_tax_lines" : {
        "test" : "123123123123"
      },
      "shipping_methods" : [ "object" ],
      "shipping_address" : {
        "id" : 543,
        "name" : "Richard Benson",
        "first_name" : "Benson",
        "last_name" : "Benson",
        "street" : "Street 1 apt5",
        "address1" : "Street 1",
        "address2" : "apt5",
        "company" : "Acme Ltd",
        "city" : "Stockholm",
        "phone" : "+467348583493",
        "zip" : "12345",
        "province" : "",
        "country" : "SE",
        "province_code" : "",
        "country_code" : "SE"
      },
      "billing_address" : {
        "id" : 543,
        "name" : "Richard Benson",
        "first_name" : "Benson",
        "last_name" : "Benson",
        "street" : "Street 1 apt5",
        "address1" : "Street 1",
        "address2" : "apt5",
        "company" : "Acme Ltd",
        "city" : "Stockholm",
        "phone" : "+467348583493",
        "zip" : "12345",
        "province" : "",
        "country" : "SE",
        "province_code" : "",
        "country_code" : "SE"
      },
      "line_items" : [ {
        "id" : 123,
        "variant_id" : 34534,
        "product_id" : 24221,
        "quantity" : 1,
        "available_quantity" : 20,
        "product_title" : "T-shirt with flames",
        "variant_title" : "XL / Red / Striped",
        "fulfillable_quantity" : 1,
        "fulfilled_quantity" : 0,
        "refunded_quantity" : 0,
        "featured_image" : {
          "id" : 981,
          "src" : "//cdn.pandacommerce.net/templates/1/1/template/983/assets/add_prod.png?7028",
          "alt" : "My image"
        },
        "fulfillment_service" : "my-own-fulfillment-service",
        "weight" : 500,
        "line_weight" : 500,
        "price" : 129.0,
        "price_excluding_tax" : 129.0,
        "line_price" : 129.0,
        "line_price_excluding_tax" : 129.0,
        "sku" : "XK3334L",
        "inventory_location" : "D6",
        "taxable" : true,
        "requires_shipping" : true,
        "tax_lines" : {
          "test" : "123123123123"
        },
        "title" : "T-shirt with flames - XL / Red / Striped",
        "properties" : "object"
      } ],
      "line_items_price" : 129.0,
      "line_items_price_excluding_tax" : 0.0,
      "line_items_tax_lines" : {
        "test" : "123123123123"
      },
      "transactions" : [ {
        "id" : 123,
        "kind" : "capture",
        "created_at" : "2016-05-01 22:00:01",
        "success" : true,
        "ip" : "127.0.0.1",
        "card_type" : "Visa",
        "card_number" : "XXXX XXXX XXXX 2134",
        "message" : "Capture Successful",
        "amount" : 129.0,
        "test" : false,
        "currency" : "SEK",
        "receipt" : "KK34742D",
        "gateway_title" : "Stripe",
        "gateway_id" : 345
      } ],
      "refunds" : [ {
        "id" : 123,
        "kind" : "capture",
        "created_at" : "2016-05-01 22:00:01",
        "success" : true,
        "ip" : "127.0.0.1",
        "card_type" : "Visa",
        "card_number" : "XXXX XXXX XXXX 2134",
        "message" : "Capture Successful",
        "amount" : 129.0,
        "test" : false,
        "currency" : "SEK",
        "receipt" : "KK34742D",
        "gateway_title" : "Stripe",
        "gateway_id" : 345
      } ],
      "fulfillments" : [ {
        "id" : 123,
        "order_id" : 4364,
        "created_at" : "2016-05-01 22:00:01",
        "status" : "success",
        "fulfillment_service" : {
          "id" : 123,
          "name" : "My own fulfillment service",
          "handle" : "my-own-fulfillment-service",
          "inventory_management" : true,
          "tracking_support" : true,
          "requires_shipping_method" : true,
          "return_handling" : true,
          "include_pending_stock" : true,
          "credential1" : "user@domain.com",
          "callback_url" : "https://www.my-app.com/fulfillment_service.php",
          "provider_id" : 3,
          "email" : "user@domain.com",
          "created_at" : "2016-05-01 22:00:01"
        },
        "fulfillment_service_receipt" : "GS3242",
        "line_items" : [ {
          "id" : 123,
          "variant_id" : 34534,
          "product_id" : 24221,
          "quantity" : 1,
          "available_quantity" : 20,
          "product_title" : "T-shirt with flames",
          "variant_title" : "XL / Red / Striped",
          "fulfillable_quantity" : 1,
          "fulfilled_quantity" : 0,
          "refunded_quantity" : 0,
          "featured_image" : {
            "id" : 981,
            "src" : "//cdn.pandacommerce.net/templates/1/1/template/983/assets/add_prod.png?7028",
            "alt" : "My image"
          },
          "fulfillment_service" : "my-own-fulfillment-service",
          "weight" : 500,
          "line_weight" : 500,
          "price" : 129.0,
          "price_excluding_tax" : 129.0,
          "line_price" : 129.0,
          "line_price_excluding_tax" : 129.0,
          "sku" : "XK3334L",
          "inventory_location" : "D6",
          "taxable" : true,
          "requires_shipping" : true,
          "tax_lines" : {
            "test" : "123123123123"
          },
          "title" : "T-shirt with flames - XL / Red / Striped",
          "properties" : "object"
        } ],
        "tracking_number" : "SE349329492P",
        "tracking_company" : "Standard Post",
        "tracking_company_id" : 232,
        "tracking_url" : "http://www.postcompany.com/?trackid=SE349329492P"
      } ],
      "note" : "Notes about order",
      "attributes" : "object",
      "referring_site" : "http://www.google.com",
      "landing_site" : "http://store.pandacommerce.net/?ref=myblog",
      "landing_site_ref" : "myblog",
      "cancelled" : false,
      "cancelled_at" : "2016-05-01 22:00:01",
      "cancel_reason" : "other",
      "refunded_amount" : 0.0,
      "discount_code" : "DISCOUNT20",
      "tags" : [ "string" ],
      "currency" : "SEK",
      "customer" : {
        "id" : 9348,
        "shop_id" : 23424,
        "shop_name" : "My T-shirt store",
        "email" : "customer@domain.com",
        "metafields" : "object",
        "status" : "enabled",
        "name" : "Richard Benson",
        "first_name" : "Richard",
        "last_name" : "Benson",
        "company" : "Acme Ltd",
        "note" : "Notes about customer",
        "tags" : [ "string" ],
        "accepts_marketing" : true,
        "total_spent" : 129.0,
        "addresses_count" : 1,
        "orders_count" : 1,
        "orders" : [ "..." ],
        "last_order" : "...",
        "addresses" : [ {
          "id" : 543,
          "name" : "Richard Benson",
          "first_name" : "Benson",
          "last_name" : "Benson",
          "street" : "Street 1 apt5",
          "address1" : "Street 1",
          "address2" : "apt5",
          "company" : "Acme Ltd",
          "city" : "Stockholm",
          "phone" : "+467348583493",
          "zip" : "12345",
          "province" : "",
          "country" : "SE",
          "province_code" : "",
          "country_code" : "SE"
        } ],
        "default_address" : {
          "id" : 543,
          "name" : "Richard Benson",
          "first_name" : "Benson",
          "last_name" : "Benson",
          "street" : "Street 1 apt5",
          "address1" : "Street 1",
          "address2" : "apt5",
          "company" : "Acme Ltd",
          "city" : "Stockholm",
          "phone" : "+467348583493",
          "zip" : "12345",
          "province" : "",
          "country" : "SE",
          "province_code" : "",
          "country_code" : "SE"
        },
        "addresses_option_tags" : "<option.....>Richard Benson, SE</option>",
        "reset_password_url" : "https://store.pandacommerce.net/account/reset/2938809835f3135a3ea8ba30b104154b",
        "account_activation_url" : "https://store.pandacommerce.net/account/activate/2938809835f3135a3ea8ba30b104154b"
      },
      "url" : "https://checkout.pandacommerce.net/order/b65673d761d01a8366d5a1a01e483e7b",
      "checkout_url" : "https://checkout.pandacommerce.net/complete/b65673d761d01a8366d5a1a01e483e7b",
      "customer_url" : "https://store.pandacommerce.net/account/order/34543",
      "open" : true
    } ],
    "last_order" : "...",
    "addresses" : [ {
      "id" : 543,
      "name" : "Richard Benson",
      "first_name" : "Benson",
      "last_name" : "Benson",
      "street" : "Street 1 apt5",
      "address1" : "Street 1",
      "address2" : "apt5",
      "company" : "Acme Ltd",
      "city" : "Stockholm",
      "phone" : "+467348583493",
      "zip" : "12345",
      "province" : "",
      "country" : "SE",
      "province_code" : "",
      "country_code" : "SE"
    } ],
    "default_address" : {
      "id" : 543,
      "name" : "Richard Benson",
      "first_name" : "Benson",
      "last_name" : "Benson",
      "street" : "Street 1 apt5",
      "address1" : "Street 1",
      "address2" : "apt5",
      "company" : "Acme Ltd",
      "city" : "Stockholm",
      "phone" : "+467348583493",
      "zip" : "12345",
      "province" : "",
      "country" : "SE",
      "province_code" : "",
      "country_code" : "SE"
    },
    "addresses_option_tags" : "<option.....>Richard Benson, SE</option>",
    "reset_password_url" : "https://store.pandacommerce.net/account/reset/2938809835f3135a3ea8ba30b104154b",
    "account_activation_url" : "https://store.pandacommerce.net/account/activate/2938809835f3135a3ea8ba30b104154b"
  },
  "url" : "https://checkout.pandacommerce.net/order/b65673d761d01a8366d5a1a01e483e7b",
  "checkout_url" : "https://checkout.pandacommerce.net/complete/b65673d761d01a8366d5a1a01e483e7b",
  "customer_url" : "https://store.pandacommerce.net/account/order/34543",
  "open" : true
}
Response default
{
  "errors" : "object"
}

DELETE /orders/{id}.json

Description

deletes a single order based on the ID supplied

Parameters
Type Name Description Schema

Path

id
required

ID of order to delete

integer

Responses
HTTP Code Description Schema

200

No response

No Content

default

unexpected error

ErrorModel

Security
Type Name Scopes

oauth2

oauth2

write_orders

basic

basic_auth

Example HTTP request
Request path
"/orders/0.json"
Example HTTP response
Response default
{
  "errors" : "object"
}

Pages

POST /pages.json

Description

Creates a new page in the store. Handle must be unique or left blank

Parameters
Type Name Description Schema

Body

page
required

Page to add to the store

Page

Responses
HTTP Code Description Schema

200

page response

Page

default

unexpected error

ErrorModel

Produces
  • application/json

Security
Type Name Scopes

oauth2

oauth2

write_content

basic

basic_auth

Example HTTP request
Request path
"/pages.json"
Request body
{
  "id" : 0,
  "template" : "page.panda",
  "handle" : "about-us",
  "title" : "About Us",
  "metafields" : "object",
  "h1_title" : "string",
  "meta_title" : "string",
  "meta_keywords" : "string",
  "meta_description" : "string",
  "content" : "string",
  "url" : "string",
  "user" : {
    "id" : 343,
    "name" : "Richard Benson",
    "first_name" : "Richard",
    "last_name" : "Benson",
    "email" : "richard@pandacommerce.net",
    "store_owner" : true,
    "language" : "sv_SE"
  },
  "author" : "string",
  "updated_at" : "2016-05-01 22:00:01",
  "published_at" : "string"
}
Example HTTP response
Response 200
{
  "id" : 0,
  "template" : "page.panda",
  "handle" : "about-us",
  "title" : "About Us",
  "metafields" : "object",
  "h1_title" : "string",
  "meta_title" : "string",
  "meta_keywords" : "string",
  "meta_description" : "string",
  "content" : "string",
  "url" : "string",
  "user" : {
    "id" : 343,
    "name" : "Richard Benson",
    "first_name" : "Richard",
    "last_name" : "Benson",
    "email" : "richard@pandacommerce.net",
    "store_owner" : true,
    "language" : "sv_SE"
  },
  "author" : "string",
  "updated_at" : "2016-05-01 22:00:01",
  "published_at" : "string"
}
Response default
{
  "errors" : "object"
}

GET /pages.json

Description

Returns all pages from the system that the user has access to

Parameters
Type Name Description Schema

Query

fields
optional

fields to return

< string > array

Query

limit
optional

maximum number of results to return (default 50)

integer

Query

offset
optional

result offset (default 0)

integer

Query

sorting
optional

sorting (title-asc,desc or published_at-asc,desc)

string

Responses
HTTP Code Description Schema

200

page response

< Page > array

default

unexpected error

ErrorModel

Produces
  • application/json

Security
Type Name Scopes

oauth2

oauth2

write_content,read_content

basic

basic_auth

Example HTTP request
Request path
"/pages.json"
Request query
{
  "fields" : "string",
  "limit" : 0,
  "offset" : 0,
  "sorting" : "string"
}
Example HTTP response
Response 200
"array"
Response default
{
  "errors" : "object"
}

GET /pages/{id}.json

Description

Returns a page based on a single ID

Parameters
Type Name Description Schema

Path

id
required

ID of page to fetch

integer

Responses
HTTP Code Description Schema

200

page response

Page

default

unexpected error

ErrorModel

Produces
  • application/json

Security
Type Name Scopes

oauth2

oauth2

write_content,read_content

basic

basic_auth

Example HTTP request
Request path
"/pages/0.json"
Example HTTP response
Response 200
{
  "id" : 0,
  "template" : "page.panda",
  "handle" : "about-us",
  "title" : "About Us",
  "metafields" : "object",
  "h1_title" : "string",
  "meta_title" : "string",
  "meta_keywords" : "string",
  "meta_description" : "string",
  "content" : "string",
  "url" : "string",
  "user" : {
    "id" : 343,
    "name" : "Richard Benson",
    "first_name" : "Richard",
    "last_name" : "Benson",
    "email" : "richard@pandacommerce.net",
    "store_owner" : true,
    "language" : "sv_SE"
  },
  "author" : "string",
  "updated_at" : "2016-05-01 22:00:01",
  "published_at" : "string"
}
Response default
{
  "errors" : "object"
}

PUT /pages/{id}.json

Description

Edits a page based on a single ID

Parameters
Type Name Description Schema

Path

id
required

ID of page to edit

integer

Body

page
required

Page to add to the store

Page

Responses
HTTP Code Description Schema

200

page response

Page

default

unexpected error

ErrorModel

Produces
  • application/json

Security
Type Name Scopes

oauth2

oauth2

write_content,read_content

basic

basic_auth

Example HTTP request
Request path
"/pages/0.json"
Request body
{
  "id" : 0,
  "template" : "page.panda",
  "handle" : "about-us",
  "title" : "About Us",
  "metafields" : "object",
  "h1_title" : "string",
  "meta_title" : "string",
  "meta_keywords" : "string",
  "meta_description" : "string",
  "content" : "string",
  "url" : "string",
  "user" : {
    "id" : 343,
    "name" : "Richard Benson",
    "first_name" : "Richard",
    "last_name" : "Benson",
    "email" : "richard@pandacommerce.net",
    "store_owner" : true,
    "language" : "sv_SE"
  },
  "author" : "string",
  "updated_at" : "2016-05-01 22:00:01",
  "published_at" : "string"
}
Example HTTP response
Response 200
{
  "id" : 0,
  "template" : "page.panda",
  "handle" : "about-us",
  "title" : "About Us",
  "metafields" : "object",
  "h1_title" : "string",
  "meta_title" : "string",
  "meta_keywords" : "string",
  "meta_description" : "string",
  "content" : "string",
  "url" : "string",
  "user" : {
    "id" : 343,
    "name" : "Richard Benson",
    "first_name" : "Richard",
    "last_name" : "Benson",
    "email" : "richard@pandacommerce.net",
    "store_owner" : true,
    "language" : "sv_SE"
  },
  "author" : "string",
  "updated_at" : "2016-05-01 22:00:01",
  "published_at" : "string"
}
Response default
{
  "errors" : "object"
}

DELETE /pages/{id}.json

Description

deletes a single page based on the ID supplied

Parameters
Type Name Description Schema

Path

id
required

ID of page to delete

integer

Responses
HTTP Code Description Schema

200

[]

No Content

default

unexpected error

ErrorModel

Security
Type Name Scopes

oauth2

oauth2

write_content

basic

basic_auth

Example HTTP request
Request path
"/pages/0.json"
Example HTTP response
Response default
{
  "errors" : "object"
}

Products

POST /products.json

Description

Creates a new product in the store. Handle must be unique or left blank

Parameters
Type Name Description Schema

Body

product
required

Product to add to the store

Product

Responses
HTTP Code Description Schema

200

product response

Product

default

unexpected error

ErrorModel

Produces
  • application/json

Security
Type Name Scopes

oauth2

oauth2

write_products

basic

basic_auth

Example HTTP request
Request path
"/products.json"
Request body
{
  "id" : 45678,
  "title" : "T-shirt with flames",
  "titles" : "object",
  "handle" : "t-shirt-with-flames",
  "handles" : "object",
  "vendor" : "The T-shirt Company",
  "vendors" : "object",
  "type" : "T-shirt",
  "types" : "object",
  "template" : "product.panda",
  "templates" : "object",
  "selected_variant_id" : 88443,
  "h1_title" : "A lovely t-shirt with flames on it",
  "h1_titles" : "object",
  "meta_title" : "Buy a lovely t-shirt with flames on it",
  "meta_titles" : "object",
  "meta_keywords" : "t-shirt flames, popular t-shirt",
  "meta_keywordss" : "object",
  "meta_description" : "Find out more, click to have a look at our lovely t-shirt with flames on it",
  "meta_descriptions" : "object",
  "metafields" : "object",
  "key_features" : [ "Gets you all the girls" ],
  "key_featuress" : "object",
  "content" : "<p>A lovely t-shirt</p><p>With flames on it</p>",
  "contents" : "object",
  "content_plain" : "A lovely t-shirt\nWith flames on it",
  "contents_plain" : "object",
  "created_at" : "2016-05-01 22:00:01",
  "updated_at" : "2016-05-01 22:00:01",
  "collections" : [ "all-products" ],
  "thumbnail" : "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",
  "featured_image" : {
    "id" : 981,
    "src" : "//cdn.pandacommerce.net/templates/1/1/template/983/assets/add_prod.png?7028",
    "alt" : "My image"
  },
  "images" : [ {
    "id" : 981,
    "src" : "//cdn.pandacommerce.net/templates/1/1/template/983/assets/add_prod.png?7028",
    "alt" : "My image"
  } ],
  "available" : true,
  "price" : 1.99,
  "price_min" : 1.99,
  "price_max" : 1.99,
  "price_varies" : true,
  "compare_at_price" : 1.99,
  "compare_at_price_min" : 1.99,
  "compare_at_price_max" : 1.99,
  "compare_at_price_varies" : true,
  "options" : [ "Size" ],
  "options_defaults" : [ "XL" ],
  "optionss" : [ "object" ],
  "variants" : [ {
    "id" : 88443,
    "product_id" : 0,
    "option1" : "XL",
    "option2" : "Red",
    "option3" : "Striped",
    "options" : [ "XL" ],
    "optionss" : [ "object" ],
    "title" : "XL / Red / Striped",
    "titles" : "object",
    "metafields" : "object",
    "fulfillment_service" : "manual",
    "featured_image" : {
      "id" : 981,
      "src" : "//cdn.pandacommerce.net/templates/1/1/template/983/assets/add_prod.png?7028",
      "alt" : "My image"
    },
    "inventory_quantity" : 21,
    "inventory_management" : "none",
    "inventory_location" : "D6",
    "inventory_policy" : "deny",
    "taxable" : true,
    "requires_shipping" : true,
    "sku" : "XK3334L",
    "thumbnail" : "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",
    "barcode" : "044566333322",
    "weight" : 500,
    "image_id" : 232,
    "available" : true,
    "price" : 1.99,
    "prices" : "object",
    "compare_at_price" : 2.99,
    "compare_at_prices" : "object",
    "purchase_price" : 0.99,
    "purchase_prices" : "object",
    "sold" : 10,
    "position" : 0,
    "product_title" : "T-shirt with flames",
    "product_titles" : "object",
    "sales_channels" : "object"
  } ],
  "sold" : 7,
  "variants_count" : 1,
  "reviews_rating" : 4.5,
  "inventory_quantity" : 21,
  "tags" : [ "t-shirts" ],
  "tagss" : "object",
  "url" : "string",
  "sales_channels" : "object"
}
Example HTTP response
Response 200
{
  "id" : 45678,
  "title" : "T-shirt with flames",
  "titles" : "object",
  "handle" : "t-shirt-with-flames",
  "handles" : "object",
  "vendor" : "The T-shirt Company",
  "vendors" : "object",
  "type" : "T-shirt",
  "types" : "object",
  "template" : "product.panda",
  "templates" : "object",
  "selected_variant_id" : 88443,
  "h1_title" : "A lovely t-shirt with flames on it",
  "h1_titles" : "object",
  "meta_title" : "Buy a lovely t-shirt with flames on it",
  "meta_titles" : "object",
  "meta_keywords" : "t-shirt flames, popular t-shirt",
  "meta_keywordss" : "object",
  "meta_description" : "Find out more, click to have a look at our lovely t-shirt with flames on it",
  "meta_descriptions" : "object",
  "metafields" : "object",
  "key_features" : [ "Gets you all the girls" ],
  "key_featuress" : "object",
  "content" : "<p>A lovely t-shirt</p><p>With flames on it</p>",
  "contents" : "object",
  "content_plain" : "A lovely t-shirt\nWith flames on it",
  "contents_plain" : "object",
  "created_at" : "2016-05-01 22:00:01",
  "updated_at" : "2016-05-01 22:00:01",
  "collections" : [ "all-products" ],
  "thumbnail" : "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",
  "featured_image" : {
    "id" : 981,
    "src" : "//cdn.pandacommerce.net/templates/1/1/template/983/assets/add_prod.png?7028",
    "alt" : "My image"
  },
  "images" : [ {
    "id" : 981,
    "src" : "//cdn.pandacommerce.net/templates/1/1/template/983/assets/add_prod.png?7028",
    "alt" : "My image"
  } ],
  "available" : true,
  "price" : 1.99,
  "price_min" : 1.99,
  "price_max" : 1.99,
  "price_varies" : true,
  "compare_at_price" : 1.99,
  "compare_at_price_min" : 1.99,
  "compare_at_price_max" : 1.99,
  "compare_at_price_varies" : true,
  "options" : [ "Size" ],
  "options_defaults" : [ "XL" ],
  "optionss" : [ "object" ],
  "variants" : [ {
    "id" : 88443,
    "product_id" : 0,
    "option1" : "XL",
    "option2" : "Red",
    "option3" : "Striped",
    "options" : [ "XL" ],
    "optionss" : [ "object" ],
    "title" : "XL / Red / Striped",
    "titles" : "object",
    "metafields" : "object",
    "fulfillment_service" : "manual",
    "featured_image" : {
      "id" : 981,
      "src" : "//cdn.pandacommerce.net/templates/1/1/template/983/assets/add_prod.png?7028",
      "alt" : "My image"
    },
    "inventory_quantity" : 21,
    "inventory_management" : "none",
    "inventory_location" : "D6",
    "inventory_policy" : "deny",
    "taxable" : true,
    "requires_shipping" : true,
    "sku" : "XK3334L",
    "thumbnail" : "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",
    "barcode" : "044566333322",
    "weight" : 500,
    "image_id" : 232,
    "available" : true,
    "price" : 1.99,
    "prices" : "object",
    "compare_at_price" : 2.99,
    "compare_at_prices" : "object",
    "purchase_price" : 0.99,
    "purchase_prices" : "object",
    "sold" : 10,
    "position" : 0,
    "product_title" : "T-shirt with flames",
    "product_titles" : "object",
    "sales_channels" : "object"
  } ],
  "sold" : 7,
  "variants_count" : 1,
  "reviews_rating" : 4.5,
  "inventory_quantity" : 21,
  "tags" : [ "t-shirts" ],
  "tagss" : "object",
  "url" : "string",
  "sales_channels" : "object"
}
Response default
{
  "errors" : "object"
}

GET /products.json

Description

Returns all products from the system that the user has access to

Parameters
Type Name Description Schema

Query

fields
optional

fields to return

< string > array

Query

limit
optional

maximum number of results to return (default 50)

integer

Query

offset
optional

result offset (default 0)

integer

Query

sorting
optional

sorting (title-asc,desc or published_at-asc,desc)

string

Responses
HTTP Code Description Schema

200

products response

< Product > array

default

unexpected error

ErrorModel

Produces
  • application/json

Security
Type Name Scopes

oauth2

oauth2

read_products,write_products

basic

basic_auth

Example HTTP request
Request path
"/products.json"
Request query
{
  "fields" : "string",
  "limit" : 0,
  "offset" : 0,
  "sorting" : "string"
}
Example HTTP response
Response 200
"array"
Response default
{
  "errors" : "object"
}

GET /products/{id}.json

Description

Returns a product based on a single ID

Parameters
Type Name Description Schema

Path

id
required

ID of product to fetch

integer

Responses
HTTP Code Description Schema

200

product response

Product

default

unexpected error

ErrorModel

Produces
  • application/json

Security
Type Name Scopes

oauth2

oauth2

read_products,write_products

basic

basic_auth

Example HTTP request
Request path
"/products/0.json"
Example HTTP response
Response 200
{
  "id" : 45678,
  "title" : "T-shirt with flames",
  "titles" : "object",
  "handle" : "t-shirt-with-flames",
  "handles" : "object",
  "vendor" : "The T-shirt Company",
  "vendors" : "object",
  "type" : "T-shirt",
  "types" : "object",
  "template" : "product.panda",
  "templates" : "object",
  "selected_variant_id" : 88443,
  "h1_title" : "A lovely t-shirt with flames on it",
  "h1_titles" : "object",
  "meta_title" : "Buy a lovely t-shirt with flames on it",
  "meta_titles" : "object",
  "meta_keywords" : "t-shirt flames, popular t-shirt",
  "meta_keywordss" : "object",
  "meta_description" : "Find out more, click to have a look at our lovely t-shirt with flames on it",
  "meta_descriptions" : "object",
  "metafields" : "object",
  "key_features" : [ "Gets you all the girls" ],
  "key_featuress" : "object",
  "content" : "<p>A lovely t-shirt</p><p>With flames on it</p>",
  "contents" : "object",
  "content_plain" : "A lovely t-shirt\nWith flames on it",
  "contents_plain" : "object",
  "created_at" : "2016-05-01 22:00:01",
  "updated_at" : "2016-05-01 22:00:01",
  "collections" : [ "all-products" ],
  "thumbnail" : "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",
  "featured_image" : {
    "id" : 981,
    "src" : "//cdn.pandacommerce.net/templates/1/1/template/983/assets/add_prod.png?7028",
    "alt" : "My image"
  },
  "images" : [ {
    "id" : 981,
    "src" : "//cdn.pandacommerce.net/templates/1/1/template/983/assets/add_prod.png?7028",
    "alt" : "My image"
  } ],
  "available" : true,
  "price" : 1.99,
  "price_min" : 1.99,
  "price_max" : 1.99,
  "price_varies" : true,
  "compare_at_price" : 1.99,
  "compare_at_price_min" : 1.99,
  "compare_at_price_max" : 1.99,
  "compare_at_price_varies" : true,
  "options" : [ "Size" ],
  "options_defaults" : [ "XL" ],
  "optionss" : [ "object" ],
  "variants" : [ {
    "id" : 88443,
    "product_id" : 0,
    "option1" : "XL",
    "option2" : "Red",
    "option3" : "Striped",
    "options" : [ "XL" ],
    "optionss" : [ "object" ],
    "title" : "XL / Red / Striped",
    "titles" : "object",
    "metafields" : "object",
    "fulfillment_service" : "manual",
    "featured_image" : {
      "id" : 981,
      "src" : "//cdn.pandacommerce.net/templates/1/1/template/983/assets/add_prod.png?7028",
      "alt" : "My image"
    },
    "inventory_quantity" : 21,
    "inventory_management" : "none",
    "inventory_location" : "D6",
    "inventory_policy" : "deny",
    "taxable" : true,
    "requires_shipping" : true,
    "sku" : "XK3334L",
    "thumbnail" : "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",
    "barcode" : "044566333322",
    "weight" : 500,
    "image_id" : 232,
    "available" : true,
    "price" : 1.99,
    "prices" : "object",
    "compare_at_price" : 2.99,
    "compare_at_prices" : "object",
    "purchase_price" : 0.99,
    "purchase_prices" : "object",
    "sold" : 10,
    "position" : 0,
    "product_title" : "T-shirt with flames",
    "product_titles" : "object",
    "sales_channels" : "object"
  } ],
  "sold" : 7,
  "variants_count" : 1,
  "reviews_rating" : 4.5,
  "inventory_quantity" : 21,
  "tags" : [ "t-shirts" ],
  "tagss" : "object",
  "url" : "string",
  "sales_channels" : "object"
}
Response default
{
  "errors" : "object"
}

PUT /products/{id}.json

Description

Edits a product based on a single ID

Parameters
Type Name Description Schema

Path

id
required

ID of product to fetch

integer

Body

product
required

Product to add to the store

Product

Responses
HTTP Code Description Schema

200

product response

Product

default

unexpected error

ErrorModel

Produces
  • application/json

Security
Type Name Scopes

oauth2

oauth2

write_products

basic

basic_auth

Example HTTP request
Request path
"/products/0.json"
Request body
{
  "id" : 45678,
  "title" : "T-shirt with flames",
  "titles" : "object",
  "handle" : "t-shirt-with-flames",
  "handles" : "object",
  "vendor" : "The T-shirt Company",
  "vendors" : "object",
  "type" : "T-shirt",
  "types" : "object",
  "template" : "product.panda",
  "templates" : "object",
  "selected_variant_id" : 88443,
  "h1_title" : "A lovely t-shirt with flames on it",
  "h1_titles" : "object",
  "meta_title" : "Buy a lovely t-shirt with flames on it",
  "meta_titles" : "object",
  "meta_keywords" : "t-shirt flames, popular t-shirt",
  "meta_keywordss" : "object",
  "meta_description" : "Find out more, click to have a look at our lovely t-shirt with flames on it",
  "meta_descriptions" : "object",
  "metafields" : "object",
  "key_features" : [ "Gets you all the girls" ],
  "key_featuress" : "object",
  "content" : "<p>A lovely t-shirt</p><p>With flames on it</p>",
  "contents" : "object",
  "content_plain" : "A lovely t-shirt\nWith flames on it",
  "contents_plain" : "object",
  "created_at" : "2016-05-01 22:00:01",
  "updated_at" : "2016-05-01 22:00:01",
  "collections" : [ "all-products" ],
  "thumbnail" : "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",
  "featured_image" : {
    "id" : 981,
    "src" : "//cdn.pandacommerce.net/templates/1/1/template/983/assets/add_prod.png?7028",
    "alt" : "My image"
  },
  "images" : [ {
    "id" : 981,
    "src" : "//cdn.pandacommerce.net/templates/1/1/template/983/assets/add_prod.png?7028",
    "alt" : "My image"
  } ],
  "available" : true,
  "price" : 1.99,
  "price_min" : 1.99,
  "price_max" : 1.99,
  "price_varies" : true,
  "compare_at_price" : 1.99,
  "compare_at_price_min" : 1.99,
  "compare_at_price_max" : 1.99,
  "compare_at_price_varies" : true,
  "options" : [ "Size" ],
  "options_defaults" : [ "XL" ],
  "optionss" : [ "object" ],
  "variants" : [ {
    "id" : 88443,
    "product_id" : 0,
    "option1" : "XL",
    "option2" : "Red",
    "option3" : "Striped",
    "options" : [ "XL" ],
    "optionss" : [ "object" ],
    "title" : "XL / Red / Striped",
    "titles" : "object",
    "metafields" : "object",
    "fulfillment_service" : "manual",
    "featured_image" : {
      "id" : 981,
      "src" : "//cdn.pandacommerce.net/templates/1/1/template/983/assets/add_prod.png?7028",
      "alt" : "My image"
    },
    "inventory_quantity" : 21,
    "inventory_management" : "none",
    "inventory_location" : "D6",
    "inventory_policy" : "deny",
    "taxable" : true,
    "requires_shipping" : true,
    "sku" : "XK3334L",
    "thumbnail" : "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",
    "barcode" : "044566333322",
    "weight" : 500,
    "image_id" : 232,
    "available" : true,
    "price" : 1.99,
    "prices" : "object",
    "compare_at_price" : 2.99,
    "compare_at_prices" : "object",
    "purchase_price" : 0.99,
    "purchase_prices" : "object",
    "sold" : 10,
    "position" : 0,
    "product_title" : "T-shirt with flames",
    "product_titles" : "object",
    "sales_channels" : "object"
  } ],
  "sold" : 7,
  "variants_count" : 1,
  "reviews_rating" : 4.5,
  "inventory_quantity" : 21,
  "tags" : [ "t-shirts" ],
  "tagss" : "object",
  "url" : "string",
  "sales_channels" : "object"
}
Example HTTP response
Response 200
{
  "id" : 45678,
  "title" : "T-shirt with flames",
  "titles" : "object",
  "handle" : "t-shirt-with-flames",
  "handles" : "object",
  "vendor" : "The T-shirt Company",
  "vendors" : "object",
  "type" : "T-shirt",
  "types" : "object",
  "template" : "product.panda",
  "templates" : "object",
  "selected_variant_id" : 88443,
  "h1_title" : "A lovely t-shirt with flames on it",
  "h1_titles" : "object",
  "meta_title" : "Buy a lovely t-shirt with flames on it",
  "meta_titles" : "object",
  "meta_keywords" : "t-shirt flames, popular t-shirt",
  "meta_keywordss" : "object",
  "meta_description" : "Find out more, click to have a look at our lovely t-shirt with flames on it",
  "meta_descriptions" : "object",
  "metafields" : "object",
  "key_features" : [ "Gets you all the girls" ],
  "key_featuress" : "object",
  "content" : "<p>A lovely t-shirt</p><p>With flames on it</p>",
  "contents" : "object",
  "content_plain" : "A lovely t-shirt\nWith flames on it",
  "contents_plain" : "object",
  "created_at" : "2016-05-01 22:00:01",
  "updated_at" : "2016-05-01 22:00:01",
  "collections" : [ "all-products" ],
  "thumbnail" : "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",
  "featured_image" : {
    "id" : 981,
    "src" : "//cdn.pandacommerce.net/templates/1/1/template/983/assets/add_prod.png?7028",
    "alt" : "My image"
  },
  "images" : [ {
    "id" : 981,
    "src" : "//cdn.pandacommerce.net/templates/1/1/template/983/assets/add_prod.png?7028",
    "alt" : "My image"
  } ],
  "available" : true,
  "price" : 1.99,
  "price_min" : 1.99,
  "price_max" : 1.99,
  "price_varies" : true,
  "compare_at_price" : 1.99,
  "compare_at_price_min" : 1.99,
  "compare_at_price_max" : 1.99,
  "compare_at_price_varies" : true,
  "options" : [ "Size" ],
  "options_defaults" : [ "XL" ],
  "optionss" : [ "object" ],
  "variants" : [ {
    "id" : 88443,
    "product_id" : 0,
    "option1" : "XL",
    "option2" : "Red",
    "option3" : "Striped",
    "options" : [ "XL" ],
    "optionss" : [ "object" ],
    "title" : "XL / Red / Striped",
    "titles" : "object",
    "metafields" : "object",
    "fulfillment_service" : "manual",
    "featured_image" : {
      "id" : 981,
      "src" : "//cdn.pandacommerce.net/templates/1/1/template/983/assets/add_prod.png?7028",
      "alt" : "My image"
    },
    "inventory_quantity" : 21,
    "inventory_management" : "none",
    "inventory_location" : "D6",
    "inventory_policy" : "deny",
    "taxable" : true,
    "requires_shipping" : true,
    "sku" : "XK3334L",
    "thumbnail" : "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",
    "barcode" : "044566333322",
    "weight" : 500,
    "image_id" : 232,
    "available" : true,
    "price" : 1.99,
    "prices" : "object",
    "compare_at_price" : 2.99,
    "compare_at_prices" : "object",
    "purchase_price" : 0.99,
    "purchase_prices" : "object",
    "sold" : 10,
    "position" : 0,
    "product_title" : "T-shirt with flames",
    "product_titles" : "object",
    "sales_channels" : "object"
  } ],
  "sold" : 7,
  "variants_count" : 1,
  "reviews_rating" : 4.5,
  "inventory_quantity" : 21,
  "tags" : [ "t-shirts" ],
  "tagss" : "object",
  "url" : "string",
  "sales_channels" : "object"
}
Response default
{
  "errors" : "object"
}

DELETE /products/{id}.json

Description

deletes a single product based on the ID supplied

Parameters
Type Name Description Schema

Path

id
required

ID of product to delete

integer

Responses
HTTP Code Description Schema

200

[]

No Content

default

unexpected error

ErrorModel

Security
Type Name Scopes

oauth2

oauth2

write_products

basic

basic_auth

Example HTTP request
Request path
"/products/0.json"
Example HTTP response
Response default
{
  "errors" : "object"
}

Scripts

POST /script_tags.json

Description

Creates a new script tag in the store.

Parameters
Type Name Description Schema

Body

script_tag
required

Script tag to add to the store

ScriptTag

Responses
HTTP Code Description Schema

200

script tag response

ScriptTag

default

unexpected error

ErrorModel

Produces
  • application/json

Security
Type Name Scopes

oauth2

oauth2

write_themes

basic

basic_auth

Example HTTP request
Request path
"/script_tags.json"
Request body
{
  "id" : 123,
  "src" : "https://www.my-app.com/tag.js"
}
Example HTTP response
Response 200
{
  "id" : 123,
  "src" : "https://www.my-app.com/tag.js"
}
Response default
{
  "errors" : "object"
}

GET /script_tags.json

Description

Returns all script tags from the system that the user has access to

Parameters
Type Name Description Schema

Query

fields
optional

fields to return

< string > array

Query

limit
optional

maximum number of results to return (default 50)

integer

Query

offset
optional

result offset (default 0)

integer

Query

sorting
optional

sorting (title-asc,desc or published_at-asc,desc)

string

Responses
HTTP Code Description Schema

200

script tag response

< ScriptTag > array

default

unexpected error

ErrorModel

Produces
  • application/json

Security
Type Name Scopes

oauth2

oauth2

write_themes,read_themes

basic

basic_auth

Example HTTP request
Request path
"/script_tags.json"
Request query
{
  "fields" : "string",
  "limit" : 0,
  "offset" : 0,
  "sorting" : "string"
}
Example HTTP response
Response 200
"array"
Response default
{
  "errors" : "object"
}

GET /script_tags/{id}.json

Description

Returns a script tag service based on a single ID

Parameters
Type Name Description Schema

Path

id
required

ID of script tag to fetch

integer

Responses
HTTP Code Description Schema

200

Script tag response

ScriptTag

default

unexpected error

ErrorModel

Produces
  • application/json

Security
Type Name Scopes

oauth2

oauth2

write_themes,read_themes

basic

basic_auth

Example HTTP request
Request path
"/script_tags/0.json"
Example HTTP response
Response 200
{
  "id" : 123,
  "src" : "https://www.my-app.com/tag.js"
}
Response default
{
  "errors" : "object"
}

DELETE /script_tags/{id}.json

Description

deletes a single script tag based on the ID supplied

Parameters
Type Name Description Schema

Path

id
required

ID of script tag to delete

integer

Responses
HTTP Code Description Schema

200

[]

No Content

default

unexpected error

ErrorModel

Security
Type Name Scopes

oauth2

oauth2

write_themes

basic

basic_auth

Example HTTP request
Request path
"/script_tags/0.json"
Example HTTP response
Response default
{
  "errors" : "object"
}

Themes

POST /themes.json

Description

Creates a theme in the store.

Parameters
Type Name Description Schema

Body

theme
required

theme to add to the store

Theme

Responses
HTTP Code Description Schema

200

theme response

Theme

default

unexpected error

ErrorModel

Produces
  • application/json

Security
Type Name Scopes

oauth2

oauth2

write_themes

basic

basic_auth

Example HTTP request
Request path
"/themes.json"
Request body
{
  "id" : 123,
  "created_at" : "2016-05-01 22:00:01",
  "role" : "main",
  "theme_id" : 4335,
  "name" : "My new theme"
}
Example HTTP response
Response 200
{
  "id" : 123,
  "created_at" : "2016-05-01 22:00:01",
  "role" : "main",
  "theme_id" : 4335,
  "name" : "My new theme"
}
Response default
{
  "errors" : "object"
}

GET /themes.json

Description

Returns all themes

Responses
HTTP Code Description Schema

200

theme response

< Theme > array

default

unexpected error

ErrorModel

Produces
  • application/json

Security
Type Name Scopes

oauth2

oauth2

write_themes,read_themes

basic

basic_auth

Example HTTP request
Request path
"/themes.json"
Example HTTP response
Response 200
"array"
Response default
{
  "errors" : "object"
}

GET /themes/{id}/assets.json

Description

Returns all assets

Parameters
Type Name Description Schema

Path

id
required

ID of theme to fetch assets for

integer

Responses
HTTP Code Description Schema

200

asset response

< Asset > array

default

unexpected error

ErrorModel

Produces
  • application/json

Security
Type Name Scopes

oauth2

oauth2

write_themes,read_themes

basic

basic_auth

Example HTTP request
Request path
"/themes/0/assets.json"
Example HTTP response
Response 200
"array"
Response default
{
  "errors" : "object"
}

GET /themes/{id}/assets.json?key=

Description

Return a single asset by key

Parameters
Type Name Description Schema

Path

id
required

ID of theme to fetch assets for

integer

Query

key
required

Key of file to fetch

integer

Responses
HTTP Code Description Schema

200

get asset response

AssetWithData

default

unexpected error

ErrorModel

Produces
  • application/json

Security
Type Name Scopes

oauth2

oauth2

write_themes,read_themes

basic

basic_auth

Example HTTP request
Request path
"/themes/0/assets.json?key="
Request query
{
  "key" : 0
}
Example HTTP response
Response 200
{
  "key" : "assets/cardboard-box.png",
  "filename" : "cardboard-box.png",
  "content_type" : "image/png",
  "size" : 260911,
  "url" : "//cdn.pandacommerce.net/templates/253/272/template/589/assets/cardboard-box.png",
  "data" : "some file contents"
}
Response default
{
  "errors" : "object"
}

PUT /themes/{id}/assets.json?key=

Description

Edit a single asset by key

Parameters
Type Name Description Schema

Path

id
required

ID of theme to fetch assets for

integer

Query

key
required

Key of file to edit

integer

Responses
HTTP Code Description Schema

200

asset update response

AssetWithData

default

unexpected error

ErrorModel

Produces
  • application/json

Security
Type Name Scopes

oauth2

oauth2

write_themes

basic

basic_auth

Example HTTP request
Request path
"/themes/0/assets.json?key="
Request query
{
  "key" : 0
}
Example HTTP response
Response 200
{
  "key" : "assets/cardboard-box.png",
  "filename" : "cardboard-box.png",
  "content_type" : "image/png",
  "size" : 260911,
  "url" : "//cdn.pandacommerce.net/templates/253/272/template/589/assets/cardboard-box.png",
  "data" : "some file contents"
}
Response default
{
  "errors" : "object"
}

Webhooks

POST /webhooks.json

Description

register to a webhook service

Parameters
Type Name Description Schema

Body

webhook
required

webhooks service

Webhook

Responses
HTTP Code Description Schema

200

Webhooks

Webhook

default

unexpected error

ErrorModel

Produces
  • application/json

Security
Type Name Scopes

oauth2

oauth2

read_orders,read_products,read_fulfillments

Example HTTP request
Request path
"/webhooks.json"
Request body
{
  "event" : "orders/paid",
  "url" : "https://mycallback.example.com/orders_paid_event"
}
Example HTTP response
Response 200
{
  "event" : "orders/paid",
  "url" : "https://mycallback.example.com/orders_paid_event"
}
Response default
{
  "errors" : "object"
}

GET /webhooks.json

Description

List webhooks

Responses
HTTP Code Description Schema

200

get list of installed webhooks

< Webhook > array

default

unexpected error

ErrorModel

Produces
  • application/json

Security
Type Name Scopes

oauth2

oauth2

read_orders,read_products,read_fulfillments

Example HTTP request
Request path
"/webhooks.json"
Example HTTP response
Response 200
"array"
Response default
{
  "errors" : "object"
}

Definitions

Address

Name Description Schema

address1
optional

Example : "Street 1"

string

address2
optional

Example : "apt5"

string

city
optional

Example : "Stockholm"

string

company
optional

Example : "Acme Ltd"

string

country
optional

Example : "SE"

string

country_code
optional

Example : "SE"

string

first_name
optional

Example : "Benson"

string

id
optional
read-only

Example : 543

integer

last_name
optional

Example : "Benson"

string

name
optional
read-only

Example : "Richard Benson"

string

phone
optional

Example : "+467348583493"

string

province
optional

Example : ""

string

province_code
optional

Example : ""

string

street
optional
read-only

Example : "Street 1 apt5"

string

zip
optional

Example : "12345"

string

Asset

Name Description Schema

content_type
optional
read-only

Example : "image/png"

string

filename
optional
read-only

Example : "cardboard-box.png"

string

key
optional
read-only

Example : "assets/cardboard-box.png"

string

size
optional
read-only

Example : 260911

integer

url
optional
read-only

Example : "//cdn.pandacommerce.net/templates/253/272/template/589/assets/cardboard-box.png"

string

AssetWithData

Polymorphism : Composition

Name Description Schema

content_type
optional
read-only

Example : "image/png"

string

data
optional

Example : "some file contents"

string

filename
optional
read-only

Example : "cardboard-box.png"

string

key
optional
read-only

Example : "assets/cardboard-box.png"

string

size
optional
read-only

Example : 260911

integer

url
optional
read-only

Example : "//cdn.pandacommerce.net/templates/253/272/template/589/assets/cardboard-box.png"

string

AuthorModel

Name Description Schema

email
optional
read-only

Example : "richard@pandacommerce.net"

string

first_name
optional
read-only

Example : "Richard"

string

id
optional
read-only

Example : 343

integer

language
optional
read-only

Example : "sv_SE"

string

last_name
optional
read-only

Example : "Benson"

string

name
optional
read-only

Example : "Richard Benson"

string

store_owner
optional
read-only

Example : true

boolean

CarrierService

Name Description Schema

callback_url
optional

Example : "https://www.my-app.com/fulfillment_service.php"

string

created_at
optional
read-only

Example : "2016-05-01 22:00:01"

string(date-time)

credential1
optional

Example : "user@domain.com"

string

handle
optional

Example : "my-carrier-service"

string

id
optional
read-only

Example : 123

integer

name
optional

Example : "My Carrier service"

string

provider_id
optional

Example : 3

integer

Customer

Name Description Schema

accepts_marketing
optional

Example : true

boolean

account_activation_url
optional

Example : "https://store.pandacommerce.net/account/activate/2938809835f3135a3ea8ba30b104154b"

string

addresses
optional

Example : [ "Address" ]

< Address > array

addresses_count
optional

Example : 1

integer

addresses_option_tags
optional

Example : "<option…​..>Richard Benson, SE</option>"

string

company
optional

Example : "Acme Ltd"

string

default_address
optional

Example : "Address"

Address

email
optional

Example : "customer@domain.com"

string

first_name
optional

Example : "Richard"

string

id
optional
read-only

Example : 9348

integer

last_name
optional

Example : "Benson"

string

last_order
optional

Example : "Order"

Order

metafields
optional

Example : "object"

object

name
optional
read-only

Example : "Richard Benson"

string

note
optional

Example : "Notes about customer"

string

orders
optional

Example : [ "Order" ]

< Order > array

orders_count
optional

Example : 1

integer

reset_password_url
optional

Example : "https://store.pandacommerce.net/account/reset/2938809835f3135a3ea8ba30b104154b"

string

shop_id
optional

Example : 23424

integer

shop_name
optional

Example : "My T-shirt store"

string

status
optional

Example : "enabled"

string

tags
optional

Example : [ "string" ]

< string > array

total_spent
optional

Example : 129.0

number(float)

Discount

Name Description Schema

applicable_to
optional

Example : [ "object" ]

< applicable_to > array

apply_once
optional

Example : true

boolean

conditions
optional

Example : [ "object" ]

< conditions > array

created_at
optional
read-only

Example : "2016-05-01 22:00:01"

string(date-time)

ends_at
optional

Example : "2016-05-01 22:00:01"

string(date-time)

id
optional
read-only

Example : 452

integer

inclusive
optional

Example : true

boolean

max_uses
optional

Example : 5

integer

starts_at
optional

Example : "2016-05-01 22:00:01"

string(date-time)

status
optional
read-only

Example : "enabled"

string

title
optional

Example : "DISCOUNT20"

string

type
optional

Example : "discount_code"

string

use_count
optional

Example : 0

integer

applicable_to

Name Description Schema

amount
optional

Example : 20.0

number(float)

discount
optional

Example : "fixed_amount"

string

target
optional

Example : "my-chosen-products"

string

type
optional

Example : "tag"

string

conditions

Name Description Schema

price_max
optional

Example : 300.0

number(float)

price_min
optional

Example : 100.0

number(float)

quantity_max
optional

Example : 2

integer

quantity_min
optional

Example : 1

integer

type
optional

Example : "tag"

string

ErrorModel

Name Description Schema

errors
optional

Example : "object"

errors

errors

Name Description Schema

x-field
optional

Example : [ "string" ]

< string > array

Fulfillment

Name Description Schema

created_at
optional
read-only

Example : "2016-05-01 22:00:01"

string(date-time)

fulfillment_service
optional

Example : "FulfillmentService"

FulfillmentService

fulfillment_service_receipt
optional

Example : "GS3242"

string

id
optional
read-only

Example : 123

integer

line_items
optional

Example : [ "LineItem" ]

< LineItem > array

order_id
optional
read-only

Example : 4364

integer

status
optional

Example : "success"

string

tracking_company
optional

Example : "Standard Post"

string

tracking_company_id
optional

Example : 232

integer

tracking_number
optional

Example : "SE349329492P"

string

tracking_url
optional

Example : "http://www.postcompany.com/?trackid=SE349329492P"

string

FulfillmentService

Name Description Schema

callback_url
optional

Example : "https://www.my-app.com/fulfillment_service.php"

string

created_at
optional
read-only

Example : "2016-05-01 22:00:01"

string(date-time)

credential1
optional

Example : "user@domain.com"

string

email
optional

Example : "user@domain.com"

string

handle
optional

Example : "my-own-fulfillment-service"

string

id
optional
read-only

Example : 123

integer

include_pending_stock
optional

Example : true

boolean

inventory_management
optional

Example : true

boolean

name
optional

Example : "My own fulfillment service"

string

provider_id
optional

Example : 3

integer

requires_shipping_method
optional

Example : true

boolean

return_handling
optional

Example : true

boolean

tracking_support
optional

Example : true

boolean

Image

Name Description Schema

alt
optional

Example : "My image"

string

id
optional
read-only

Example : 981

integer

src
optional

Example : "//cdn.pandacommerce.net/templates/1/1/template/983/assets/add_prod.png?7028"

string

LineItem

Name Description Schema

available_quantity
optional
read-only

Example : 20

integer

featured_image
optional

Example : "Image"

Image

fulfillable_quantity
optional
read-only

Example : 1

integer

fulfilled_quantity
optional
read-only

Example : 0

integer

fulfillment_service
optional
read-only

Example : "my-own-fulfillment-service"

string

id
optional
read-only

Example : 123

integer

inventory_location
optional

Example : "D6"

string

line_price
optional
read-only

Example : 129.0

number(float)

line_price_excluding_tax
optional
read-only

Example : 129.0

number(float)

line_weight
optional
read-only

Example : 500

integer

price
optional

Example : 129.0

number(float)

price_excluding_tax
optional
read-only

Example : 129.0

number(float)

product_id
optional
read-only

Example : 24221

integer

product_title
optional
read-only

Example : "T-shirt with flames"

string

properties
optional

Example : "object"

object

quantity
optional

Example : 1

integer

refunded_quantity
optional
read-only

Example : 0

integer

requires_shipping
optional

Example : true

boolean

sku
optional

Example : "XK3334L"

string

tax_lines
optional

Example : "TaxLines"

TaxLines

taxable
optional

Example : true

boolean

title
optional

Example : "T-shirt with flames - XL / Red / Striped"

string

variant_id
optional

Example : 34534

integer

variant_title
optional
read-only

Example : "XL / Red / Striped"

string

weight
optional
read-only

Example : 500

integer

Order

Name Description Schema

attributes
optional

Example : "object"

object

billing_address
optional

Example : "Address"

Address

cancel_reason
optional

Example : "other"

string

cancelled
optional

Example : false

boolean

cancelled_at
optional
read-only

Example : "2016-05-01 22:00:01"

string(date-time)

checkout_url
optional

Example : "https://checkout.pandacommerce.net/complete/b65673d761d01a8366d5a1a01e483e7b"

string

created_at
optional
read-only

Example : "2016-05-01 22:00:01"

string(date-time)

currency
optional

Example : "SEK"

string

customer
optional

Example : "Customer"

Customer

customer_url
optional

Example : "https://store.pandacommerce.net/account/order/34543"

string

discount_code
optional

Example : "DISCOUNT20"

string

email
optional

Example : "customer@domain.com"

string

financial_status
optional

Example : "paid"

string

fulfillment_status
optional

Example : "unfulfilled"

string

fulfillments
optional

Example : [ "Fulfillment" ]

< Fulfillment > array

gateway
optional

Example : "Stripe"

string

hash
optional
read-only

Example : "b65673d761d01a8366d5a1a01e483e7b"

string

id
optional
read-only

Example : 34543

integer

landing_site
optional

Example : "http://store.pandacommerce.net/?ref=myblog"

string

landing_site_ref
optional

Example : "myblog"

string

line_items
optional

Example : [ "LineItem" ]

< LineItem > array

line_items_price
optional

Example : 129.0

number(float)

line_items_price_excluding_tax
optional

Example : 0.0

number(float)

line_items_tax_lines
optional

Example : "TaxLines"

TaxLines

metafields
optional

Example : "object"

object

name
optional

Example : "#100033"

string

note
optional

Example : "Notes about order"

string

open
optional

Example : true

boolean

order_number
optional
read-only

Example : 33

integer

payment
optional

Example : "Transaction"

Transaction

payment_price
optional

Example : 0.0

number(float)

payment_price_excluding_tax
optional

Example : 0.0

number(float)

payment_tax_lines
optional

Example : "TaxLines"

TaxLines

referring_site
optional

Example : "http://www.google.com"

string

refunded_amount
optional

Example : 0.0

number(float)

refunds
optional

Example : [ "Transaction" ]

< Transaction > array

requires_shipping
optional

Example : true

boolean

shipping_address
optional

Example : "Address"

Address

shipping_methods
optional

Example : [ "object" ]

< shipping_methods > array

shipping_price
optional

Example : 0.0

number(float)

shipping_price_excluding_tax
optional

Example : 0.0

number(float)

shipping_tax_lines
optional

Example : "TaxLines"

TaxLines

shop_id
optional

Example : 23424

integer

shop_name
optional

Example : "My T-shirt store"

string

subtotal_price
optional

Example : 129.0

number(float)

tags
optional

Example : [ "string" ]

< string > array

tax_lines
optional

Example : "TaxLines"

TaxLines

tax_price
optional

Example : 25.8

number(float)

total_price
optional

Example : 129.0

number(float)

total_weight
optional

Example : 500

integer

transactions
optional

Example : [ "Transaction" ]

< Transaction > array

updated_at
optional
read-only

Example : "2016-05-01 22:00:01"

string(date-time)

url
optional

Example : "https://checkout.pandacommerce.net/order/b65673d761d01a8366d5a1a01e483e7b"

string

shipping_methods

Name Description Schema

price
optional

Example : 0.0

number(float)

service_code
optional

Example : "1D"

string

source
optional

Example : "CarrierService"

CarrierService

title
optional

Example : "Standard Post"

string

Page

Name Description Schema

author
optional
read-only

Example : "string"

string

content
optional

Example : "string"

string

h1_title
optional

Example : "string"

string

handle
optional

Example : "about-us"

string

id
optional
read-only

Example : 0

integer

meta_description
optional

Example : "string"

string

meta_keywords
optional

Example : "string"

string

meta_title
optional

Example : "string"

string

metafields
optional

Example : "object"

object

published_at
optional

Example : "string"

string

template
optional

Example : "page.panda"

string

title
optional

Example : "About Us"

string

updated_at
optional
read-only

Example : "2016-05-01 22:00:01"

string(date-time)

url
optional
read-only

Example : "string"

string

user
optional

Example : "AuthorModel"

AuthorModel

Product

Name Description Schema

available
optional
read-only

Example : true

boolean

collections
optional

Example : [ "string" ]

< string > array

compare_at_price
optional
read-only

Example : 1.99

number(float)

compare_at_price_max
optional
read-only

Example : 1.99

number(float)

compare_at_price_min
optional
read-only

Example : 1.99

number(float)

compare_at_price_varies
optional
read-only

Example : true

boolean

content
optional

Example : "<p>A lovely t-shirt</p><p>With flames on it</p>"

string

content_plain
optional
read-only

Example : "A lovely t-shirt\nWith flames on it"

string

contents
optional

Example : "object"

contents

contents_plain
optional

Example : "object"

contents_plain

created_at
optional
read-only

Example : "2016-05-01 22:00:01"

string(date-time)

featured_image
optional

Example : "Image"

Image

h1_title
optional

Example : "A lovely t-shirt with flames on it"

string

h1_titles
optional

Example : "object"

h1_titles

handle
optional

Example : "t-shirt-with-flames"

string

handles
optional

Example : "object"

handles

id
optional
read-only

Example : 45678

integer

images
optional

Example : [ "Image" ]

< Image > array

inventory_quantity
optional
read-only

Example : 21

integer

key_features
optional

Example : [ "string" ]

< string > array

key_featuress
optional

Example : "object"

key_featuress

meta_description
optional

Example : "Find out more, click to have a look at our lovely t-shirt with flames on it"

string

meta_descriptions
optional

Example : "object"

meta_descriptions

meta_keywords
optional

Example : "t-shirt flames, popular t-shirt"

string

meta_keywordss
optional

Example : "object"

meta_keywordss

meta_title
optional

Example : "Buy a lovely t-shirt with flames on it"

string

meta_titles
optional

Example : "object"

meta_titles

metafields
optional

Example : "object"

object

options
optional

Example : [ "string" ]

< string > array

options_defaults
optional

Example : [ "string" ]

< string > array

optionss
optional

Example : [ "object" ]

< optionss > array

price
optional
read-only

Example : 1.99

number(float)

price_max
optional
read-only

Example : 1.99

number(float)

price_min
optional
read-only

Example : 1.99

number(float)

price_varies
optional
read-only

Example : true

boolean

reviews_rating
optional
read-only

Example : 4.5

number(float)

sales_channels
optional

Example : "object"

sales_channels

selected_variant_id
optional
read-only

Example : 88443

integer

sold
optional
read-only

Example : 7

integer

tags
optional

Example : [ "string" ]

< string > array

tagss
optional

Example : "object"

tagss

template
optional

Example : "product.panda"

string

templates
optional

Example : "object"

templates

thumbnail
optional
read-only

Example : "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"

string

title
optional

Example : "T-shirt with flames"

string

titles
optional

Example : "object"

titles

type
optional

Example : "T-shirt"

string

types
optional

Example : "object"

types

updated_at
optional
read-only

Example : "2016-05-01 22:00:01"

string(date-time)

url
optional
read-only

Example : "string"

string

variants
optional

Example : [ "Variant" ]

< Variant > array

variants_count
optional
read-only

Example : 1

integer

vendor
optional

Example : "The T-shirt Company"

string

vendors
optional

Example : "object"

vendors

contents

Name Description Schema

x-locale
optional

Example : "<p>A lovely t-shirt</p><p>With flames on it</p>"

string

contents_plain

Name Description Schema

x-locale
optional
read-only

Example : "A lovely t-shirt\nWith flames on it"

string

h1_titles

Name Description Schema

x-locale
optional

Example : "A lovely t-shirt with flames on it"

string

handles

Name Description Schema

x-locale
optional

Example : "t-shirt-with-flames"

string

key_featuress

Name Description Schema

x-locale
optional

Example : [ "string" ]

< string > array

meta_descriptions

Name Description Schema

x-locale
optional

Example : "Find out more, click to have a look at our lovely t-shirt with flames on it"

string

meta_keywordss

Name Description Schema

x-locale
optional

Example : "t-shirt flames, popular t-shirt"

string

meta_titles

Name Description Schema

x-locale
optional

Example : "Buy a lovely t-shirt with flames on it"

string

optionss

Name Description Schema

x-locale
optional

Example : "Size"

string

sales_channels

Name Description Schema

x-sale_channel_id
optional

Example : true

boolean

tagss

Name Description Schema

x-locale
optional

Example : [ "string" ]

< string > array

templates

Name Description Schema

x-shop-id
optional

Example : "product.panda"

string

titles

Name Description Schema

x-locale
optional

Example : "T-shirt with flames"

string

types

Name Description Schema

x-locale
optional

Example : "T-shirt"

string

vendors

Name Description Schema

x-locale
optional

Example : "The T-shirt Company"

string

ScriptTag

Name Description Schema

id
optional
read-only

Example : 123

integer

src
optional

Example : "https://www.my-app.com/tag.js"

string

TaxLines

Name Description Schema

test
optional

Example : "123123123123"

string

Theme

Name Description Schema

created_at
optional
read-only

Example : "2016-05-01 22:00:01"

string(date-time)

id
optional
read-only

Example : 123

integer

name
optional

Example : "My new theme"

string

role
optional

Example : "main"

string

theme_id
optional

Example : 4335

integer

Transaction

Name Description Schema

amount
optional

Example : 129.0

number(float)

card_number
optional

Example : "XXXX XXXX XXXX 2134"

string

card_type
optional

Example : "Visa"

string

created_at
optional
read-only

Example : "2016-05-01 22:00:01"

string(date-time)

currency
optional

Example : "SEK"

string

gateway_id
optional

Example : 345

integer

gateway_title
optional

Example : "Stripe"

string

id
optional
read-only

Example : 123

integer

ip
optional

Example : "127.0.0.1"

string

kind
optional

Example : "capture"

string

message
optional

Example : "Capture Successful"

string

receipt
optional

Example : "KK34742D"

string

success
optional

Example : true

boolean

test
optional

Example : false

boolean

Variant

Name Description Schema

available
optional
read-only

Example : true

boolean

barcode
optional

Example : "044566333322"

string

compare_at_price
optional
read-only

Example : 2.99

number(float)

compare_at_prices
optional

Example : "object"

compare_at_prices

featured_image
optional

Example : "Image"

Image

fulfillment_service
optional

Example : "manual"

string

id
optional

Example : 88443

integer

image_id
optional

Example : 232

integer

inventory_location
optional

Example : "D6"

string

inventory_management
optional

Example : "none"

string

inventory_policy
optional

Example : "deny"

string

inventory_quantity
optional
read-only

Example : 21

integer

metafields
optional

Example : "object"

object

option1
optional
read-only

Example : "XL"

string

option2
optional
read-only

Example : "Red"

string

option3
optional
read-only

Example : "Striped"

string

options
optional

Example : [ "string" ]

< string > array

optionss
optional

Example : [ "object" ]

< optionss > array

position
optional

Example : 0

integer

price
optional
read-only

Example : 1.99

number(float)

prices
optional

Example : "object"

prices

product_id
optional

Example : 0

integer

product_title
optional
read-only

Example : "T-shirt with flames"

string

product_titles
optional

Example : "object"

product_titles

purchase_price
optional
read-only

Example : 0.99

number(float)

purchase_prices
optional

Example : "object"

purchase_prices

requires_shipping
optional

Example : true

boolean

sales_channels
optional

Example : "object"

sales_channels

sku
optional

Example : "XK3334L"

string

sold
optional

Example : 10

integer

taxable
optional

Example : true

boolean

thumbnail
optional
read-only

Example : "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"

string

title
optional
read-only

Example : "XL / Red / Striped"

string

titles
optional

Example : "object"

titles

weight
optional

Example : 500

integer

compare_at_prices

Name Description Schema

x-currency
optional

Example : 2.99

number(float)

optionss

Name Description Schema

x-locale
optional

Example : "XL"

string

prices

Name Description Schema

x-currency
optional

Example : 1.99

number(float)

product_titles

Name Description Schema

x-locale
optional
read-only

Example : "T-shirt with flames"

string

purchase_prices

Name Description Schema

x-currency
optional

Example : 0.99

number(float)

sales_channels

Name Description Schema

x-sale_channel_id
optional

Example : true

boolean

titles

Name Description Schema

x-locale
optional
read-only

Example : "XL / Red / Striped"

string

Webhook

Name Description Schema

event
optional
read-only

Example : "orders/paid"

enum (carts/create, carts/update, checkouts/create, checkouts/delete, checkouts/update, customers/create, customers/delete, customers/disable, customers/enable, customers/update, fulfillments/create, fulfillments/update, refunds/create, products/create, products/update, products/delete, orders/cancelled, orders/create, orders/fulfilled, orders/paid, orders/update, shop/update, app/uninstall)

url
optional

Example : "https://mycallback.example.com/orders_paid_event"

string

Security

basic_auth

Type : basic

oauth2

Type : oauth2
Flow : implicit
Token URL : http://mystore.pandacommerce.net/admin/oauth/authorize

Name Description

write_orders

Create and update orders

read_orders

Read orders

write_discounts

Create discounts

read_discounts

Read discounts

write_customers

Create and update customers

read_customers

Read customers

write_content

Create and update blogs, pages and articles

read_content

Read blogs, pages and articles

write_themes

Update theme files and script tags

read_themes

Read theme files

write_shipping

Create and update carrier services

read_shipping

Read carrier services

write_fulfillments

Create and update fulfillment services

read_fulfillments

Read fulfillment services

write_products

Create and update products, variants and collections

read_products

Read products, variants and collections