Menu
Update an existing shop country
Update an existing shop country
PUT
/shops/{shopKey}/countries/{countryCode}Use it in a workflow
- Add a step and choose the SCAYLE Admin connector.
- Pick the Update an existing shop country action (under Shops).
- Fill in the fields below, then reference the result from later steps as
{{updateAnExistingShopCountry.response.data}}.
Request
Path parameters
Request body
Enter the body as JSON in the step's Body field.
{
"countryCode": "DE",
"defaultLanguageCode": "de_DE",
"url": "https://www.example.com",
"id": 1,
"shopKey": "ay",
"supportedLanguageCodes": [
"de_DE"
],
"active": true,
"deleted": false,
"priceGroupKey": "myPriceGroup",
"smartSortingKey": "summer-priority",
"customerSegmentOverrides": [
{
"customerSegmentId": "4c9a1e2f-0f1b-4c8e-9a3d-7b5e2f1a8c40",
"smartSortingKey": "scayle:v1:trending",
"priority": 100,
"isActive": true
}
],
"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"
]
}
}
}
Response
Returns 200 with an object. Read it in later steps with {{updateAnExistingShopCountry.response.data.<field>}}.
{
"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.
Was this page helpful?