Skip to main content
Server path: /commercetools-orders | Type: Application | PCID required: Yes

Tools


commercetools_orders_create_carts

Creates a Cart in the Project. If the referenced ShippingMethod in the CartDraft has a predicate that does not match, or if the Shipping Method is not active, an InvalidOperation error is returned. Specific Error Codes: - DiscountCodeNonApplicable - InvalidItemShippingDetails - MatchingPriceNotFound - MissingTaxRateForCountry Parameters:

commercetools_orders_create_carts_customer_id_customer_id_merge

Merges items from an anonymous Cart into the most recently modified active Cart of a Customer. If no active Cart exists, the anonymous Cart becomes the Customer’s active Cart. For more information about merge mode behaviors, merge rules, and tax recalculation, see Merge a Cart. Parameters:

commercetools_orders_create_carts_replicate

Creates a new Cart by replicating an existing Cart or Order. The following applies to the new Cart: - It contains the same Customer information, Line Items and Custom Line Items, Custom Fields, Discount Codes, and other settings of the originating Cart or Order. - If a Line Item becomes invalid, it is removed from the new Cart. A common reason for this is removed Products or Prices. - Line items and Custom Line Items are reset to their initial state. - It contains no payments or delivery information. - It contains up-to-date Tax Rates, Prices, and Line Item product data. - The CartState is Active. - If using the customerGroup field (for a single Customer Group) and the referenced Customer switched to another Customer Group, the new Cart is automatically updated to reflect the new group and corresponding prices. - If using the customerGroupAssignments field (for multiple Customer Groups), the Cart no longer keeps a direct reference to a Customer Group. If a Customer’s group assignments change, the Cart and its Line Item prices are not updated automatically. Prices are only updated when the Cart is changed via a direct update action. Specific Error Codes: - MatchingPriceNotFound - MissingTaxRateForCountry Parameters:

commercetools_orders_create_orders

Creates an Order from a Cart. The Cart must have a shipping address and an active Shipping Method set. The shipping address is used for tax calculation for a Cart with Platform TaxMode. Creating an Order produces the OrderCreated Message. If the Order is created from a Recurring Order schedule, the OrderCreatedFromRecurringOrder Message is generated. If a server-side problem occurs, indicated by a 500 Internal Server Error HTTP response, the Order creation may still successfully complete after the error is returned. If you receive this error, you should verify the status of the Order by querying a unique identifier supplied during the creation request, such as the Order number. Specific Error Codes: - OutOfStock - PriceChanged - DiscountCodeNonApplicable - ShippingMethodDoesNotMatchCart - InvalidItemShippingDetails - InvalidOperation - MatchingPriceNotFound - MissingTaxRateForCountry Parameters:

commercetools_orders_create_orders_edits

Creates an OrderEdit in the Project. You can either create multiple Order Edits for an Order and apply them sequentially to an Order, or create multiple Order Edits parallelly (as alternatives to each other) and apply one of them to the Order. You can only create an Order Edit if the InventoryMode of the Order and its LineItems is None. Parameters:

commercetools_orders_create_orders_edits_apply_by_id

Applying an OrderEdit produces the OrderEditApplied Message. Parameters:

commercetools_orders_create_orders_import

Creates an Order without needing to create a Cart first. Importing an Order produces the Order Imported Message. Specific Error Codes: - OutOfStock - CountryNotConfiguredInStore Parameters:

commercetools_orders_create_orders_order_number_order_number

Updates an Order in the Project using one or more update actions. Parameters:

commercetools_orders_create_orders_quotes

Creates an Order from a Quote. The referenced Quote must have the Pending state and must be valid (not past the validTo date); otherwise, an InvalidOperation error is returned. Produces the OrderCreated Message. Specific Error Codes: - CountryNotConfiguredInStore - InvalidItemShippingDetails - InvalidOperation - OutOfStock Parameters:
POST /orders/search Parameters:

commercetools_orders_create_payment_methods

Creates a PaymentMethod in the Project. This request generates the PaymentMethodCreated Message. Parameters:

commercetools_orders_create_payments

Creates a Payment in the Project. Creating a Payment produces the PaymentCreated Message. Parameters:

commercetools_orders_delete_by_id

Deletes an Order in the Project. Deleting an Order produces the OrderDeleted Message. Parameters:

commercetools_orders_delete_carts_by_id

Deletes a Cart in the Project. Parameters:

commercetools_orders_delete_carts_by_key

Deletes a Cart in the Project. Parameters:

commercetools_orders_delete_edits_by_id

Deletes an OrderEdit in the Project. Parameters:

commercetools_orders_delete_edits_by_key

Deletes an OrderEdit in the Project. Parameters:

commercetools_orders_delete_order_number_order_number

Deletes an Order in the Project. Deleting an Order produces the OrderDeleted Message. Parameters:

commercetools_orders_delete_payment_methods_by_id

Deletes a PaymentMethod in the Project. This request generates the PaymentMethodDeleted Message. Parameters:

commercetools_orders_delete_payment_methods_by_key

Deletes a PaymentMethod in the Project. This request generates the PaymentMethodDeleted Message. Parameters:

commercetools_orders_delete_payments_by_id

Deletes a Payment in the Project. Parameters:

commercetools_orders_delete_payments_by_key

Deletes a Payment in the Project. Parameters:

commercetools_orders_get_by_id

Retrieves an Order with the provided id. Parameters:

commercetools_orders_get_carts_by_id

Retrieves a Cart with the provided id. To ensure the Cart is up-to-date with current values (such as Prices and Discounts), use the Recalculate update action. Parameters:

commercetools_orders_get_carts_by_key

Retrieves a Cart with the provided key. To ensure the Cart is up-to-date with current values (such as Prices and Discounts), use the Recalculate update action. Parameters:

commercetools_orders_get_edits_by_id

Retrieves an OrderEdit with the provided id. Parameters:

commercetools_orders_get_edits_by_key

Retrieves an OrderEdit with the provided key. Parameters:

commercetools_orders_get_payment_methods_by_id

Retrieves a PaymentMethod with the provided id. Parameters:

commercetools_orders_get_payment_methods_by_key

Retrieves a PaymentMethod with the provided key. Parameters:

commercetools_orders_get_payments_by_id

Retrieves a Payment with the provided id. Parameters:

commercetools_orders_get_payments_by_key

Retrieves a Payment with the provided key. Parameters:

commercetools_orders_list_carts

Retrieves Carts in the Project. Parameters:

commercetools_orders_list_carts_customer_id_customer_id

Retrieves the most recently modified active Cart of a Customer with CartOrigin Customer. If no active Cart exists, this method returns a ResourceNotFound error. To ensure the Cart is up-to-date with current values (such as Prices and Discounts), use the Recalculate update action. Parameters:

commercetools_orders_list_orders

Retrieves Orders in the Project. Parameters:

commercetools_orders_list_orders_edits

Retrieves OrderEdits in the Project. Parameters:

commercetools_orders_list_orders_order_number_order_number

Retrieves an Order with the provided orderNumber. Parameters:

commercetools_orders_list_payment_methods

Retrieves all PaymentMethods in the Project. Parameters:

commercetools_orders_list_payments

Retrieves Payments in the Project. Parameters:

commercetools_orders_update_carts_by_id

Updates a Cart in the Project using one or more update actions. Parameters:

commercetools_orders_update_carts_by_key

Updates a Cart in the Project using one or more update actions. Parameters:

commercetools_orders_update_orders_by_id

Updates an Order in the Project using one or more update actions. Parameters:

commercetools_orders_update_orders_edits_by_id

Updates an OrderEdit in the Project using one or more update actions. Parameters:

commercetools_orders_update_orders_edits_by_key

Updates an OrderEdit in the Project using one or more update actions. Parameters:

commercetools_orders_update_payment_methods_by_id

Updates a PaymentMethod in the Project using one or more update actions. Parameters:

commercetools_orders_update_payment_methods_by_key

Updates a PaymentMethod in the Project using one or more update actions. Parameters:

commercetools_orders_update_payments_by_id

Updates a Payment in the Project using one or more update actions. Parameters:

commercetools_orders_update_payments_by_key

Updates a Payment in the Project using one or more update actions. Parameters: