younifyd
Menu

Create a new warehouse

Create a new warehouse

POST/warehouses

Use it in a workflow

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

Request

Request body

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

idinteger

The ID of the warehouse created in SCAYLE.

referenceKeystringrequired

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

isZeosWarehouseboolean

This flag should be set to true only when warehouse is a Zeos warehouse. It is not allowed to update this field after creation of the warehouse

Default false

merchantsarray<object>

A list of merchants the warehouse is attached to.

idinteger

The ID of the merchant created by SCAYLE.

referenceKeystringrequired

Reference key of the merchant.

namestringrequired

Name of the merchant.

priorityinteger

Priority of the merchant.

orderDelegationUrlstring (uri)

URL to send order delegation requests to the merchants.

cancellationUrlstring (uri)

URL to send order cancellation requests.

contactsarray<object>8 fields

A list of merchant contacts.

returnAddressesarray<object>8 fields

A list of merchant return addresses.

carriersarray<object>2 fields

A list of carriers attached to the merchant.

warehousesarray<object>2 fields

A list of warehouses attached to the merchant.

customDataany
shopCountriesarray<object>

Shop country information related to the warehouse.

shopKeystringrequired

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.

priorityinteger

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

packageGroupobject1 fields
json
{
  "referenceKey": "my-warehouse",
  "id": 1,
  "isZeosWarehouse": false,
  "merchants": [
    {
      "referenceKey": "acme",
      "name": "ACME",
      "id": 1,
      "priority": 1,
      "orderDelegationUrl": "string",
      "cancellationUrl": "string",
      "contacts": [
        {
          "id": 1,
          "name": "John Doe",
          "email": "foo@bar.org",
          "phone": 123456789,
          "cellPhone": 123456789,
          "type": "general",
          "position": "Partner Service",
          "description": "string"
        }
      ],
      "returnAddresses": [
        {
          "id": 1,
          "name": "Return Point",
          "street": "Domstrasse",
          "streetNo": 10,
          "zipCode": 22303,
          "city": "Hamburg",
          "countryCode": "DE",
          "dhlCode": "JVGL0849489024"
        }
      ],
      "carriers": [
        {
          "countryCode": "DE",
          "carrier": {
            "key": "DHL_STD_NATIONAL",
            "name": "DHL",
            "id": 1,
            "trackingUrl": "http://nolp.dhl.de/nextt-online-public/set_identcodes.do"
          }
        }
      ],
      "warehouses": [
        {
          "referenceKey": "my-warehouse",
          "id": 1
        }
      ],
      "customData": null
    }
  ],
  "shopCountries": [
    {
      "shopKey": "ms",
      "countryCode": "DE",
      "priority": 100,
      "packageGroup": {
        "id": 1
      }
    }
  ]
}

Response

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

idinteger

The ID of the warehouse created in SCAYLE.

referenceKeystring

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

isZeosWarehouseboolean

This flag should be set to true only when warehouse is a Zeos warehouse. It is not allowed to update this field after creation of the warehouse

Default false

merchantsarray<object>

A list of merchants the warehouse is attached to.

idinteger

The ID of the merchant created by SCAYLE.

referenceKeystringrequired

Reference key of the merchant.

namestringrequired

Name of the merchant.

priorityinteger

Priority of the merchant.

orderDelegationUrlstring (uri)

URL to send order delegation requests to the merchants.

cancellationUrlstring (uri)

URL to send order cancellation requests.

contactsarray<object>8 fields

A list of merchant contacts.

returnAddressesarray<object>8 fields

A list of merchant return addresses.

carriersarray<object>2 fields

A list of carriers attached to the merchant.

warehousesarray<object>2 fields

A list of warehouses attached to the merchant.

customDataany
shopCountriesarray<object>

Shop country information related to the warehouse.

shopKeystringrequired

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.

priorityinteger

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

packageGroupobject1 fields
json
{
  "referenceKey": "my-warehouse",
  "id": 1,
  "isZeosWarehouse": false,
  "merchants": [
    {
      "referenceKey": "acme",
      "name": "ACME",
      "id": 1,
      "priority": 1,
      "orderDelegationUrl": "string",
      "cancellationUrl": "string",
      "contacts": [
        {
          "id": 1,
          "name": "John Doe",
          "email": "foo@bar.org",
          "phone": 123456789,
          "cellPhone": 123456789,
          "type": "general",
          "position": "Partner Service",
          "description": "string"
        }
      ],
      "returnAddresses": [
        {
          "id": 1,
          "name": "Return Point",
          "street": "Domstrasse",
          "streetNo": 10,
          "zipCode": 22303,
          "city": "Hamburg",
          "countryCode": "DE",
          "dhlCode": "JVGL0849489024"
        }
      ],
      "carriers": [
        {
          "countryCode": "DE",
          "carrier": {
            "key": "DHL_STD_NATIONAL",
            "name": "DHL",
            "id": 1,
            "trackingUrl": "http://nolp.dhl.de/nextt-online-public/set_identcodes.do"
          }
        }
      ],
      "warehouses": [
        {
          "referenceKey": "my-warehouse",
          "id": 1
        }
      ],
      "customData": null
    }
  ],
  "shopCountries": [
    {
      "shopKey": "ms",
      "countryCode": "DE",
      "priority": 100,
      "packageGroup": {
        "id": 1
      }
    }
  ]
}

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