younifyd
Menu

Get merchants for given filters

Get merchants for given filters

GET/merchants

Use it in a workflow

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

Request

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

entitiesarray<object>
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
cursorobject
nextstring

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

json
{
  "entities": [
    {
      "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
    }
  ],
  "cursor": {
    "next": "MQ=="
  }
}

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