younifyd
Menu

Get return addresses for given filters

Get return addresses for given filters

GET/merchants/{merchantIdentifier}/return-addresses

Use it in a workflow

  1. Add a step and choose the SCAYLE Admin connector.
  2. Pick the Get return addresses for given filters action (under Merchants).
  3. Fill in the fields below, then reference the result from later steps as {{getReturnAddressesForGivenFilters.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[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.

Response

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

entitiesarray<object>
idinteger

The ID of the return address created by SCAYLE.

namestring

The name of the return address.

streetstring

The street name of the return address.

streetNostring

The street number of the return address.

zipCodestring

The postal code of the return address.

citystring

The city name of the return address.

countryCodestring

ISO 3166 alpha 2 country code.

dhlCodestring

The DHL code of the return address.

cursorobject
nextstring

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

json
{
  "entities": [
    {
      "id": 1,
      "name": "Return Point",
      "street": "Domstrasse",
      "streetNo": 10,
      "zipCode": 22303,
      "city": "Hamburg",
      "countryCode": "DE",
      "dhlCode": "JVGL0849489024"
    }
  ],
  "cursor": {
    "next": "MQ=="
  }
}

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