Programs

Delete program member

Changed on

Deletes the member and sets status to DELETED. Removes the member's card assignments in this program.

Returns the member without a cards array. Delete doesn't change updated_at.

Records a vl.member.deleted activity. Each unassigned card also records vl.member.card.unassigned and vl.card.unassigned. When an assignment has a tier, the delete records a LEFT tier transaction with origin member_card_deleted.

The same customer can join the program again. The new member gets a new ID.

Returns 404 when the program doesn't exist, or when the member doesn't exist in that program. The program is checked first. Deleting a member that is already DELETED returns 404.

delete/v2/loyalties/programs/{programId}/members/{memberId}

Request

  • Base URL
    https://api.voucherify.io
  • URL
    https://api.voucherify.io/v2/loyalties/programs/{programId}/members/{memberId}
  • Auth
    • API key in header X-App-Id and API key in header X-App-Token
    • or HTTP bearer

Response

The deleted member (without cards).

idstring required

Identifies the member.

customer_idstring required

Identifies the enrolled customer.

program_idstring required

Identifies the loyalty program.

status'ACTIVE' | 'INACTIVE' | 'DELETED' required

Current member status. Allowed values: ACTIVE, INACTIVE, DELETED. INACTIVE members cannot earn points or redeem rewards.

metadataobject required

Stores custom member metadata. Empty object when none is set.

created_atstring date-time required

Records when the member was created (ISO 8601).

updated_atstring date-time nullable required

Records the last update (ISO 8601). null if the member has never been updated.

object'member' required

Object type. Always member.

Changes

    • info

      the endpoint scheme security X-App-Id AND X-App-Token was added to the API

    • info

      the endpoint scheme security bearerAuth was added to the API

    • 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

    • info

      added to the response body allOf list for the response status

    • info

      removed the non-success response with the status

    • info

      removed the non-success response with the status