Deactivate program member
Changed onMoves an ACTIVE member to INACTIVE and sets updated_at. Records a vl.member.deactivated activity. An INACTIVE member can't earn or spend points. No request body.
Returns the member without a cards array.
Returns 404 when the program doesn't exist, or when the member doesn't exist in that program. The program is checked first. A DELETED member returns 404. Returns 400 with key invalid_state_transition when the member is already INACTIVE.
Request
- Base URLhttps://api.voucherify.io
- URLhttps://api.voucherify.io/v2/loyalties/programs/{programId}/members/{memberId}/deactivate
- Auth
- API key in header X-App-Id and API key in header X-App-Token
- or HTTP bearer
Response
The deactivated member, without cards. Status is always INACTIVE.
Changes
- info
the endpoint scheme security
X-App-Id AND X-App-Tokenwas added to the API - info
the endpoint scheme security
bearerAuthwas added to the API
- info
- breaking
removed the required property
from the response with the status - breaking
removed the required property
from the response with the status - breaking
removed the required property
from the response with the status - breaking
removed the required property
from the response with the status - breaking
removed the required property
from the response with the status - breaking
removed the required property
from the response with the status - breaking
removed the required property
from the response with the status - breaking
removed the required property
from the response with the status - warning
deleted the
pathrequest parametermemberId - warning
deleted the
pathrequest parameterprogramId - info
added to the response body
allOflist for the response status - info
removed the non-success response with the status
- breaking