guest-carts/{cartId}/collect-totals

guest-carts/{cartId}/collect-totals

put/V1/guest-carts/{cartId}/collect-totals

Set shipping/billing methods and additional data for cart and collect totals for guest.

Request
path Parameters
cartId
required
string

The cart ID.

Request Body schema:
object (quote-data-totals-additional-data-interface)

Additional data for totals collection.

required
object (quote-data-payment-interface)

Interface PaymentInterface

shippingCarrierCode
string

The carrier code.

shippingMethodCode
string

The shipping method code.

Responses
200

200 Success.

default

Unexpected error

Request samples
{
  • "paymentMethod": {
    },
  • "shippingCarrierCode": "string",
  • "shippingMethodCode": "string",
  • "additionalData": {
    }
}
Response samples
{
  • "grand_total": 0,
  • "base_grand_total": 0,
  • "subtotal": 0,
  • "base_subtotal": 0,
  • "discount_amount": 0,
  • "base_discount_amount": 0,
  • "subtotal_with_discount": 0,
  • "base_subtotal_with_discount": 0,
  • "shipping_amount": 0,
  • "base_shipping_amount": 0,
  • "shipping_discount_amount": 0,
  • "base_shipping_discount_amount": 0,
  • "tax_amount": 0,
  • "base_tax_amount": 0,
  • "weee_tax_applied_amount": 0,
  • "shipping_tax_amount": 0,
  • "base_shipping_tax_amount": 0,
  • "subtotal_incl_tax": 0,
  • "base_subtotal_incl_tax": 0,
  • "shipping_incl_tax": 0,
  • "base_shipping_incl_tax": 0,
  • "base_currency_code": "string",
  • "quote_currency_code": "string",
  • "coupon_code": "string",
  • "items_qty": 0,
  • "items": [
    ],
  • "total_segments": [
    ],
  • "extension_attributes": {
    }
}