younifyd
Menu

Create Storefront Zone

Create a new storefront zone.

POST/organizations/{organizationId}/storefront-zones

Use it in a workflow

  1. Add a step and choose the Salesforce Commerce Cloud connector.
  2. Pick the Create Storefront Zone action (under Zones (Data API)).
  3. Fill in the fields below, then reference the result from later steps as {{createStorefrontZone.response.data}}.

Request

Path parameters

organizationIdstringrequired

An identifier for the organization the request is being made by

Request body

Enter the body as JSON in the step's Body field.

domainNamestringrequired

Domain name for the site.

lastMigrationStepstring

Optional. Specifies the final migration step from which to resume (for example, 8-LegacyToProxyIpAccessRuleMigrationStep).

json
{
  "domainName": "cc-merchant.com",
  "lastMigrationStep": "8-LegacyToProxyIpAccessRuleMigrationStep"
}

Response

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

dataobject

The response of create zone, includes zone and zone properties.

zoneIdstringrequired

The zone id tag.

zoneNamestringrequired

The domain name for the zone.

statusstringrequired

current status of the zone

One ofactivependinginitializingmoveddeleteddeactivated

createdOnstring (date-time)required

Date and time of zone creation.

json
{
  "data": {
    "zoneId": "023e105f4ecef8ad9ca31a8372d0c353",
    "zoneName": "stg-zzzz-cc-merchant-com.cc-ecdn.net",
    "status": "active",
    "createdOn": "2014-01-01T05:20:00.12345Z"
  }
}

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

Create Storefront Zone — Salesforce Commerce Cloud — Documentation