Emporix · Schema

executeRequest

Body of `POST /cart/{tenant}/carts/{cartId}/execute`. Between 1 and 10 commands.

CompanyCommerceE-CommerceB2B CommerceHeadless CommerceComposable CommerceCommerce OrchestrationAgentic CommerceiPaaSSoftware-as-a-Service

Properties

Name Type Description
commands array Commands to run sequentially. Maximum 10. Request duration is approximately the sum of the chained commands. Each item needs `type`. `data` is the REST request body and is omitted for commands that ha
View JSON Schema on GitHub

JSON Schema

emporix-execute-request-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/emporix/json-schema/emporix-execute-request-schema.json",
  "title": "executeRequest",
  "description": "Body of `POST /cart/{tenant}/carts/{cartId}/execute`. Between 1 and 10 commands.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/emporix-execute-api-openapi.yml#/components/schemas/executeRequest",
  "type": "object",
  "required": [
    "commands"
  ],
  "properties": {
    "commands": {
      "type": "array",
      "minItems": 1,
      "maxItems": 10,
      "description": "Commands to run sequentially. Maximum 10. Request duration is approximately the sum of the chained commands.\n\nEach item needs `type`. `data` is the REST request body and is omitted for commands that have no body. The cart id is the path parameter. `options` holds remaining path and query equivalents (`itemId`, `partial`, `expandCalculation`, `zipCode`, `countryCode`, `resourceVersion`, `codes`, `discountIndex`).\n",
      "items": {
        "$ref": "#/$defs/executeCommand"
      }
    }
  },
  "$defs": {
    "executeCommand": {
      "type": "object",
      "description": "One operation in the execute chain. `type` selects the REST equivalent. `data` is that endpoint’s request body. The cart id is the execute path parameter. `options` fields are remaining path and query equivalents (`itemId`, `partial`, `expandCalculation`, `zipCode`, `countryCode`, `resourceVersion`, `codes`, `discountIndex`).\n\nSession and legal-entity identity are request headers, not command fields.\n",
      "required": [
        "type"
      ],
      "properties": {
        "type": {
          "type": "string",
          "description": "Operation to run.\n\nPossible values:\n* `AddCartItem`\n* `UpdateCartItem`\n* `DeleteCartItem`\n* `DeleteCartItems`\n* `GetCart`\n* `AddCartItemsBatch`\n* `UpdateCartItemsBatch`\n* `UpdateCart`\n* `ApplyCartDiscount`\n* `GetCartDiscounts`\n* `DeleteCartDiscounts`\n* `DeleteCartDiscount`\n* `RefreshCart`\n* `ValidateCart`\n",
          "enum": [
            "AddCartItem",
            "UpdateCartItem",
            "DeleteCartItem",
            "DeleteCartItems",
            "GetCart",
            "AddCartItemsBatch",
            "UpdateCartItemsBatch",
            "UpdateCart",
            "ApplyCartDiscount",
            "GetCartDiscounts",
            "DeleteCartDiscounts",
            "DeleteCartDiscount",
            "RefreshCart",
            "ValidateCart"
          ]
        },
        "data": {
          "description": "Request body of the equivalent REST operation.\n\n* `AddCartItem` – cart item body\n* `UpdateCartItem` – cart item update body\n* `AddCartItemsBatch` – list of cart item bodies\n* `UpdateCartItemsBatch` – list of cart item updates (maximum 50)\n* `UpdateCart` – cart update body\n* `ApplyCartDiscount` – discount body\n\nOmit `data` for `GetCart`, `RefreshCart`, `ValidateCart`, deletes, `GetCartDiscounts`, `DeleteCartDiscounts`, and `DeleteCartDiscount`.\n\nThe service selects the body type from `type`. A single item body is an object. Batch commands send an array.\n",
          "oneOf": [
            {
              "type": "object",
              "additionalProperties": true
            },
            {
              "type": "array",
              "items": {
                "type": "object",
                "additionalProperties": true
              }
            }
          ]
        },
        "options": {
          "$ref": "#/$defs/executeCommandOptions"
        }
      }
    },
    "executeCommandOptions": {
      "type": "object",
      "description": "Remaining path and query equivalents for the command. Required fields depend on `type`. The cart id is the execute path parameter, not an option.",
      "properties": {
        "itemId": {
          "type": "string",
          "description": "Cart item unique identifier generated when the product is added to the cart.\n\nRequired for `UpdateCartItem` and `DeleteCartItem`.\n"
        },
        "partial": {
          "type": "boolean",
          "default": false,
          "description": "When `true`, only the provided item or batch fields are updated. Same default as the REST `partial` query parameter (`false`).\n\nUsed by `UpdateCartItem` and `UpdateCartItemsBatch`.\n"
        },
        "expandCalculation": {
          "type": "boolean",
          "default": true,
          "description": "When `true`, `GetCart` returns a fully calculated cart. Same default as the REST `expandCalculation` query parameter (`true`).\n\nUsed by `GetCart`.\n"
        },
        "zipCode": {
          "type": "string",
          "minLength": 1,
          "maxLength": 9,
          "description": "Zip code of the shipping address, used for tax calculations, shipping cost estimations, and pricing. Provide together with `countryCode` if either is specified.\n\nUsed by `GetCart`.\n"
        },
        "countryCode": {
          "type": "string",
          "minLength": 2,
          "maxLength": 2,
          "description": "Two-letter country code of the shipping address. Provide together with `zipCode` if either is specified.\n\nUsed by `GetCart`.\n"
        },
        "resourceVersion": {
          "type": "integer",
          "description": "Cart resource version used as If-Match for participating writes (`AddCartItem`, `UpdateCartItem`, `UpdateCart`, `ApplyCartDiscount`).\n\n* `versioning=skip` – ignored\n* `versioning=explicit` – required on every participating command (whole-request preflight)\n* `versioning=follow` – required to seed the first participating write; omit on later writes\n\nExtra `resourceVersion` on `GetCart`, `ValidateCart`, `RefreshCart`, deletes, and itemsBatch is ignored.\n"
        },
        "codes": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Discount codes to remove. If omitted, `DeleteCartDiscounts` removes all discounts. Same meaning as the REST `codes` query parameter.\n\nUsed by `DeleteCartDiscounts`.\n"
        },
        "discountIndex": {
          "type": "string",
          "description": "Index of the discount in the cart discounts array.\n\nRequired for `DeleteCartDiscount`.\n"
        }
      }
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/emporix-execute-request"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.