OmsCancelOrderRequest

Document representing a request to cancel an order that is integrated with Order Management (OMS). The cancellation always applies to the entire order; partial cancellations are not supported.

CommerceE-CommerceHeadless CommerceSalesforceB2C CommerceB2B CommerceDemandware

Properties

Name Type Description
reason string The reason for cancelling the order. The value must match one of the `cancelReasonCodes` configured in OMS and returned by the `getOmsMetaData` endpoint. When omitted, the default reason code configur
orderAccessCode object
View JSON Schema on GitHub

JSON Schema

salesforce-commerce-cloud-oms-cancel-order-request-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/salesforce-commerce-cloud/json-schema/salesforce-commerce-cloud-oms-cancel-order-request-schema.json",
  "title": "OmsCancelOrderRequest",
  "description": "Document representing a request to cancel an order that is integrated with Order Management (OMS).\nThe cancellation always applies to the entire order; partial cancellations are not supported.",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/salesforce-commerce-cloud-shopper-orders-api-openapi.yml#/components/schemas/OmsCancelOrderRequest",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "reason": {
      "description": "The reason for cancelling the order. The value must match one of the `cancelReasonCodes` configured in OMS and returned by the\n`getOmsMetaData` endpoint. When omitted, the default reason code configured in OMS is applied by the server.",
      "type": "string",
      "maxLength": 256
    },
    "orderAccessCode": {
      "$ref": "#/$defs/OrderAccessCode"
    }
  },
  "$defs": {
    "OrderAccessCode": {
      "description": "A time-limited access code that serves as an alternative access grant for guest shoppers who have lost their original session.\nThe code is generated by calling the `requestOrderAccessCode` endpoint, which delivers it via email to the address on the order.\nThe shopper provides this code to authorize the request. The code is valid for 15 minutes after generation.",
      "type": "string",
      "pattern": "^\\d{6}$",
      "maxLength": 6
    }
  }
}

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/salesforce-commerce-cloud-oms-cancel-order-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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

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