younifyd
Menu

Activate Member Pending Points

Activate Member Pending Points

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

Use it in a workflow

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

Request

Path parameters

memberIdstringrequired

Unique loyalty card code assigned to a particular customer.

pendingPointsIdstringrequired

Unique pending point identifier, assigned by Voucherify.

Response

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

pointsinteger

The number of pending points added to the loyalty card.

totalinteger

Total number of points incurred over the lifespan of the loyalty card, minus the expired points.

balanceinteger

The current number of loyalty points after the pending points have been added.

typestring

The type of the voucher being modified. For pending points, it is always `loyalty_card`.

One ofloyalty_cardDefault "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,
  "balance": 0,
  "type": "loyalty_card",
  "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.

Was this page helpful?