younifyd
Menu

Update an existing customer membership

Update an existing customer membership

PUT/shops/{shopKey}/countries/{countryCode}/customers/memberships/{membershipId}

Use it in a workflow

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

membershipIdintegerrequired

Membership ID

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 200 with an object. Read it in later steps with {{updateAnExistingCustomerMembership.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.