younifyd
Menu

Attach a warehouse to a shop country

Attach a warehouse to a shop country

POST/shops/{shopKey}/countries/{countryCode}/warehouses

Use it in a workflow

  1. Add a step and choose the SCAYLE Admin connector.
  2. Pick the Attach a warehouse to a shop country action (under Warehouses).
  3. Fill in the fields below, then reference the result from later steps as {{attachAWarehouseToAShopCountry.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.

Request body

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

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.

packageGroupobject
idintegerrequired

The ID of the package group.

json
{
  "referenceKey": "my-warehouse",
  "id": 1,
  "priority": 100,
  "packageGroup": {
    "id": 1
  }
}

Response

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

idinteger

The ID of the warehouse created by SCAYLE.

referenceKeystring

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.

packageGroupobject
idintegerrequired

The ID of the package group.

json
{
  "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.

Attach a warehouse to a shop country — SCAYLE Admin — Documentation