younifyd
Menu

Get a shop country by code

Get a shop country by code

GET/shops/{shopKey}/countries/{countryCode}

Use it in a workflow

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

Request

Path parameters

shopKeystringrequired

The shop key.

countryCodestringrequired

The shop country code; use shop country ID instead of country code when a country is ambiguous within a shop.

Query parameters

withany

Comma-separated list of additional properties that should be included in the response.

Response

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

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.

countryCodestring

ISO 3166 alpha 2 country code.

defaultLanguageCodestring

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

supportedLanguageCodesarray<string>

List of supported language codes.

urlstring

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.

assortmentobject
masterCategoriesobject2 fields
productsobject2 fields
attributesarray<object>3 fields

Configuration of attribute includes/excludes.

merchantReferenceKeysobject2 fields
warehousesarray<object>

A list of warehouses attached to the shop country.

idinteger

The ID of the warehouse created by SCAYLE.

referenceKeystringrequired

A key that uniquely identifies the warehouse within the tenant's ecosystem.

priorityinteger

The priority of the warehouse. The higher the value, the higher the priority.

packageGroupobject1 fields
priceRoundingsarray<object>

List of price rounding configurations.

idinteger

The ID of the price rounding created by SCAYLE.

currencyCodestringrequired

Currency code in ISO 4217 format.

precisionstringrequired

The precision that should be applied to a price, ENUM of "1.00", "5.00", "0.50", "0.05", "0.01", "0.99", "0.95", "0.90".

One of1.005.000.500.050.010.990.950.90

roundingTypestringrequired

The rounding type that should be used when rounding a price.

One ofnearestupdown

smartSortingKeyoneOf

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

customerSegmentOverridesarray<object>

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.

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.

customDataany

Arbitrary fields assigned to Shop countries

json
{
  "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": [
        [
          [
            "Fashion",
            "Men",
            "Shirts"
          ]
        ]
      ],
      "exclude": [
        [
          [
            "Fashion",
            "Men",
            "Shirts"
          ]
        ]
      ]
    },
    "products": {
      "include": [
        0
      ],
      "exclude": [
        0
      ]
    },
    "attributes": [
      {
        "name": "string",
        "include": [
          "string"
        ],
        "exclude": [
          "string"
        ]
      }
    ],
    "merchantReferenceKeys": {
      "include": [
        "string"
      ],
      "exclude": [
        "string"
      ]
    }
  },
  "warehouses": [
    {
      "referenceKey": "my-warehouse",
      "id": 1,
      "priority": 100,
      "packageGroup": {
        "id": 1
      }
    }
  ]
}

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

Get a shop country by code — SCAYLE Admin — Documentation