younifyd
Menu

Get customer memberships

Get customer memberships

GET/shops/{shopKey}/countries/{countryCode}/customers/{customerIdentifier}/memberships

Use it in a workflow

  1. Add a step and choose the SCAYLE Admin connector.
  2. Pick the Get customer memberships action (under Customers).
  3. Fill in the fields below, then reference the result from later steps as {{getCustomerMemberships.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.

customerIdentifieroneOfrequired

Customer ID or reference key If you are using a reference key, it is highly recommended to use the encoded equal sign (%3D) instead of the plain =

Query parameters

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.

filters[minCreatedAt]string (date-time)

Minimum (inclusive) creation date of entities that should be returned.

filters[maxCreatedAt]string (date-time)

Maximum (inclusive) creation date of entities that should be returned.

filters[minUpdatedAt]string (date-time)

Minimum (inclusive) modification date of entities that should be returned.

filters[maxUpdatedAt]string (date-time)

Maximum (inclusive) modification date of entities that should be returned.

filters[isActive]boolean

Pass true to get only active customer memberships, pass false to get the opposite.

sortstring

Sort by the provided column.

One ofidtypeKeyaccountNumberisActivecreatedAtupdatedAtDefault "id"

sortDirstring

Sort ascending or descending

One ofascdescDefault "asc"

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

cursorstring

Valid cursor used for pagination.

Response

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

entitiesarray<object>
idinteger
isActivebooleanrequired

Membership state.

typeKeystringrequired

Membership type key.

accountNumberstringrequired

Membership account number.

createdAtstring (date-time)

Timestamp when the membership is created.

updatedAtstring (date-time)

Timestamp when the membership is updated.

cursorobject
nextstring

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

json
{
  "entities": [
    {
      "isActive": true,
      "typeKey": "payback",
      "accountNumber": 1234567890,
      "id": 0,
      "createdAt": "2023-01-22T11:30:15+00:00",
      "updatedAt": "2023-01-22T11:30:15+00:00"
    }
  ],
  "cursor": {
    "next": "MQ=="
  }
}

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

Get customer memberships — SCAYLE Admin — Documentation