Order

Create order

Create an order without a cart. The order will be placed immediately.

post/order

Request body

variantsobject required

Product variants to include in the order, along with their quantities.

cardIDstring required

Card ID.

addressIDstring required

Shipping address ID.

Example request

{
  "cardID": "crd_XXXXXXXXXXXXXXXXXXXXXXXXX",
  "addressID": "shp_XXXXXXXXXXXXXXXXXXXXXXXXX",
  "variants": {
    "var_XXXXXXXXXXXXXXXXXXXXXXXXX": 1
  }
}

Response

Order ID.

datastring required

Order ID.

Example response

{
  "data": "ord_XXXXXXXXXXXXXXXXXXXXXXXXX"
}

Changes

Changed in 6 of the 41 revisions of this API.742

  • 1c6726b12e29424See the full diff
    • the response's body type/format changed from / to object/ for status 400

      response-body-type-changed

    • the response's body type/format changed from / to object/ for status 401

      response-body-type-changed

    • the response's body type/format changed from / to object/ for status 429

      response-body-type-changed

    • the response's body type/format changed from / to object/ for status 500

      response-body-type-changed

    • removed ErrorResponse from the response body allOf list for the response status 400

      response-body-all-of-removed

    • removed ErrorResponse from the response body allOf list for the response status 401

      response-body-all-of-removed

    • removed ErrorResponse from the response body allOf list for the response status 429

      response-body-all-of-removed

    • removed ErrorResponse from the response body allOf list for the response status 500

      response-body-all-of-removed

    • added the optional property details to the response with the 400 status

      response-optional-property-added

    • added the optional property details to the response with the 401 status

      response-optional-property-added

    • added the optional property details to the response with the 429 status

      response-optional-property-added

    • added the optional property details to the response with the 500 status

      response-optional-property-added

    • added the optional property param to the response with the 400 status

      response-optional-property-added

    • added the optional property param to the response with the 401 status

      response-optional-property-added

    • added the optional property param to the response with the 429 status

      response-optional-property-added

    • added the optional property param to the response with the 500 status

      response-optional-property-added

    • added the required property code to the response with the 400 status

      response-required-property-added

    • added the required property code to the response with the 401 status

      response-required-property-added

    • added the required property code to the response with the 429 status

      response-required-property-added

    • added the required property code to the response with the 500 status

      response-required-property-added

    • added the required property message to the response with the 400 status

      response-required-property-added

    • added the required property message to the response with the 401 status

      response-required-property-added

    • added the required property message to the response with the 429 status

      response-required-property-added

    • added the required property message to the response with the 500 status

      response-required-property-added

    • added the required property type to the response with the 400 status

      response-required-property-added

    • added the required property type to the response with the 401 status

      response-required-property-added

    • added the required property type to the response with the 429 status

      response-required-property-added

    • added the required property type to the response with the 500 status

      response-required-property-added

    • added the non-success response with the status 400

      response-non-success-status-added

    • added the non-success response with the status 401

      response-non-success-status-added

    • added the non-success response with the status 429

      response-non-success-status-added

    • added the non-success response with the status 500

      response-non-success-status-added

    • endpoint added

      endpoint-added

    • api path removed without deprecation

      api-path-removed-without-deprecation

  • 916cf9100f6819See the full diff
    • the data/allOf[Order]/shipping response's property type/format changed from / to object/ for status 200

      response-property-type-changed

    • added the optional property data/allOf[Order]/shipping/phone to the response with the 200 status

      response-optional-property-added

    • added the optional property data/allOf[Order]/shipping/province to the response with the 200 status

      response-optional-property-added

    • added the optional property data/allOf[Order]/shipping/street2 to the response with the 200 status

      response-optional-property-added

    • removed Address from the data/allOf[Order]/shipping response property allOf list for the response status 200

      response-property-all-of-removed

    • added the required property data/allOf[Order]/shipping/city to the response with the 200 status

      response-required-property-added

    • added the required property data/allOf[Order]/shipping/country to the response with the 200 status

      response-required-property-added

    • added the required property data/allOf[Order]/shipping/name to the response with the 200 status

      response-required-property-added

    • added the required property data/allOf[Order]/shipping/street1 to the response with the 200 status

      response-required-property-added

    • added the required property data/allOf[Order]/shipping/zip to the response with the 200 status

      response-required-property-added

    This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

  • 43ff7af31b1e14See the full diff
    • removed the required property result from the response with the 200 status

      response-required-property-removed

    • api operation id postOrder was added

      api-operation-id-added

    • the endpoint scheme security Bearer was removed from the API

      api-security-removed

    • api tag Orders added

      api-tag-added

    • added the required property data to the response with the 200 status

      response-required-property-added

    This revision also has 4 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog