Programs

Update program reward assignment

Changed on
<Info>

<Badge color="gray">Documentation in progress</Badge>

This documentation is in progress. The parameters, fields, request and response bodies, and other data may be subject to change. If you need more information or you want to share feedback, contact Voucherify support or your Technical Account Manager.

</Info>

Updates the stock configuration of a reward assigned to a program. Returns the updated reward assignment.

A successful call records vl.program.reward.updated.

put/v2/loyalties/programs/{programId}/rewards/{rewardId}

Request

Request body

Response

The updated reward assignment.

reward_idstring required

Unique reward identifier.

redeemednumber required

Number of times the reward has been redeemed within the program. Defaults to 0.

created_atstring date-time required

Assignment creation timestamp (ISO 8601).

updated_atstring date-time nullable required

Last update timestamp (ISO 8601), or null when never updated.

object'program_reward' required

Object type marker. Always program_reward.

Changes

    • breaking

      added to the request body allOf list

    • 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 path request parameter programId

    • warning

      deleted the path request parameter rewardId

    • warning

      removed the request property

    • info

      added to the response body allOf list for the response status

    • breaking

      added the new path request parameter programId

    • breaking

      added the new path request parameter rewardId

    • breaking

      added the new required request property

    • warning

      removed from the request body allOf list

    • info

      removed from the response body allOf list for the response status

    • info

      added the required property to the response with the status

    • info

      added the required property to the response with the status

    • info

      added the required property to the response with the status

    • info

      added the required property to the response with the status

    • info

      added the required property to the response with the status

    • info

      added the required property to the response with the status