POST
/
v1
/
members
/
points-adjustment
curl --request POST \
  --url https://vanilla-dev02-loyalty.fabric.zone/api/v1/members/points-adjustment \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "profileId": "f90a1da5-c072-48b7-a9ea-eb35c5dd506b",
  "pointType": "Base",
  "billingEntity": "Company_Club",
  "points": 100,
  "reasonCode": "7502",
  "setToPending": false
}'
{
  "message": "Member points adjusted",
  "errors": {},
  "data": {
    "Message": "100.0 points added",
    "futureDate": false,
    "ExceptionString": "",
    "transactionCode": "78660e74-02e3-11e8-b443-00163e911bd2"
  },
  "status": 200
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Details needed to adjust points

points
number
required

Number of points to adjust. Can be positive or negative.

profileId
string

Profile ID of the member. In an ecosystem, it acts as a primary ID to keep the various systems (apps, websites, etc.) in sync.

pointType
string | null

Points type. <br /> They are categorized as: <br /> 1) Base points: Earned in any purchase transaction, based on the core rule. <br /> 2) Bonus points: Earned as a bonus for example on a large purchase. <br /> 3) Promotional Points: Earned as part of promotional events. <br /> 4) Restricted Points: Points to be used only on specified stores.

Minimum length: 1
billingEntity
string | null

Billing entity for the adjustment transaction

Minimum length: 1
reasonCode
string | null

Reason code for the point adjustment

Minimum length: 1
setToPending
boolean
default:
false

true: Points in Pending status. <br /> false: Points in Active status. <br />Note:The time period for Pending state is configurable.

Response

200
application/json
OK

Details of adjusted points

message
string

Message corresponding to the call

errors
object

Error details, if any.

data
object

Adjustment details.

status
integer

Status code of call