Commerce

Orders

The Order object

A Rutter Order represents an order processed by a merchant's store. Every order is linked to Fulfillments, Transactions, Products, Variants, and a Customer.

Every order contains a line_items array containing information about the products included in the order.

Properties

idstring

The Rutter generated unique ID of the order.

platform_idstringoptional

The platform specific ID of the order.

cancelled_atstringoptional

The ISO 8601 timestamp that the order was cancelled. SHOPIFY only.

payment_statusenum

The payment status of the order.

One ofpendingpaidrefundedfailed, or unknown.
statusenum

The status of the order.

One ofactivearchivedcancelled, or unknown.
total_discountnumber

The sum of all discounts applied to the total price.

total_pricenumber

The total price of the order.

fulfillment_statusenumnullable

The status of the fulfillment for the order.

One offulfilledunfulfilledpartial, or unknown.
iso_currency_codestringnullable

The ISO 4217 currency code of the order.

namestringoptional

The name of the order. Supported for SHOPIFY only.

order_numberstringoptional

The merchant facing order ID.

source_namestringoptional

The source name of the order. Supported for SHOPIFY only.

total_line_items_pricenumberoptional

The total price of all line items of the order. Supported for SHOPIFY only.

total_shippingnumbernullable

The sum of all shipping costs.

total_shipping_discountnumberoptional

The sum of all discounts on shipping applied to the total price.

total_taxnumbernullable

The total tax paid on the order.

tagsarrayoptional

The tags of the order. Supported for SHOPIFY only.

String array.

billing_addressobjectnullable
Show billing_address attributes
refundsarrayoptional
Show refunds attributes
shipping_addressobjectnullable
Show shipping_address attributes
customerobjectnullable
Show customer attributes
fulfillmentsarray
Show fulfillments attributes
line_itemsarray

The linked Variants and quantities associated with this order.

Show line_items attributes
transactionsarrayoptional

An array of Transactions linked to the order. Included if you pass the expand=transactions query parameter.

Show transactions attributes
created_atstring

The ISO 8601 timestamp that the order was created.

updated_atstring

The ISO 8601 timestamp that the order was last updated.

Example Order Object
{
  "id": "00000000-0000-0000-0000-000000000000",
  "platform_id": "12345678",
  "cancelled_at": "2023-01-02T02:34:56.000Z",
  "payment_status": "paid",
  "status": "active",
  "total_discount": 5,
  "total_price": 37.34,
  "fulfillment_status": "unfulfilled",
  "iso_currency_code": "USD",
  "order_number": "12345",
  "source_name": "web",
  "total_line_items_price": 28,
  "total_shipping": 12.34,
  "total_shipping_discount": 0,
  "total_tax": 2,
  "billing_address": {
    "address1": "123 Rutter Road",
    "address2": "Floor 4",
    "city": "San Francisco",
    "country_code": "USA",
    "first_name": "Eric",
    "last_name": "Yu",
    "postal_code": "94110",
    "region": "CA",
    "phone": "1234567890"
  },
  "shipping_address": {
    "address1": "123 Rutter Road",
    "address2": "Floor 4",
    "city": "San Francisco",
    "country_code": "USA",
    "first_name": "Eric",
    "last_name": "Yu",
    "postal_code": "94110",
    "region": "CA",
    "phone": "1234567890"
  },
  "customer": {
    "id": "00000000-0000-0000-0000-000000000000",
    "platform_id": "12345678",
    "email": "eric@rutter.com",
    "first_name": "Eric",
    "last_name": "Yu",
    "phone": "1234567890",
    "created_at": "2023-01-02T02:34:56.000Z",
    "updated_at": "2023-01-02T02:34:56.000Z"
  },
  "fulfillments": [
    {
      "id": "00000000-0000-0000-0000-000000000000",
      "order_id": "00000000-0000-0000-0000-000000000000",
      "carrier": "UPS",
      "service": "manual",
      "tracking_number": "https://www.ups.com/WebTracking?loc=en_US&requester=ST&trackNums=ABCDEFGH1234567890",
      "tracking_url": "ABCDEFGH1234567890",
      "line_items": [
        {
          "id": "00000000-0000-0000-0000-000000000000",
          "product_id": "00000000-0000-0000-0000-000000000000",
          "variant_id": "00000000-0000-0000-0000-000000000000",
          "price": 12.34,
          "quantity": 2,
          "sku": "RUTTER-1",
          "title": "Rutter Shirt (Large)"
        }
      ]
    }
  ],
  "transactions": [
    {
      "id": "00000000-0000-0000-0000-000000000000",
      "order_id": "00000000-0000-0000-0000-000000000000",
      "payment_method_type": "card",
      "status": "success",
      "type": "sale",
      "amount": 31.99,
      "gateway": "paypal",
      "gateway_data": null,
      "iso_currency_code": "USD",
      "created_at": "2023-02-01T05:21:24.000Z",
      "updated_at": "2023-02-01T05:21:24.000Z"
    }
  ],
  "line_items": [
    {
      "id": "00000000-0000-0000-0000-000000000000",
      "platform_id": "12345678",
      "product_id": "00000000-0000-0000-0000-000000000000",
      "variant_id": "00000000-0000-0000-0000-000000000000",
      "price": 14,
      "quantity": 1,
      "iso_currency_code": "USD",
      "sku": "Intelligent-Soft-Table-872793",
      "title": "Handcrafted-Practical Wooden Towels",
      "unit_cost": 14,
      "created_at": "2023-01-02T02:34:56.000Z",
      "updated_at": "2023-01-02T02:34:56.000Z"
    },
    {
      "id": "00000000-0000-0000-0000-000000000000",
      "platform_id": "12345678",
      "product_id": "00000000-0000-0000-0000-000000000000",
      "variant_id": "00000000-0000-0000-0000-000000000000",
      "price": 14,
      "quantity": 1,
      "iso_currency_code": "USD",
      "sku": "Intelligent-Wooden-Salad-164653",
      "title": "Incredible-Tasty Fresh Pants",
      "unit_cost": 14,
      "created_at": "2023-01-02T02:34:56.000Z",
      "updated_at": "2023-01-02T02:34:56.000Z"
    }
  ],
  "created_at": "2023-01-02T02:34:56.000Z",
  "updated_at": "2023-01-02T02:34:56.000Z"
}

List Orders

GET /versioned/orders
Supported for: AlibabaAmazonBig CommerceeBayEtsyGumroadLazadaMagentoMercado LibrePrestashopShopeeShoperShopifyShoplazzaShoplineSquareSquarespaceWalmartWixWoo Commerce

The /orders endpoint allows developers to receive user-authorized order data for a merchant's store.

Due to the potentially large number of orders associated with an Item, results are paginated. Manipulate the count and offset parameters in conjunction with the total_orders response body field to fetch all available transactions.

Request Parameters

    access_tokenstringquery

    The access token of the connection.

    created_at_maxintegeroptionalquery

    Unix Timestamp in milliseconds representing the maximum created_at datetime to fetch entities from.

    created_at_minintegeroptionalquery

    Unix Timestamp in milliseconds representing the minimum created_at datetime to fetch entities from.

    cursorstringoptionalquery

    The cursor to use for pagination. This value is passed in from next_cursor field in a previous request.

    expandenumoptionalquery

    Optionally, include transaction information when fetching orders.

    Can betransactions.
    force_fetchenumoptionalquery

    Force a response even if the underlying connection hasn't finished the initial sync.

    One oftrue or false.
    fulfillment_statusenumoptionalquery

    Optionally filter orders by their fulfillment_status.

    One offulfilledunfulfilledpartial, or unknown.
    limitintegeroptionalquery

    The limit on the number of entities returned.

    order_numberintegeroptionalquery

    Optionally filter by order number.

    payment_statusenumoptionalquery

    Optionally filters orders by payment_status.

    One ofpendingpaidrefundedfailed, or unknown.
    phonestringoptionalquery

    Optionally filter by phone number. Format using only numerics.

    propertiesstringoptionalquery

    Optionally return only certain fields specified by a comma-separated list of field names. E.g. id,status

    updated_at_maxintegeroptionalquery

    Unix Timestamp in milliseconds representing the maximum updated_at datetime to fetch entities from.

    updated_at_minintegeroptionalquery

    Unix Timestamp in milliseconds representing the minimum updated_at datetime to fetch entities from.

Response Body

    The /orders endpoint allows developers to receive user-authorized order data for a merchant's store. Due to the potentially large number of orders associated with a connection, results are paginated.

    connectionobject
    Show connection attributes
    ordersarray
    Show orders attributes
    next_cursorstringnullable
Example Response Body
{
  "connection": {
    "id": "00000000-0000-0000-0000-000000000000",
    "orgId": "00000000-0000-0000-0000-000000000000",
    "platform": "SHOPIFY"
  },
  "orders": [
    {
      "id": "00000000-0000-0000-0000-000000000000",
      "platform_id": "12345678",
      "cancelled_at": "2023-01-02T02:34:56.000Z",
      "payment_status": "paid",
      "status": "active",
      "total_discount": 5,
      "total_price": 37.34,
      "fulfillment_status": "unfulfilled",
      "iso_currency_code": "USD",
      "order_number": "12345",
      "source_name": "web",
      "total_line_items_price": 28,
      "total_shipping": 12.34,
      "total_shipping_discount": 0,
      "total_tax": 2,
      "billing_address": {
        "address1": "123 Rutter Road",
        "address2": "Floor 4",
        "city": "San Francisco",
        "country_code": "USA",
        "first_name": "Eric",
        "last_name": "Yu",
        "postal_code": "94110",
        "region": "CA",
        "phone": "1234567890"
      },
      "shipping_address": {
        "address1": "123 Rutter Road",
        "address2": "Floor 4",
        "city": "San Francisco",
        "country_code": "USA",
        "first_name": "Eric",
        "last_name": "Yu",
        "postal_code": "94110",
        "region": "CA",
        "phone": "1234567890"
      },
      "customer": {
        "id": "00000000-0000-0000-0000-000000000000",
        "platform_id": "12345678",
        "email": "eric@rutter.com",
        "first_name": "Eric",
        "last_name": "Yu",
        "phone": "1234567890",
        "created_at": "2023-01-02T02:34:56.000Z",
        "updated_at": "2023-01-02T02:34:56.000Z"
      },
      "fulfillments": [
        {
          "id": "00000000-0000-0000-0000-000000000000",
          "order_id": "00000000-0000-0000-0000-000000000000",
          "carrier": "UPS",
          "service": "manual",
          "tracking_number": "https://www.ups.com/WebTracking?loc=en_US&requester=ST&trackNums=ABCDEFGH1234567890",
          "tracking_url": "ABCDEFGH1234567890",
          "line_items": [
            {
              "id": "00000000-0000-0000-0000-000000000000",
              "product_id": "00000000-0000-0000-0000-000000000000",
              "variant_id": "00000000-0000-0000-0000-000000000000",
              "price": 12.34,
              "quantity": 2,
              "sku": "RUTTER-1",
              "title": "Rutter Shirt (Large)"
            }
          ]
        }
      ],
      "transactions": [
        {
          "id": "00000000-0000-0000-0000-000000000000",
          "order_id": "00000000-0000-0000-0000-000000000000",
          "payment_method_type": "card",
          "status": "success",
          "type": "sale",
          "amount": 31.99,
          "gateway": "paypal",
          "gateway_data": null,
          "iso_currency_code": "USD",
          "created_at": "2023-02-01T05:21:24.000Z",
          "updated_at": "2023-02-01T05:21:24.000Z"
        }
      ],
      "line_items": [
        {
          "id": "00000000-0000-0000-0000-000000000000",
          "platform_id": "12345678",
          "product_id": "00000000-0000-0000-0000-000000000000",
          "variant_id": "00000000-0000-0000-0000-000000000000",
          "price": 14,
          "quantity": 1,
          "iso_currency_code": "USD",
          "sku": "Intelligent-Soft-Table-872793",
          "title": "Handcrafted-Practical Wooden Towels",
          "unit_cost": 14,
          "created_at": "2023-01-02T02:34:56.000Z",
          "updated_at": "2023-01-02T02:34:56.000Z"
        },
        {
          "id": "00000000-0000-0000-0000-000000000000",
          "platform_id": "12345678",
          "product_id": "00000000-0000-0000-0000-000000000000",
          "variant_id": "00000000-0000-0000-0000-000000000000",
          "price": 14,
          "quantity": 1,
          "iso_currency_code": "USD",
          "sku": "Intelligent-Wooden-Salad-164653",
          "title": "Incredible-Tasty Fresh Pants",
          "unit_cost": 14,
          "created_at": "2023-01-02T02:34:56.000Z",
          "updated_at": "2023-01-02T02:34:56.000Z"
        }
      ],
      "created_at": "2023-01-02T02:34:56.000Z",
      "updated_at": "2023-01-02T02:34:56.000Z"
    }
  ],
  "next_cursor": null
}

Platform Differences

There can be some differences in field values due to platform-specific limitations or if the connection is missing required scopes.

Amazon

The total_price will be unavailable through the Amazon API and 0 in the following scenarios:

  • The order status is cancelled, pending , or unshipped. Cancelled orders do not have this info, whereas pending orders could later be updated to have price info.
  • If the order is a replacement order, no price info is available.
  • If the order is sold through Non-Amazon sales channel it may not have price info.

Shopify

Rutter supplements the Order object with the following properties from Shopify: name, cancelled_at, source_name, total_line_items_price, tags

Ebay

Rutter currently fetches 90 days worth of orders due to Ebay's own limitation.

Fetch an Order

GET /versioned/orders/:id
Supported for: AlibabaAmazonBig CommerceeBayEtsyGumroadLazadaMagentoMercado LibrePrestashopShopeeShoperShopifyShoplazzaShoplineSquareSquarespaceWalmartWixWoo Commerce

Request Parameters

    idstringpath

    The Rutter generated unique ID of the object.

    access_tokenstringquery

    The access token of the connection.

    expandenumoptionalquery

    Optionally, include transaction information when fetching orders.

    Can betransactions.
    force_fetchenumoptionalquery

    Force a response even if the underlying connection hasn't finished the initial sync.

    One oftrue or false.

Response Body

    The /orders/{id} endpoint allows developers to receive user-authorized order data for a specific order in a merchant's store.

    connectionobject
    Show connection attributes
    ordernullable
    Show order attributes
Example Response Body
{
  "connection": {
    "id": "00000000-0000-0000-0000-000000000000",
    "orgId": "00000000-0000-0000-0000-000000000000",
    "platform": "SHOPIFY"
  },
  "order": {
    "id": "00000000-0000-0000-0000-000000000000",
    "platform_id": "12345678",
    "cancelled_at": "2023-01-02T02:34:56.000Z",
    "payment_status": "paid",
    "status": "active",
    "total_discount": 5,
    "total_price": 37.34,
    "fulfillment_status": "unfulfilled",
    "iso_currency_code": "USD",
    "order_number": "12345",
    "source_name": "web",
    "total_line_items_price": 28,
    "total_shipping": 12.34,
    "total_shipping_discount": 0,
    "total_tax": 2,
    "billing_address": {
      "address1": "123 Rutter Road",
      "address2": "Floor 4",
      "city": "San Francisco",
      "country_code": "USA",
      "first_name": "Eric",
      "last_name": "Yu",
      "postal_code": "94110",
      "region": "CA",
      "phone": "1234567890"
    },
    "shipping_address": {
      "address1": "123 Rutter Road",
      "address2": "Floor 4",
      "city": "San Francisco",
      "country_code": "USA",
      "first_name": "Eric",
      "last_name": "Yu",
      "postal_code": "94110",
      "region": "CA",
      "phone": "1234567890"
    },
    "customer": {
      "id": "00000000-0000-0000-0000-000000000000",
      "platform_id": "12345678",
      "email": "eric@rutter.com",
      "first_name": "Eric",
      "last_name": "Yu",
      "phone": "1234567890",
      "created_at": "2023-01-02T02:34:56.000Z",
      "updated_at": "2023-01-02T02:34:56.000Z"
    },
    "fulfillments": [
      {
        "id": "00000000-0000-0000-0000-000000000000",
        "order_id": "00000000-0000-0000-0000-000000000000",
        "carrier": "UPS",
        "service": "manual",
        "tracking_number": "https://www.ups.com/WebTracking?loc=en_US&requester=ST&trackNums=ABCDEFGH1234567890",
        "tracking_url": "ABCDEFGH1234567890",
        "line_items": [
          {
            "id": "00000000-0000-0000-0000-000000000000",
            "product_id": "00000000-0000-0000-0000-000000000000",
            "variant_id": "00000000-0000-0000-0000-000000000000",
            "price": 12.34,
            "quantity": 2,
            "sku": "RUTTER-1",
            "title": "Rutter Shirt (Large)"
          }
        ]
      }
    ],
    "transactions": [
      {
        "id": "00000000-0000-0000-0000-000000000000",
        "order_id": "00000000-0000-0000-0000-000000000000",
        "payment_method_type": "card",
        "status": "success",
        "type": "sale",
        "amount": 31.99,
        "gateway": "paypal",
        "gateway_data": null,
        "iso_currency_code": "USD",
        "created_at": "2023-02-01T05:21:24.000Z",
        "updated_at": "2023-02-01T05:21:24.000Z"
      }
    ],
    "line_items": [
      {
        "id": "00000000-0000-0000-0000-000000000000",
        "platform_id": "12345678",
        "product_id": "00000000-0000-0000-0000-000000000000",
        "variant_id": "00000000-0000-0000-0000-000000000000",
        "price": 14,
        "quantity": 1,
        "iso_currency_code": "USD",
        "sku": "Intelligent-Soft-Table-872793",
        "title": "Handcrafted-Practical Wooden Towels",
        "unit_cost": 14,
        "created_at": "2023-01-02T02:34:56.000Z",
        "updated_at": "2023-01-02T02:34:56.000Z"
      },
      {
        "id": "00000000-0000-0000-0000-000000000000",
        "platform_id": "12345678",
        "product_id": "00000000-0000-0000-0000-000000000000",
        "variant_id": "00000000-0000-0000-0000-000000000000",
        "price": 14,
        "quantity": 1,
        "iso_currency_code": "USD",
        "sku": "Intelligent-Wooden-Salad-164653",
        "title": "Incredible-Tasty Fresh Pants",
        "unit_cost": 14,
        "created_at": "2023-01-02T02:34:56.000Z",
        "updated_at": "2023-01-02T02:34:56.000Z"
      }
    ],
    "created_at": "2023-01-02T02:34:56.000Z",
    "updated_at": "2023-01-02T02:34:56.000Z"
  }
}

Create an Order

POST /versioned/orders
Supported for: Big CommerceMagentoShopifySquarespaceWixWoo Commerce

Request Parameters

    access_tokenstringquery

    The access token of the connection.

Request Body

    orderobject

    The order to create.

    Show order attributes

Response Body

    Companies that use Rutter can programmatically create orders on their storeowner's shops. To do this, make a POST request to our orders endpoint.

    orderobject
    Show order attributes
Example Request Body
{
  "order": {
    "currency_code": "USD",
    "line_items": [
      {
        "variant_id": "00000000-0000-0000-0000-000000000000",
        "quantity": 1
      },
      {
        "variant_id": "00000000-0000-0000-0000-000000000000",
        "quantity": 2
      }
    ],
    "customer": {
      "email": "eric@rutter.com",
      "first_name": "Eric",
      "last_name": "Yu"
    },
    "billing_address": {
      "address1": "123 Rutter Road",
      "address2": "Floor 4",
      "city": "San Francisco",
      "country_code": "USA",
      "first_name": "Eric",
      "last_name": "Yu",
      "postal_code": "94110",
      "region": "CA",
      "email": "eric@rutter.com",
      "phone": "1234567890"
    },
    "shipping_address": {
      "address1": "123 Rutter Road",
      "address2": "Floor 4",
      "city": "San Francisco",
      "country_code": "USA",
      "first_name": "Eric",
      "last_name": "Yu",
      "postal_code": "94110",
      "region": "CA",
      "email": "eric@rutter.com",
      "phone": "1234567890"
    }
  }
}
Example Response Body
{
  "order": {
    "id": "00000000-0000-0000-0000-000000000000",
    "platform_id": "12345678",
    "cancelled_at": "2023-01-02T02:34:56.000Z",
    "payment_status": "paid",
    "status": "active",
    "total_discount": 5,
    "total_price": 37.34,
    "fulfillment_status": "unfulfilled",
    "iso_currency_code": "USD",
    "order_number": "12345",
    "source_name": "web",
    "total_line_items_price": 28,
    "total_shipping": 12.34,
    "total_shipping_discount": 0,
    "total_tax": 2,
    "billing_address": {
      "address1": "123 Rutter Road",
      "address2": "Floor 4",
      "city": "San Francisco",
      "country_code": "USA",
      "first_name": "Eric",
      "last_name": "Yu",
      "postal_code": "94110",
      "region": "CA",
      "phone": "1234567890"
    },
    "shipping_address": {
      "address1": "123 Rutter Road",
      "address2": "Floor 4",
      "city": "San Francisco",
      "country_code": "USA",
      "first_name": "Eric",
      "last_name": "Yu",
      "postal_code": "94110",
      "region": "CA",
      "phone": "1234567890"
    },
    "customer": {
      "id": "00000000-0000-0000-0000-000000000000",
      "platform_id": "12345678",
      "email": "eric@rutter.com",
      "first_name": "Eric",
      "last_name": "Yu",
      "phone": "1234567890",
      "created_at": "2023-01-02T02:34:56.000Z",
      "updated_at": "2023-01-02T02:34:56.000Z"
    },
    "fulfillments": [
      {
        "id": "00000000-0000-0000-0000-000000000000",
        "order_id": "00000000-0000-0000-0000-000000000000",
        "carrier": "UPS",
        "service": "manual",
        "tracking_number": "https://www.ups.com/WebTracking?loc=en_US&requester=ST&trackNums=ABCDEFGH1234567890",
        "tracking_url": "ABCDEFGH1234567890",
        "line_items": [
          {
            "id": "00000000-0000-0000-0000-000000000000",
            "product_id": "00000000-0000-0000-0000-000000000000",
            "variant_id": "00000000-0000-0000-0000-000000000000",
            "price": 12.34,
            "quantity": 2,
            "sku": "RUTTER-1",
            "title": "Rutter Shirt (Large)"
          }
        ]
      }
    ],
    "transactions": [
      {
        "id": "00000000-0000-0000-0000-000000000000",
        "order_id": "00000000-0000-0000-0000-000000000000",
        "payment_method_type": "card",
        "status": "success",
        "type": "sale",
        "amount": 31.99,
        "gateway": "paypal",
        "gateway_data": null,
        "iso_currency_code": "USD",
        "created_at": "2023-02-01T05:21:24.000Z",
        "updated_at": "2023-02-01T05:21:24.000Z"
      }
    ],
    "line_items": [
      {
        "id": "00000000-0000-0000-0000-000000000000",
        "platform_id": "12345678",
        "product_id": "00000000-0000-0000-0000-000000000000",
        "variant_id": "00000000-0000-0000-0000-000000000000",
        "price": 14,
        "quantity": 1,
        "iso_currency_code": "USD",
        "sku": "Intelligent-Soft-Table-872793",
        "title": "Handcrafted-Practical Wooden Towels",
        "unit_cost": 14,
        "created_at": "2023-01-02T02:34:56.000Z",
        "updated_at": "2023-01-02T02:34:56.000Z"
      },
      {
        "id": "00000000-0000-0000-0000-000000000000",
        "platform_id": "12345678",
        "product_id": "00000000-0000-0000-0000-000000000000",
        "variant_id": "00000000-0000-0000-0000-000000000000",
        "price": 14,
        "quantity": 1,
        "iso_currency_code": "USD",
        "sku": "Intelligent-Wooden-Salad-164653",
        "title": "Incredible-Tasty Fresh Pants",
        "unit_cost": 14,
        "created_at": "2023-01-02T02:34:56.000Z",
        "updated_at": "2023-01-02T02:34:56.000Z"
      }
    ],
    "created_at": "2023-01-02T02:34:56.000Z",
    "updated_at": "2023-01-02T02:34:56.000Z"
  }
}

Update an Order

PATCH /versioned/orders/:id
Supported for: ShopifyWoo Commerce

Request Parameters

    idstringpath

    The Rutter generated unique ID of the object.

    access_tokenstringquery

    The access token of the connection.

Request Body

    orderobject
    Show order attributes

Response Body

    The /orders/{id} endpoint allows developers to receive user-authorized order data for a specific order in a merchant's store.

    connectionobject
    Show connection attributes
    ordernullable
    Show order attributes
Example Request Body
{
  "order": {
    "status": "cancelled"
  }
}
Example Response Body
{
  "connection": {
    "id": "00000000-0000-0000-0000-000000000000",
    "orgId": "00000000-0000-0000-0000-000000000000",
    "platform": "SHOPIFY"
  },
  "order": {
    "id": "00000000-0000-0000-0000-000000000000",
    "platform_id": "12345678",
    "cancelled_at": "2023-01-02T02:34:56.000Z",
    "payment_status": "paid",
    "status": "active",
    "total_discount": 5,
    "total_price": 37.34,
    "fulfillment_status": "unfulfilled",
    "iso_currency_code": "USD",
    "order_number": "12345",
    "source_name": "web",
    "total_line_items_price": 28,
    "total_shipping": 12.34,
    "total_shipping_discount": 0,
    "total_tax": 2,
    "billing_address": {
      "address1": "123 Rutter Road",
      "address2": "Floor 4",
      "city": "San Francisco",
      "country_code": "USA",
      "first_name": "Eric",
      "last_name": "Yu",
      "postal_code": "94110",
      "region": "CA",
      "phone": "1234567890"
    },
    "shipping_address": {
      "address1": "123 Rutter Road",
      "address2": "Floor 4",
      "city": "San Francisco",
      "country_code": "USA",
      "first_name": "Eric",
      "last_name": "Yu",
      "postal_code": "94110",
      "region": "CA",
      "phone": "1234567890"
    },
    "customer": {
      "id": "00000000-0000-0000-0000-000000000000",
      "platform_id": "12345678",
      "email": "eric@rutter.com",
      "first_name": "Eric",
      "last_name": "Yu",
      "phone": "1234567890",
      "created_at": "2023-01-02T02:34:56.000Z",
      "updated_at": "2023-01-02T02:34:56.000Z"
    },
    "fulfillments": [
      {
        "id": "00000000-0000-0000-0000-000000000000",
        "order_id": "00000000-0000-0000-0000-000000000000",
        "carrier": "UPS",
        "service": "manual",
        "tracking_number": "https://www.ups.com/WebTracking?loc=en_US&requester=ST&trackNums=ABCDEFGH1234567890",
        "tracking_url": "ABCDEFGH1234567890",
        "line_items": [
          {
            "id": "00000000-0000-0000-0000-000000000000",
            "product_id": "00000000-0000-0000-0000-000000000000",
            "variant_id": "00000000-0000-0000-0000-000000000000",
            "price": 12.34,
            "quantity": 2,
            "sku": "RUTTER-1",
            "title": "Rutter Shirt (Large)"
          }
        ]
      }
    ],
    "transactions": [
      {
        "id": "00000000-0000-0000-0000-000000000000",
        "order_id": "00000000-0000-0000-0000-000000000000",
        "payment_method_type": "card",
        "status": "success",
        "type": "sale",
        "amount": 31.99,
        "gateway": "paypal",
        "gateway_data": null,
        "iso_currency_code": "USD",
        "created_at": "2023-02-01T05:21:24.000Z",
        "updated_at": "2023-02-01T05:21:24.000Z"
      }
    ],
    "line_items": [
      {
        "id": "00000000-0000-0000-0000-000000000000",
        "platform_id": "12345678",
        "product_id": "00000000-0000-0000-0000-000000000000",
        "variant_id": "00000000-0000-0000-0000-000000000000",
        "price": 14,
        "quantity": 1,
        "iso_currency_code": "USD",
        "sku": "Intelligent-Soft-Table-872793",
        "title": "Handcrafted-Practical Wooden Towels",
        "unit_cost": 14,
        "created_at": "2023-01-02T02:34:56.000Z",
        "updated_at": "2023-01-02T02:34:56.000Z"
      },
      {
        "id": "00000000-0000-0000-0000-000000000000",
        "platform_id": "12345678",
        "product_id": "00000000-0000-0000-0000-000000000000",
        "variant_id": "00000000-0000-0000-0000-000000000000",
        "price": 14,
        "quantity": 1,
        "iso_currency_code": "USD",
        "sku": "Intelligent-Wooden-Salad-164653",
        "title": "Incredible-Tasty Fresh Pants",
        "unit_cost": 14,
        "created_at": "2023-01-02T02:34:56.000Z",
        "updated_at": "2023-01-02T02:34:56.000Z"
      }
    ],
    "created_at": "2023-01-02T02:34:56.000Z",
    "updated_at": "2023-01-02T02:34:56.000Z"
  }
}
Previous
Store