younifyd
Menu

Adjust Member Pending Points

Adjust Member Pending Points

POST/v1/loyalties/members/{memberId}/pending-points/{pendingPointsId}/balance

Use it in a workflow

  1. Add a step and choose the Voucherify connector.
  2. Pick the Adjust Member Pending Points action (under Loyalties).
  3. Fill in the fields below, then reference the result from later steps as {{adjustMemberPendingPoints.response.data}}.

Request

Path parameters

memberIdstringrequired

Unique loyalty card code assigned to a particular customer.

pendingPointsIdstringrequired

Unique pending point identifier, assigned by Voucherify.

Request body

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

pointsinteger

Add or subtract pending points with a given ID. A negative value subtracts the points.

json
{
  "points": 0
}

Response

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

pointsinteger

The number of pending points added to or subtracted from the loyalty card.

totalinteger

Total number of pending points currently on a loyalty card.

objectstring

The type of the object represented by JSON. Default is `balance`.

One ofbalanceDefault "balance"

related_objectobject

Defines the resource that is being modified.

typestring

The object being modified, i.e. `voucher`.

One ofvoucherDefault "voucher"

idstring

Identifies the voucher that is being modified. This is the unique identifer that was assigned by Voucherify.

operation_typestring

The type of the operation being performed.

One ofMANUALDefault "MANUAL"

json
{
  "points": 0,
  "total": 0,
  "object": "balance",
  "related_object": {
    "type": "voucher",
    "id": "v_abCdEfghI1JKLMNPqRS2Tu3vWXyza4bc"
  },
  "operation_type": "MANUAL"
}

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