Checkout

{
  "attributes": "Optional, array type, represents custom attributes of the order",
  "billingAddress": "Optional, object type, represents billing address information",
  "buyerAcceptsEmailMarketing": "Required, boolean type, indicates whether the buyer accepts email marketing",
  "buyerAcceptsSmsMarketing": "Required, boolean type, indicates whether the buyer accepts SMS marketing",
  "currencyCode": "Required, string type, represents the currency code",
  "delivery": {
    "selectedDeliveryOptions": [
      {
        "cost": {
          "amount": "Required, numeric type, represents the delivery cost amount",
          "currencyCode": "Required, string type, represents the currency code of the delivery cost"
        },
        "costAfterDiscounts": {
          "amount": "Required, numeric type, represents the delivery cost amount after discounts",
          "currencyCode": "Required, string type, represents the currency code of the delivery cost after discounts"
        },
        "description": "Optional, string type, represents the description of the delivery option",
        "handle": "Required, string type, represents the unique identifier of the delivery option",
        "title": "Required, string type, represents the title of the delivery option",
        "type": "Required, string type, represents the type of the delivery option (e.g., shipping)"
      }
    ]
  },
  "discountApplications": "Optional, array type, represents applied discount information",
  "discountsAmount": {
    "amount": "Required, numeric type, represents the total discount amount",
    "currencyCode": "Required, string type, represents the currency code of the total discount"
  },
  "email": "Required, string type, represents the buyer's email address",
  "lineItems": [
    {
      "discountAllocations": "Optional, array type, represents discount information allocated to this item",
      "finalLinePrice": {
        "amount": "Required, numeric type, represents the final price of this item",
        "currencyCode": "Required, string type, represents the currency code of the final price of this item"
      },
      "id": "Required, string type, represents the unique identifier of this item",
      "properties": "Optional, array type, represents custom properties of the item",
      "quantity": "Required, numeric type, represents the quantity of this item",
      "sellingPlanAllocation": "Optional, object type, represents selling plan allocation information",
      "title": "Required, string type, represents the name of the item",
      "variant": {
        "id": "Required, string type, represents the unique identifier of the product variant",
        "image": {
          "src": "Required, string type, represents the URL of the product variant image"
        },
        "price": {
          "amount": "Required, numeric type, represents the price of the product variant",
          "currencyCode": "Required, string type, represents the currency code of the product variant price"
        },
        "product": {
          "id": "Required, string type, represents the unique identifier of the product",
          "title": "Required, string type, represents the name of the product",
          "type": "Optional, string type, represents the type of the product",
          "untranslatedTitle": "Required, string type, represents the untranslated name of the product",
          "url": "Required, string type, represents the URL address of the product",
          "vendor": "Required, string type, represents the vendor of the product"
        },
        "sku": "Required, string type, represents the SKU number of the product variant",
        "title": "Optional, string type, represents the title of the product variant",
        "untranslatedTitle": "Optional, string type, represents the untranslated title of the product variant"
      }
    }
  ],
  "localization": {
    "country": {
      "isoCode": "Required, string type, represents the ISO code of the country"
    },
    "language": {
      "isoCode": "Required, string type, represents the ISO code of the language"
    },
    "market": {
      "handle": "Optional, string type, represents the unique handle of the market",
      "id": "Optional, string type, represents the unique identifier of the market"
    }
  },
  "order": {
    "customer": {
      "id": "Required, string type, represents the unique identifier of the customer",
      "isFirstOrder": "Required, boolean type, indicates whether it is the customer’s first order"
    },
    "id": "Required, string type, represents the unique identifier of the order"
  },
  "phone": "Optional, string type, represents the buyer's phone number",
  "shippingAddress": {
    "address1": "Required, string type, represents the first line of the shipping address",
    "address2": "Optional, string type, represents the second line of the shipping address",
    "city": "Required, string type, represents the city name",
    "country": "Required, string type, represents the country name",
    "countryCode": "Required, string type, represents the country code",
    "firstName": "Required, string type, represents the first name",
    "lastName": "Required, string type, represents the last name",
    "phone": "Optional, string type, represents the contact phone number",
    "province": "Required, string type, represents the province or state name",
    "provinceCode": "Required, string type, represents the province or state code",
    "zip": "Required, string type, represents the postal code"
  },
  "shippingLine": {
    "price": {
      "amount": "Required, numeric type, represents the shipping cost amount",
      "currencyCode": "Required, string type, represents the currency code of the shipping cost"
    }
  },
  "smsMarketingPhone": "Optional, string type, represents the phone number used for SMS marketing",
  "subtotalPrice": {
    "amount": "Required, numeric type, represents the subtotal amount",
    "currencyCode": "Required, string type, represents the currency code of the subtotal amount"
  },
  "token": "Required, string type, represents the unique token of the order",
  "totalPrice": {
    "amount": "Required, numeric type, represents the total amount of the order",
    "currencyCode": "Required, string type, represents the currency code of the total amount of the order"
  },
  "totalTax": {
    "amount": "Required, numeric type, represents the total tax amount",
    "currencyCode": "Required, string type, represents the currency code of the total tax"
  },
  "transactions": [
    {
      "amount": {
        "amount": "Required, numeric type, represents the transaction amount",
        "currencyCode": "Required, string type, represents the currency code of the transaction amount"
      },
      "gateway": "Required, string type, represents the payment gateway name",
      "paymentMethod": {
        "name": "Required, string type, represents the payment method name",
        "type": "Required, string type, represents the payment method type"
      }
    }
  ]
}

Last updated

Was this helpful?