younifyd
Menu

Create a new shop

Create a new shop

POST/shops

Use it in a workflow

  1. Add a step and choose the SCAYLE Admin connector.
  2. Pick the Create a new shop action (under Shops).
  3. Fill in the fields below, then reference the result from later steps as {{createANewShop.response.data}}.

Fields

baseUrlstring

The API host this action calls. Choose one, or pick Custom to enter your own.

One of/v1https://{{tenant-space}}.admin.api.scayle.cloud/v1/__custom__Default "/v1"

baseUrlCustomstring
bodystring

The request body content (for POST, PUT, PATCH requests).

forwardAllHeadersboolean

If enabled, all headers from the incoming request will be forwarded. Additional headers below will override forwarded ones.

Default false

headerskeyvalue

Extra HTTP headers to include, beyond what this action already declares. These override forwarded or declared headers with the same name.

queryParamskeyvalue

Extra URL query parameters to include, beyond what this action already declares. These override declared query parameters with the same name.

Response

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

idinteger

The ID of the shop created by SCAYLE.

keystring

A key that uniquely identifies the shop within the tenant's ecosystem. Must be **exactly two characters** long.

namestring

Full name of the shop.

logoUrlstring

The URL of the logo assigned to the shop.

logoSourceobject

Source where to download the asset from. Either URL or attachment.

urlstring (uri)

URL of remote asset.

attachmentstring (byte)

Base64-encoded binary asset data.

activeboolean

Defines if the shop is active.

deletedboolean

Defines if the shop is deleted.

priceGroupKeystring

Key of the price group the shop is assigned to.

shopCategoryTreeIdinteger

Defines shop category tree id. Can be set only on creation.

companyIdinteger

The ID of the company the shop is assigned to.

countriesarray<object>

The countries assigned to the shop. Can be set only on creation.

idinteger

The ID of the shop country created by SCAYLE.

shopKeystring

A key that uniquely identifies the shop within the tenant's ecosystem. Must be exactly 2 chars long.

countryCodestringrequired

ISO 3166 alpha 2 country code.

defaultLanguageCodestringrequired

ISO-3166 country code and ISO-639 language code.

supportedLanguageCodesarray<string>

List of supported language codes.

urlstringrequired

Url of the shop country.

activeboolean

Defines if the shop country is active.

deletedboolean

Defines if the shop country is deleted.

priceGroupKeystring

Key of the price group the shop country is assigned to.

currencyCodestring

The currency used in the shop country.

assortmentobject4 fields
warehousesarray<object>4 fields

A list of warehouses attached to the shop country.

priceRoundingsarray<object>4 fields

List of price rounding configurations.

smartSortingKeyoneOf

System smart sorting key or custom smart sorting key from the catalog.

customerSegmentOverridesarray<object>4 fields

Customer segment sorting overrides for this shop country. Returned on shop country reads when `with=customerSegmentOverrides` is set, and on shop reads when `with=countries.customerSegmentOverrides` is set. On write, omit the property to leave existing assignments unchanged, send an empty array to remove them, or send items to replace the full set. Each `customerSegmentId` and each `priority` must be unique. At most 30 overrides are accepted.

customDataany

Arbitrary fields assigned to Shop countries

customDataany

Arbitrary fields assigned to Shop

smartSortingKeyoneOf

System smart sorting key or custom smart sorting key from the catalog.

customerSegmentOverridesarray<object>

Customer segment sorting overrides for this shop. Returned when `with=customerSegmentOverrides` is set. On write, omit the property to leave existing assignments unchanged, send an empty array to remove them, or send items to replace the full set. Each `customerSegmentId` and each `priority` must be unique. At most 30 overrides are accepted.

customerSegmentIdstring (uuid)required

GUID of the customer segment.

smartSortingKeyoneOfrequired

System smart sorting key or custom smart sorting key from the catalog.

priorityintegerrequired

Priority of this override relative to other segment overrides on the same entity. Must be unique within the array.

isActiveboolean

Whether the customer segment is currently active. Present on read responses only.

json
{
  "key": "ms",
  "name": "My shop",
  "id": 1,
  "logoUrl": "images/logo.png",
  "logoSource": {
    "url": "https://example.com/image.png",
    "attachment": "U3dhZ2dlciByb2Nrcw=="
  },
  "active": true,
  "deleted": false,
  "priceGroupKey": "myPriceGroup",
  "shopCategoryTreeId": 1,
  "companyId": 1,
  "countries": [
    {
      "countryCode": "DE",
      "defaultLanguageCode": "de_DE",
      "url": "https://www.example.com",
      "id": 1,
      "shopKey": "ay",
      "supportedLanguageCodes": [
        "de_DE"
      ],
      "active": true,
      "deleted": false,
      "priceGroupKey": "myPriceGroup",
      "currencyCode": "EUR",
      "assortment": {
        "masterCategories": {
          "include": [
            [
              null
            ]
          ],
          "exclude": [
            [
              null
            ]
          ]
        },
        "products": {
          "include": [
            0
          ],
          "exclude": [
            0
          ]
        },
        "attributes": [
          {
            "name": "string",
            "include": [
              null
            ],
            "exclude": [
              null
            ]
          }
        ],
        "merchantReferenceKeys": {
          "include": [
            "string"
          ],
          "exclude": [
            "string"
          ]
        }
      },
      "warehouses": [
        {
          "referenceKey": "my-warehouse",
          "id": 1,
          "priority": 100,
          "packageGroup": {
            "id": 1
          }
        }
      ]
    }
  ],
  "customData": null
}

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

Create a new shop — SCAYLE Admin — Documentation