younifyd
Menu

Create carts/{cartId}/shipping-information

Create carts/{cartId}/shipping-information

POST/V1/carts/{cartId}/shipping-information

Use it in a workflow

  1. Add a step and choose the Adobe Commerce connector.
  2. Pick the Create carts/{cartId}/shipping-information action (under Carts).
  3. Fill in the fields below, then reference the result from later steps as {{createCartsCartidShippingInformation.response.data}}.

Request

Path parameters

cartIdintegerrequired

Response

Returns 200 with an object. Read it in later steps with {{createCartsCartidShippingInformation.response.data.<field>}}.

payment_methodsarray<object>
codestringrequired

Payment method code

titlestringrequired

Payment method title

totalsobject

Interface TotalsInterface

grand_totalnumber

Grand total in quote currency

base_grand_totalnumber

Grand total in base currency

subtotalnumber

Subtotal in quote currency

base_subtotalnumber

Subtotal in base currency

discount_amountnumber

Discount amount in quote currency

base_discount_amountnumber

Discount amount in base currency

subtotal_with_discountnumber

Subtotal in quote currency with applied discount

base_subtotal_with_discountnumber

Subtotal in base currency with applied discount

shipping_amountnumber

Shipping amount in quote currency

base_shipping_amountnumber

Shipping amount in base currency

shipping_discount_amountnumber

Shipping discount amount in quote currency

base_shipping_discount_amountnumber

Shipping discount amount in base currency

tax_amountnumber

Tax amount in quote currency

base_tax_amountnumber

Tax amount in base currency

weee_tax_applied_amountnumberrequired

Item weee tax applied amount in quote currency.

shipping_tax_amountnumber

Shipping tax amount in quote currency

base_shipping_tax_amountnumber

Shipping tax amount in base currency

subtotal_incl_taxnumber

Subtotal including tax in quote currency

base_subtotal_incl_taxnumber

Subtotal including tax in base currency

shipping_incl_taxnumber

Shipping including tax in quote currency

base_shipping_incl_taxnumber

Shipping including tax in base currency

base_currency_codestring

Base currency code

quote_currency_codestring

Quote currency code

coupon_codestring

Applied coupon code

items_qtyinteger

Items qty

itemsarray<object>22 fields

Totals by items

total_segmentsarray<object>required5 fields

Dynamically calculated totals

extension_attributesobject9 fields

ExtensionInterface class for @see \Magento\Quote\Api\Data\TotalsInterface

extension_attributesobject

ExtensionInterface class for @see \Magento\Checkout\Api\Data\PaymentDetailsInterface

json
{
  "payment_methods": [
    {
      "code": "string",
      "title": "string"
    }
  ],
  "totals": {
    "weee_tax_applied_amount": 0,
    "total_segments": [
      {
        "code": "string",
        "value": 0,
        "title": "string",
        "area": "string",
        "extension_attributes": {
          "tax_grandtotal_details": [
            {
              "amount": null,
              "rates": null,
              "group_id": null
            }
          ],
          "gift_cards": "string",
          "gw_order_id": "string",
          "gw_item_ids": [
            "string"
          ],
          "gw_allow_gift_receipt": "string",
          "gw_add_card": "string",
          "gw_price": "string",
          "gw_base_price": "string",
          "gw_items_price": "string",
          "gw_items_base_price": "string",
          "gw_card_price": "string",
          "gw_card_base_price": "string"
        }
      }
    ],
    "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
  },
  "extension_attributes": {}
}

Need more? See the Adobe Commerce guide for connection setup and behaviour shared by every action.