Skip to main content
POST
/
v1
/
loyalties
/
members
/
{memberId}
/
pending-points
/
{pendingPointsId}
/
balance
curl --request POST \
--url https://{cluster}.voucherify.io/v1/loyalties/members/{memberId}/pending-points/{pendingPointsId}/balance \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-App-Id: <api-key>' \
--header 'X-App-Token: <api-key>' \
--data '{
"points": 10
}'
{
"points": 5,
"total": 16,
"object": "balance",
"related_object": {
"type": "voucher",
"id": "v_abCdEfghI1JKLMNPqRS2Tu3vWXyza4bc"
},
"operation_type": "MANUAL"
}

Authorizations

X-App-Id
string
header
required
X-App-Token
string
header
required
Authorization
string
header
required

Path Parameters

memberId
string
required
Example:
pendingPointsId
string
required

Body

application/json
points
integer

Response

points
integer
required
total
integer
required
object
enum<string>
default:balance
required
Available options:
balance
operation_type
enum<string>
default:MANUAL
required
Available options:
MANUAL