younifyd
Menu

Get merchant warehouses for given filters

Get merchant warehouses for given filters

GET/merchants/{merchantIdentifier}/warehouses

Use it in a workflow

  1. Add a step and choose the SCAYLE Admin connector.
  2. Pick the Get merchant warehouses for given filters action (under Warehouses).
  3. Fill in the fields below, then reference the result from later steps as {{getMerchantWarehousesForGivenFilters.response.data}}.

Request

Path parameters

merchantIdentifieroneOfrequired

Merchant ID or reference key.

Query parameters

limitinteger

Maximum number of entities in the result. When fetching entities with children, the limit always applies to the amount of parent entities (max. 1000).

Default 100

filters[id]array<integer>

Comma-separated list of IDs of entities that should be used for filtering.

filters[minId]integer

Minimum (inclusive) ID of entities that should be returned.

filters[maxId]integer

Maximum (inclusive) ID of entities that should be returned.

sortstring

Sort by the provided column.

One ofidDefault "id"

sortDirstring

Sort ascending or descending

One ofascdescDefault "asc"

cursorstring

Valid cursor used for pagination.

witharray<string>

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 {{getMerchantWarehousesForGivenFilters.response.data.<field>}}.

entitiesarray<object>
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>11 fields

A list of merchants the warehouse is attached to.

shopCountriesarray<object>4 fields

Shop country information related to the warehouse.

cursorobject
nextstring

The cursor pointing to the next page. If null there is no next page available.

json
{
  "entities": [
    {
      "referenceKey": "my-warehouse",
      "id": 1,
      "isZeosWarehouse": false,
      "merchants": [
        {
          "referenceKey": "acme",
          "name": "ACME",
          "id": 1,
          "priority": 1,
          "orderDelegationUrl": "string",
          "cancellationUrl": "string",
          "contacts": [
            {
              "id": null,
              "name": null,
              "email": null,
              "phone": null,
              "cellPhone": null,
              "type": null,
              "position": null,
              "description": null
            }
          ],
          "returnAddresses": [
            {
              "id": null,
              "name": null,
              "street": null,
              "streetNo": null,
              "zipCode": null,
              "city": null,
              "countryCode": null,
              "dhlCode": null
            }
          ],
          "carriers": [
            {
              "countryCode": null,
              "carrier": null
            }
          ],
          "warehouses": [
            {
              "referenceKey": null,
              "id": null
            }
          ],
          "customData": null
        }
      ],
      "shopCountries": [
        {
          "shopKey": "ms",
          "countryCode": "DE",
          "priority": 100,
          "packageGroup": {
            "id": 1
          }
        }
      ]
    }
  ],
  "cursor": {
    "next": "MQ=="
  }
}

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