v41

latestOpenAPI 3.1.0raw.githubusercontent.com2025-08-053715199.1 KB
Cart

Convert to order

Convert the current user's cart to an order.

post/cart/convert

Response

Cart was converted successfully.

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
    },
    "created": "2024-06-29T19:36:19.000Z",
    "tracking": {
      "service": "USPS Ground Advantage",
      "number": "92346903470167000000000019",
      "url": "https://tools.usps.com/go/TrackConfirmAction_input?origTrackNum=92346903470167000000000019",
      "status": "DELIVERED",
      "statusDetails": "Your shipment has been delivered.",
      "statusUpdatedAt": "2025-04-08T12:00:00.000Z"
    },
    "items": [
      {
        "id": "itm_XXXXXXXXXXXXXXXXXXXXXXXXX",
        "amount": 4400,
        "quantity": 2,
        "productVariantID": "var_XXXXXXXXXXXXXXXXXXXXXXXXX"
      }
    ]
  }
}