Campaign

Document representing a campaign.

CommerceE-CommerceHeadless CommerceSalesforceB2C CommerceB2B CommerceDemandware

Properties

Name Type Description
campaignId object
coupons array The array of assigned coupon IDs, not sorted.
creationDate string Returns the value of attribute 'creationDate'.
customerGroups array The array of assigned customer groups, not sorted.
description string The description of the campaign.
enabled boolean The enabled flag for campaign.
endDate string The date the scenario ends.
lastModified string Returns the value of attribute 'lastModified'.
sourceCodeGroups array The array of assigned source code groups, not sorted.
startDate string The date the scenario begins.
View JSON Schema on GitHub

JSON Schema

salesforce-commerce-cloud-campaign-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-campaign-schema.json",
  "title": "Campaign",
  "description": "Document representing a campaign.",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/salesforce-commerce-cloud-campaigns-api-openapi.yml#/components/schemas/Campaign",
  "additionalProperties": {
    "title": "Additional Property Support",
    "description": "This type supports additional properties passed along with the defined properties of this API.\nTo indicate that the properties were defined and expected to be handled as additional properties, they are expected to be prefixed with a `c_`.\nThe type will reject any property that does not fit this pattern, only allowing additional properties beginning with the known prefix."
  },
  "properties": {
    "campaignId": {
      "$ref": "#/$defs/CampaignId"
    },
    "coupons": {
      "description": "The array of assigned coupon IDs, not sorted.",
      "type": "array",
      "items": {
        "$ref": "#/$defs/CouponId"
      }
    },
    "creationDate": {
      "description": "Returns the value of attribute 'creationDate'.",
      "type": "string",
      "format": "date-time"
    },
    "customerGroups": {
      "description": "The array of assigned customer groups, not sorted.",
      "type": "array",
      "items": {
        "$ref": "#/$defs/CustomerGroupId"
      }
    },
    "description": {
      "maxLength": 4000,
      "description": "The description of the campaign.",
      "type": "string"
    },
    "enabled": {
      "description": "The enabled flag for campaign.",
      "type": "boolean"
    },
    "endDate": {
      "description": "The date the scenario ends.",
      "type": "string",
      "format": "date-time"
    },
    "lastModified": {
      "description": "Returns the value of attribute 'lastModified'.",
      "type": "string",
      "format": "date-time"
    },
    "sourceCodeGroups": {
      "description": "The array of assigned source code groups, not sorted.",
      "type": "array",
      "items": {
        "$ref": "#/$defs/SourceCodeGroupId"
      }
    },
    "startDate": {
      "description": "The date the scenario begins.",
      "type": "string",
      "format": "date-time"
    }
  },
  "type": "object",
  "$defs": {
    "CampaignId": {
      "minLength": 1,
      "maxLength": 256,
      "description": "The ID of the campaign.",
      "type": "string"
    },
    "CouponId": {
      "minLength": 1,
      "maxLength": 256,
      "description": "The ID of the coupon.",
      "type": "string"
    },
    "CustomerGroupId": {
      "minLength": 1,
      "maxLength": 256,
      "description": "The ID of the customer group.",
      "type": "string"
    },
    "SourceCodeGroupId": {
      "minLength": 1,
      "maxLength": 28,
      "description": "The ID of source code group.",
      "type": "string"
    }
  }
}

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-campaign"
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.