Optional
baseProtected
Readonly
argsOptional
baseOptional
methodArgs: { Optional
headers?: { Optional
queryOptional
expand?: string | string[]Optional
limit?: numberOptional
offset?: numberOptional
sort?: string | string[]Optional
where?: string | string[]Optional
withOptional
methodArgs: { Optional
headers?: { Optional
queryOptional
where?: string | string[]Before you create an Order, the Cart must have a shipping address set.
The shipping address is used for tax calculation for a Cart with Platform
TaxMode.
Creating an Order produces the [OrderCreated](ctp:api:type:OrderCreatedMessage) Message.
Specific Error Codes:
- [OutOfStock](ctp:api:type:OutOfStockError)
- [PriceChanged](ctp:api:type:PriceChangedError)
- [DiscountCodeNonApplicable](ctp:api:type:DiscountCodeNonApplicableError)
- [ShippingMethodDoesNotMatchCart](ctp:api:type:ShippingMethodDoesNotMatchCartError)
- [InvalidItemShippingDetails](ctp:api:type:InvalidItemShippingDetailsError)
- [MatchingPriceNotFound](ctp:api:type:MatchingPriceNotFoundError)
- [MissingTaxRateForCountry](ctp:api:type:MissingTaxRateForCountryError)
- [CountryNotConfiguredInStore](ctp:api:type:CountryNotConfiguredInStoreError)
Optional
headers?: { Optional
queryOptional
expand?: string | string[]
Checks if an Order exists for a given Query Predicate. Returns a
200 OK
status if any Orders match the Query Predicate or a404 Not Found
otherwise.