Orders

Create order

Create an order from the current user's cart.

post/order

Response

Order information.

Example response

{
  "data": {
    "id": "ord_XXXXXXXXXXXXXXXXXXXXXXXXX",
    "index": 0,
    "shipping": {
      "name": "John Doe",
      "street1": "123 Main St",
      "street2": "Apt 1",
      "city": "Anytown",
      "province": "CA",
      "zip": "12345",
      "country": "US",
      "phone": "5555555555"
    },
    "amount": {
      "subtotal": 4400,
      "shipping": 800
    },
    "tracking": {
      "service": "USPS Ground Advantage",
      "number": "92346903470167000000000019",
      "url": "https://tools.usps.com/go/TrackConfirmAction_input?origTrackNum=92346903470167000000000019"
    },
    "items": [
      {
        "id": "itm_XXXXXXXXXXXXXXXXXXXXXXXXX",
        "amount": 4400,
        "quantity": 2,
        "productVariantID": "var_XXXXXXXXXXXXXXXXXXXXXXXXX"
      }
    ]
  }
}

Changes