younifyd
Menu

Create a new customer membership

Create a new customer membership

POST/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 Create a new customer membership action (under Customers).
  3. Fill in the fields below, then reference the result from later steps as {{createANewCustomerMembership.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 =

Request body

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

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.

json
{
  "isActive": true,
  "typeKey": "payback",
  "accountNumber": 1234567890,
  "id": 0,
  "createdAt": "2023-01-22T11:30:15+00:00",
  "updatedAt": "2023-01-22T11:30:15+00:00"
}

Response

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

idinteger
isActiveboolean

Membership state.

typeKeystring

Membership type key.

accountNumberstring

Membership account number.

createdAtstring (date-time)

Timestamp when the membership is created.

updatedAtstring (date-time)

Timestamp when the membership is updated.

json
{
  "isActive": true,
  "typeKey": "payback",
  "accountNumber": 1234567890,
  "id": 0,
  "createdAt": "2023-01-22T11:30:15+00:00",
  "updatedAt": "2023-01-22T11:30:15+00:00"
}

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

Create a new customer membership — SCAYLE Admin — Documentation