voucherify 8.2.0 → 8.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (252) hide show
  1. checksums.yaml +4 -4
  2. data/Dockerfile +1 -1
  3. data/ENDPOINTS-COVERAGE.md +17 -15
  4. data/Gemfile.lock +9 -9
  5. data/README.md +12 -0
  6. data/__tests__/lib/campaigns.rb +2 -2
  7. data/__tests__/spec/snapshots/campaigns/created_validation_rule_applicable_to.snap +1 -1
  8. data/__tests__/spec/snapshots/campaigns/created_validation_rule_more_than.snap +1 -1
  9. data/docs/AccessSettingsAssign.md +3 -3
  10. data/docs/AccessSettingsProductCollectionAssignmentsList.md +11 -0
  11. data/docs/AccessSettingsUnassign.md +3 -3
  12. data/docs/ApplicableTo.md +1 -1
  13. data/docs/AreaStoreProductCollectionAssignment.md +14 -0
  14. data/docs/Campaign.md +2 -2
  15. data/docs/CampaignBase.md +2 -2
  16. data/docs/CampaignsApi.md +4 -4
  17. data/docs/CampaignsCreateRequestBody.md +2 -2
  18. data/docs/CampaignsCreateResponseBody.md +2 -2
  19. data/docs/CampaignsGetResponseBody.md +2 -2
  20. data/docs/CampaignsUpdateRequestBody.md +2 -2
  21. data/docs/CampaignsUpdateResponseBody.md +2 -2
  22. data/docs/CardDailyReportEntry.md +3 -1
  23. data/docs/CardLifetimeBucketPoints.md +2 -0
  24. data/docs/CustomerLoyalty.md +2 -2
  25. data/docs/CustomerLoyaltyCampaignsEntry.md +1 -1
  26. data/docs/CustomersApi.md +4 -4
  27. data/docs/InapplicableTo.md +1 -1
  28. data/docs/LV2BenefitsApi.md +1 -1
  29. data/docs/LV2EarningRulesApi.md +1 -1
  30. data/docs/LV2ExamineApi.md +2 -2
  31. data/docs/LV2ProgramsApi.md +44 -44
  32. data/docs/LV2RewardsApi.md +1 -1
  33. data/docs/ListPublicationsItemVoucher.md +1 -1
  34. data/docs/LoyaltiesApi.md +6 -6
  35. data/docs/LoyaltiesCreateCampaignRequestBody.md +2 -2
  36. data/docs/LoyaltiesCreateCampaignResponseBody.md +2 -2
  37. data/docs/LoyaltiesGetCampaignResponseBody.md +2 -2
  38. data/docs/LoyaltiesListMembersResponseBody.md +1 -1
  39. data/docs/LoyaltiesMembersRedemptionRedeemResponseBodyChannel.md +1 -1
  40. data/docs/LoyaltiesRewardAssignmentsGetResponseBody.md +2 -2
  41. data/docs/LoyaltiesRewardAssignmentsGetResponseBodyParametersLoyalty.md +1 -1
  42. data/docs/LoyaltiesRewardAssignmentsRewardGetResponseBody.md +1 -1
  43. data/docs/LoyaltiesRewardsCreateAssignmentResponseBody.md +2 -2
  44. data/docs/LoyaltiesRewardsCreateAssignmentResponseBodyParametersLoyalty.md +1 -1
  45. data/docs/LoyaltiesRewardsGetResponseBody.md +2 -2
  46. data/docs/LoyaltiesRewardsGetResponseBodyParametersLoyalty.md +1 -1
  47. data/docs/LoyaltiesRewardsUpdateAssignmentRequestBodyParametersLoyalty.md +1 -1
  48. data/docs/LoyaltiesRewardsUpdateAssignmentResponseBody.md +2 -2
  49. data/docs/LoyaltiesRewardsUpdateAssignmentResponseBodyParametersLoyalty.md +1 -1
  50. data/docs/LoyaltiesTiersListResponseBody.md +1 -1
  51. data/docs/LoyaltiesUpdateCampaignRequestBody.md +2 -2
  52. data/docs/LoyaltiesUpdateCampaignResponseBody.md +2 -2
  53. data/docs/LoyaltyCampaign.md +2 -2
  54. data/docs/LoyaltyV2ActivityBenefitStockLimited.md +1 -1
  55. data/docs/LoyaltyV2ActivityEarningRuleEffectPointsExpirationCalendarExpirationDate.md +1 -1
  56. data/docs/LoyaltyV2ActivityEarningRuleEffectPointsExpirationRollingExpirationRounding.md +1 -1
  57. data/docs/LoyaltyV2ActivityEarningRulePointsProportionalEvery.md +1 -1
  58. data/docs/LoyaltyV2ActivityEarningRulePointsProportionalMetadata.md +1 -1
  59. data/docs/ManagementApi.md +2 -2
  60. data/docs/ManagementProjectsCreateRequestBodyUsersItem.md +2 -2
  61. data/docs/ManagementProjectsUsersAssignRequestBody.md +2 -2
  62. data/docs/MetadataSchemasApi.md +1 -1
  63. data/docs/ProductCollectionsApi.md +4 -4
  64. data/docs/ProductCollectionsCreateRequestBody.md +1 -0
  65. data/docs/ProductCollectionsCreateResponseBody.md +2 -0
  66. data/docs/ProductCollectionsGetResponseBody.md +2 -0
  67. data/docs/ProductCollectionsItem.md +2 -0
  68. data/docs/ProductCollectionsListResponseBody.md +1 -1
  69. data/docs/ProductsApi.md +1 -1
  70. data/docs/RedemptionChannel.md +1 -1
  71. data/docs/RedemptionRewardResult.md +1 -1
  72. data/docs/RedemptionRewardResultParametersCoin.md +1 -1
  73. data/docs/Reward.md +1 -1
  74. data/docs/RewardAssignment.md +2 -2
  75. data/docs/RewardAssignmentParametersLoyalty.md +1 -1
  76. data/docs/RewardType.md +1 -0
  77. data/docs/RewardTypeCoin.md +2 -2
  78. data/docs/RewardTypeLoyaltyPoints.md +11 -0
  79. data/docs/RewardsApi.md +5 -5
  80. data/docs/RewardsAssignmentsCreateRequestBody.md +2 -0
  81. data/docs/RewardsAssignmentsCreateRequestBodyParametersLoyalty.md +1 -1
  82. data/docs/RewardsAssignmentsCreateResponseBody.md +2 -2
  83. data/docs/RewardsAssignmentsCreateResponseBodyParametersLoyalty.md +1 -1
  84. data/docs/RewardsAssignmentsGetResponseBody.md +2 -2
  85. data/docs/RewardsAssignmentsGetResponseBodyParametersLoyalty.md +1 -1
  86. data/docs/RewardsAssignmentsUpdateRequestBodyParametersLoyalty.md +1 -1
  87. data/docs/RewardsAssignmentsUpdateResponseBody.md +2 -2
  88. data/docs/RewardsAssignmentsUpdateResponseBodyParametersLoyalty.md +1 -1
  89. data/docs/RewardsCreateRequestBody.md +1 -0
  90. data/docs/RewardsCreateRequestBodyParameters.md +1 -0
  91. data/docs/RewardsCreateRequestBodyParametersCoin.md +1 -1
  92. data/docs/RewardsCreateRequestBodyParametersLoyaltyPoints.md +11 -0
  93. data/docs/RewardsCreateResponseBody.md +1 -1
  94. data/docs/RewardsUpdateRequestBodyParameters.md +1 -0
  95. data/docs/RewardsUpdateRequestBodyParametersCoin.md +1 -1
  96. data/docs/RewardsUpdateRequestBodyParametersLoyaltyPoints.md +11 -0
  97. data/docs/RewardsUpdateResponseBody.md +1 -1
  98. data/docs/TemplatesApi.md +1 -1
  99. data/docs/TemplatesCampaignsCampaignSetupCreateRequestBody.md +2 -2
  100. data/docs/V2LoyaltiesBenefitsGetResponseBody.md +1 -1
  101. data/docs/V2LoyaltiesBenefitsGetResponseBodyPoints.md +1 -1
  102. data/docs/V2LoyaltiesBenefitsGetResponseBodyPointsProportional.md +2 -2
  103. data/docs/V2LoyaltiesEarningRulesGetResponseBody.md +1 -1
  104. data/docs/VouchersApi.md +6 -6
  105. data/lib/VoucherifySdk/api/campaigns_api.rb +6 -6
  106. data/lib/VoucherifySdk/api/customers_api.rb +4 -4
  107. data/lib/VoucherifySdk/api/loyalties_api.rb +8 -8
  108. data/lib/VoucherifySdk/api/lv2_benefits_api.rb +2 -2
  109. data/lib/VoucherifySdk/api/lv2_earning_rules_api.rb +2 -2
  110. data/lib/VoucherifySdk/api/lv2_examine_api.rb +4 -4
  111. data/lib/VoucherifySdk/api/lv2_programs_api.rb +88 -88
  112. data/lib/VoucherifySdk/api/lv2_rewards_api.rb +2 -2
  113. data/lib/VoucherifySdk/api/management_api.rb +4 -4
  114. data/lib/VoucherifySdk/api/metadata_schemas_api.rb +2 -2
  115. data/lib/VoucherifySdk/api/product_collections_api.rb +8 -8
  116. data/lib/VoucherifySdk/api/products_api.rb +2 -2
  117. data/lib/VoucherifySdk/api/rewards_api.rb +8 -8
  118. data/lib/VoucherifySdk/api/templates_api.rb +2 -2
  119. data/lib/VoucherifySdk/api/vouchers_api.rb +12 -12
  120. data/lib/VoucherifySdk/models/access_settings.rb +1 -1
  121. data/lib/VoucherifySdk/models/access_settings_assign.rb +4 -4
  122. data/lib/VoucherifySdk/models/access_settings_product_collection_assignments_list.rb +280 -0
  123. data/lib/VoucherifySdk/models/access_settings_unassign.rb +4 -4
  124. data/lib/VoucherifySdk/models/applicable_to.rb +1 -1
  125. data/lib/VoucherifySdk/models/area_store_product_collection_assignment.rb +302 -0
  126. data/lib/VoucherifySdk/models/benefit_points_proportional_custom_event_metadata.rb +1 -1
  127. data/lib/VoucherifySdk/models/benefit_points_proportional_customer_metadata.rb +1 -1
  128. data/lib/VoucherifySdk/models/benefit_points_proportional_order_amount.rb +1 -1
  129. data/lib/VoucherifySdk/models/benefit_points_proportional_order_metadata.rb +1 -1
  130. data/lib/VoucherifySdk/models/benefit_points_proportional_order_total_amount.rb +1 -1
  131. data/lib/VoucherifySdk/models/campaign.rb +2 -2
  132. data/lib/VoucherifySdk/models/campaign_base.rb +2 -2
  133. data/lib/VoucherifySdk/models/campaign_loyalty_card.rb +1 -1
  134. data/lib/VoucherifySdk/models/campaign_loyalty_card_expiration_rules.rb +1 -1
  135. data/lib/VoucherifySdk/models/campaigns_create_request_body.rb +2 -2
  136. data/lib/VoucherifySdk/models/campaigns_create_response_body.rb +2 -2
  137. data/lib/VoucherifySdk/models/campaigns_get_response_body.rb +2 -2
  138. data/lib/VoucherifySdk/models/campaigns_update_request_body.rb +2 -2
  139. data/lib/VoucherifySdk/models/campaigns_update_response_body.rb +2 -2
  140. data/lib/VoucherifySdk/models/campaigns_vouchers_create_combined_response_body_loyalty_card.rb +1 -1
  141. data/lib/VoucherifySdk/models/campaigns_vouchers_create_response_body_loyalty_card.rb +1 -1
  142. data/lib/VoucherifySdk/models/card_daily_report_entry.rb +24 -2
  143. data/lib/VoucherifySdk/models/card_lifetime_bucket_points.rb +31 -5
  144. data/lib/VoucherifySdk/models/card_transaction.rb +1 -1
  145. data/lib/VoucherifySdk/models/client_events_create_request_body_loyalty.rb +1 -1
  146. data/lib/VoucherifySdk/models/customer_loyalty.rb +3 -2
  147. data/lib/VoucherifySdk/models/customer_loyalty_campaigns_entry.rb +2 -2
  148. data/lib/VoucherifySdk/models/customer_summary_redemptions_loyalty_card.rb +1 -1
  149. data/lib/VoucherifySdk/models/earning_rule.rb +1 -0
  150. data/lib/VoucherifySdk/models/events_create_request_body_loyalty.rb +1 -1
  151. data/lib/VoucherifySdk/models/inapplicable_to.rb +1 -1
  152. data/lib/VoucherifySdk/models/list_publications_item_voucher.rb +1 -1
  153. data/lib/VoucherifySdk/models/loyalties_create_campaign_request_body.rb +3 -3
  154. data/lib/VoucherifySdk/models/loyalties_create_campaign_response_body.rb +3 -3
  155. data/lib/VoucherifySdk/models/loyalties_earning_rules_create_request_body_item_custom_event.rb +1 -1
  156. data/lib/VoucherifySdk/models/loyalties_earning_rules_create_request_body_item_segment.rb +1 -1
  157. data/lib/VoucherifySdk/models/loyalties_earning_rules_list_response_body.rb +1 -1
  158. data/lib/VoucherifySdk/models/loyalties_earning_rules_update_request_body.rb +1 -0
  159. data/lib/VoucherifySdk/models/loyalties_get_campaign_response_body.rb +3 -3
  160. data/lib/VoucherifySdk/models/loyalties_list_campaigns_response_body.rb +1 -1
  161. data/lib/VoucherifySdk/models/loyalties_list_members_response_body.rb +1 -1
  162. data/lib/VoucherifySdk/models/loyalties_loyalty_tier_reward.rb +1 -1
  163. data/lib/VoucherifySdk/models/loyalties_members_create_response_body_loyalty_card.rb +1 -1
  164. data/lib/VoucherifySdk/models/loyalties_members_get_response_body_loyalty_card.rb +1 -1
  165. data/lib/VoucherifySdk/models/loyalties_members_redemption_redeem_response_body_channel.rb +1 -1
  166. data/lib/VoucherifySdk/models/loyalties_members_redemption_redeem_response_body_voucher_loyalty_card.rb +1 -1
  167. data/lib/VoucherifySdk/models/loyalties_members_transfers_create_response_body_loyalty_card.rb +1 -1
  168. data/lib/VoucherifySdk/models/loyalties_programs_members_benefits_transactions_list_request_query_benefit_id.rb +1 -1
  169. data/lib/VoucherifySdk/models/loyalties_reward_assignments_get_response_body.rb +3 -3
  170. data/lib/VoucherifySdk/models/loyalties_reward_assignments_get_response_body_parameters_loyalty.rb +1 -1
  171. data/lib/VoucherifySdk/models/loyalties_reward_assignments_reward_get_response_body.rb +2 -2
  172. data/lib/VoucherifySdk/models/loyalties_rewards_create_assignment_response_body.rb +3 -3
  173. data/lib/VoucherifySdk/models/loyalties_rewards_create_assignment_response_body_parameters_loyalty.rb +1 -1
  174. data/lib/VoucherifySdk/models/loyalties_rewards_get_response_body.rb +3 -3
  175. data/lib/VoucherifySdk/models/loyalties_rewards_get_response_body_parameters_loyalty.rb +1 -1
  176. data/lib/VoucherifySdk/models/loyalties_rewards_update_assignment_request_body_parameters_loyalty.rb +1 -1
  177. data/lib/VoucherifySdk/models/loyalties_rewards_update_assignment_response_body.rb +3 -3
  178. data/lib/VoucherifySdk/models/loyalties_rewards_update_assignment_response_body_parameters_loyalty.rb +1 -1
  179. data/lib/VoucherifySdk/models/loyalties_tiers_list_response_body.rb +1 -1
  180. data/lib/VoucherifySdk/models/loyalties_transfer_points.rb +1 -0
  181. data/lib/VoucherifySdk/models/loyalties_update_campaign_request_body.rb +3 -3
  182. data/lib/VoucherifySdk/models/loyalties_update_campaign_response_body.rb +3 -3
  183. data/lib/VoucherifySdk/models/loyalty_campaign.rb +3 -2
  184. data/lib/VoucherifySdk/models/loyalty_campaign_voucher.rb +1 -1
  185. data/lib/VoucherifySdk/models/loyalty_card_transaction_details_holder_loyalty_tier.rb +1 -1
  186. data/lib/VoucherifySdk/models/loyalty_card_transaction_details_loyalty_tier.rb +1 -1
  187. data/lib/VoucherifySdk/models/loyalty_member.rb +1 -1
  188. data/lib/VoucherifySdk/models/loyalty_member_loyalty_card.rb +1 -1
  189. data/lib/VoucherifySdk/models/loyalty_pending_points_details_holder_loyalty_tier.rb +1 -1
  190. data/lib/VoucherifySdk/models/loyalty_tier.rb +1 -0
  191. data/lib/VoucherifySdk/models/loyalty_tiers_expiration_all.rb +1 -1
  192. data/lib/VoucherifySdk/models/loyalty_v2_activity_benefit_stock_limited.rb +1 -1
  193. data/lib/VoucherifySdk/models/loyalty_v2_activity_earning_rule_effect_points_expiration_calendar_expiration_date.rb +1 -1
  194. data/lib/VoucherifySdk/models/loyalty_v2_activity_earning_rule_effect_points_expiration_rolling_expiration_rounding.rb +2 -2
  195. data/lib/VoucherifySdk/models/loyalty_v2_activity_earning_rule_points_proportional_every.rb +1 -1
  196. data/lib/VoucherifySdk/models/loyalty_v2_activity_earning_rule_points_proportional_metadata.rb +1 -1
  197. data/lib/VoucherifySdk/models/management_projects_create_request_body_users_item.rb +2 -2
  198. data/lib/VoucherifySdk/models/management_projects_users_assign_request_body.rb +2 -2
  199. data/lib/VoucherifySdk/models/member_activity.rb +1 -1
  200. data/lib/VoucherifySdk/models/parameter_filters_list_customer_redeemables_campaign_type.rb +1 -1
  201. data/lib/VoucherifySdk/models/product_collections_create_request_body.rb +10 -1
  202. data/lib/VoucherifySdk/models/product_collections_create_response_body.rb +21 -1
  203. data/lib/VoucherifySdk/models/product_collections_get_response_body.rb +21 -1
  204. data/lib/VoucherifySdk/models/product_collections_item.rb +21 -1
  205. data/lib/VoucherifySdk/models/product_collections_list_response_body.rb +1 -1
  206. data/lib/VoucherifySdk/models/redeemable_voucher_loyalty_card.rb +1 -1
  207. data/lib/VoucherifySdk/models/redemption_channel.rb +1 -1
  208. data/lib/VoucherifySdk/models/redemption_reward_result.rb +2 -2
  209. data/lib/VoucherifySdk/models/redemption_reward_result_parameters_coin.rb +2 -2
  210. data/lib/VoucherifySdk/models/redemption_voucher_loyalty_card.rb +1 -1
  211. data/lib/VoucherifySdk/models/reward.rb +2 -2
  212. data/lib/VoucherifySdk/models/reward_assignment.rb +3 -3
  213. data/lib/VoucherifySdk/models/reward_assignment_parameters_loyalty.rb +1 -1
  214. data/lib/VoucherifySdk/models/reward_type.rb +15 -5
  215. data/lib/VoucherifySdk/models/reward_type_coin.rb +3 -3
  216. data/lib/VoucherifySdk/models/reward_type_loyalty_points.rb +284 -0
  217. data/lib/VoucherifySdk/models/rewards_assignments_create_request_body.rb +50 -5
  218. data/lib/VoucherifySdk/models/rewards_assignments_create_request_body_parameters_loyalty.rb +1 -1
  219. data/lib/VoucherifySdk/models/rewards_assignments_create_response_body.rb +3 -3
  220. data/lib/VoucherifySdk/models/rewards_assignments_create_response_body_parameters_loyalty.rb +1 -1
  221. data/lib/VoucherifySdk/models/rewards_assignments_get_response_body.rb +3 -3
  222. data/lib/VoucherifySdk/models/rewards_assignments_get_response_body_parameters_loyalty.rb +1 -1
  223. data/lib/VoucherifySdk/models/rewards_assignments_update_request_body_parameters_loyalty.rb +1 -1
  224. data/lib/VoucherifySdk/models/rewards_assignments_update_response_body.rb +3 -3
  225. data/lib/VoucherifySdk/models/rewards_assignments_update_response_body_parameters_loyalty.rb +1 -1
  226. data/lib/VoucherifySdk/models/rewards_create_request_body.rb +35 -1
  227. data/lib/VoucherifySdk/models/rewards_create_request_body_parameters.rb +15 -5
  228. data/lib/VoucherifySdk/models/rewards_create_request_body_parameters_coin.rb +2 -2
  229. data/lib/VoucherifySdk/models/rewards_create_request_body_parameters_loyalty_points.rb +284 -0
  230. data/lib/VoucherifySdk/models/rewards_create_response_body.rb +2 -2
  231. data/lib/VoucherifySdk/models/rewards_update_request_body_parameters.rb +15 -5
  232. data/lib/VoucherifySdk/models/rewards_update_request_body_parameters_coin.rb +2 -2
  233. data/lib/VoucherifySdk/models/rewards_update_request_body_parameters_loyalty_points.rb +284 -0
  234. data/lib/VoucherifySdk/models/rewards_update_response_body.rb +2 -2
  235. data/lib/VoucherifySdk/models/simple_loyalty_card.rb +1 -1
  236. data/lib/VoucherifySdk/models/templates_campaigns_campaign_setup_create_request_body.rb +2 -2
  237. data/lib/VoucherifySdk/models/v2_loyalties_benefits_get_response_body.rb +1 -1
  238. data/lib/VoucherifySdk/models/v2_loyalties_benefits_get_response_body_points.rb +1 -1
  239. data/lib/VoucherifySdk/models/v2_loyalties_benefits_get_response_body_points_proportional.rb +3 -3
  240. data/lib/VoucherifySdk/models/v2_loyalties_earning_rules_get_response_body.rb +2 -2
  241. data/lib/VoucherifySdk/models/voucher_loyalty_card.rb +1 -1
  242. data/lib/VoucherifySdk/models/voucher_transaction_details_holder_loyalty_tier.rb +1 -1
  243. data/lib/VoucherifySdk/models/voucher_transaction_details_loyalty_tier.rb +1 -1
  244. data/lib/VoucherifySdk/models/voucher_with_categories_loyalty_card.rb +1 -1
  245. data/lib/VoucherifySdk/models/vouchers_create_response_body_loyalty_card.rb +1 -1
  246. data/lib/VoucherifySdk/models/vouchers_disable_response_body_loyalty_card.rb +1 -1
  247. data/lib/VoucherifySdk/models/vouchers_enable_response_body_loyalty_card.rb +1 -1
  248. data/lib/VoucherifySdk/models/vouchers_get_response_body_loyalty_card.rb +1 -1
  249. data/lib/VoucherifySdk/models/vouchers_update_response_body_loyalty_card.rb +1 -1
  250. data/lib/VoucherifySdk/version.rb +1 -1
  251. data/lib/VoucherifySdk.rb +5 -0
  252. metadata +39 -29
@@ -56,7 +56,7 @@ All URIs are relative to *https://api.voucherify.io*
56
56
 
57
57
  Activate pending point bucket
58
58
 
59
- Activates a pending points bucket and creates a PENDING_POINTS_ACTIVATED card transaction. The transaction is created with status PENDING and processed asynchronously. No request body. The bucket must be PENDING, and its date must be after the current project day. The program and the member must be ACTIVE, and the program must be inside its validity window. Otherwise the response is 423. Returns 404 when the program or the member doesnt exist, when the card isnt assigned to that member, or when the bucket isnt on that card.
59
+ Activates a pending points bucket and creates a PENDING_POINTS_ACTIVATED card transaction. The transaction is created with status PENDING and processed asynchronously. No request body. The bucket must be PENDING, and its date must be after the current project day. The program and the member must be ACTIVE, and the program must be inside its validity window. Otherwise the response is 423. Returns 404 when the program or the member doesnt exist, when the card isnt assigned to that member, or when the bucket isnt on that card. A successful call records no activity.
60
60
 
61
61
  ### Examples
62
62
 
@@ -120,7 +120,7 @@ end
120
120
 
121
121
  Activate program member
122
122
 
123
- Moves an INACTIVE member to ACTIVE and sets updated_at. Records a vl.member.activated activity. No request body. Returns the member without a cards array. Returns 404 when the program doesnt exist, or when the member doesnt 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 ACTIVE.
123
+ Moves an INACTIVE member to ACTIVE and sets updated_at. Records a vl.member.activated activity. No request body. Returns the member without a cards array. Returns 404 when the program doesnt exist, or when the member doesnt 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 ACTIVE. A successful call records [vl.member.activated](/api-reference/loyalty-activity/members/activated).
124
124
 
125
125
  ### Examples
126
126
 
@@ -180,7 +180,7 @@ end
180
180
 
181
181
  Adjust card points
182
182
 
183
- Manually adjusts the points balance of the members card. A positive points value creates an ADMIN_CREDIT card transaction. The expiration date comes from the member tier when that tier defines its own points expiration. Otherwise the date comes from the card definition. expiration_date is null when points dont expire. A negative points value creates an ADMIN_DEBIT card transaction. When points is 0, no transaction is created and status is NO_CHANGE. The transaction is created with status PENDING and processed asynchronously. The program and the member must be ACTIVE. The program must also be inside its validity window. Otherwise the response is 423. The response is 404 when the program or the member doesnt exist, or when the card isnt assigned to that member.
183
+ Manually adjusts the points balance of the members card. A positive points value creates an ADMIN_CREDIT card transaction. The expiration date comes from the member tier when that tier defines its own points expiration. Otherwise the date comes from the card definition. expiration_date is null when points dont expire. A negative points value creates an ADMIN_DEBIT card transaction. When points is 0, no transaction is created and status is NO_CHANGE. The transaction is created with status PENDING and processed asynchronously. The program and the member must be ACTIVE. The program must also be inside its validity window. Otherwise the response is 423. The response is 404 when the program or the member doesnt exist, or when the card isnt assigned to that member. A successful call records no activity.
184
184
 
185
185
  ### Examples
186
186
 
@@ -246,7 +246,7 @@ end
246
246
 
247
247
  Batch create program members
248
248
 
249
- Schedules creation of program members from a JSON array and returns 202 with async_action_id. The program must exist, be ACTIVE, and be inside its validity window. The body isnt checked before that response. Entries are processed in batches of 100. The raw body must be at most 10 MB. Each entry uses the same fields as [Create program member](/api-reference/programs/create-program-member). A failed entry is skipped. Its report row sets created to false and explains the failure in error. Skipped cases include an invalid customer_identification, an unknown customer, an invalid status, a duplicate customer in the batch (Duplicate customer ID), a customer who is already a member (Member already exists), metadata that doesnt match the vl_member schema, and entries past the loyalty members plan limit. Successful entries enroll the customer and create a loyalty card for each card definition on the program. Report columns are identification_type, customer_id, customer_source_id, program_id, member_id, created, and error. An empty array or a null entry fails the async action with invalid_request_payload. A body that isnt a JSON array fails it with top_level_object_should_be_an_array. Use [Get async action](/api-reference/async-actions/get-async-action) to read the status and the report. You can also open the result from Audit log, [Background tasks](/analyze/audit-logs#background-tasks).
249
+ Schedules creation of program members from a JSON array and returns 202 with async_action_id. The program must exist, be ACTIVE, and be inside its validity window. The body isnt checked before that response. Entries are processed in batches of 100. The raw body must be at most 10 MB. Each entry uses the same fields as [Create program member](/api-reference/programs/create-program-member). A failed entry is skipped. Its report row sets created to false and explains the failure in error. Skipped cases include an invalid customer_identification, an unknown customer, an invalid status, a duplicate customer in the batch (Duplicate customer ID), a customer who is already a member (Member already exists), metadata that doesnt match the vl_member schema, and entries past the loyalty members plan limit. Successful entries enroll the customer and create a loyalty card for each card definition on the program. Report columns are identification_type, customer_id, customer_source_id, program_id, member_id, created, and error. An empty array or a null entry fails the async action with invalid_request_payload. A body that isnt a JSON array fails it with top_level_object_should_be_an_array. Use [Get async action](/api-reference/async-actions/get-async-action) to read the status and the report. You can also open the result from Audit log, [Background tasks](/analyze/audit-logs#background-tasks). A successful call records no activity; the scheduled batch records [vl.member.created](/api-reference/loyalty-activity/members/created) and, for each card, [vl.card.created](/api-reference/loyalty-activity/cards/created), [vl.card.assigned](/api-reference/loyalty-activity/cards/assigned), and [vl.member.card.assigned](/api-reference/loyalty-activity/members/card-assigned), and card code generation later records [vl.card.code_generation.succeeded](/api-reference/loyalty-activity/cards/code-generation-succeeded) or [vl.card.code_generation.failed](/api-reference/loyalty-activity/cards/code-generation-failed).
250
250
 
251
251
  ### Examples
252
252
 
@@ -308,7 +308,7 @@ end
308
308
 
309
309
  Cancel pending point bucket
310
310
 
311
- Cancels a pending points bucket so its points arent activated. Creates a PENDING_POINTS_CANCELED card transaction. The transaction is created with status PENDING and processed asynchronously. No request body. The bucket must be PENDING, and its date must be after the current project day. The program and the member must be ACTIVE, and the program must be inside its validity window. Otherwise the response is 423. Returns 404 when the program or the member doesnt exist, when the card isnt assigned to that member, or when the bucket isnt on that card.
311
+ Cancels a pending points bucket so its points arent activated. Creates a PENDING_POINTS_CANCELED card transaction. The transaction is created with status PENDING and processed asynchronously. No request body. The bucket must be PENDING, and its date must be after the current project day. The program and the member must be ACTIVE, and the program must be inside its validity window. Otherwise the response is 423. Returns 404 when the program or the member doesnt exist, when the card isnt assigned to that member, or when the bucket isnt on that card. A successful call records no activity.
312
312
 
313
313
  ### Examples
314
314
 
@@ -372,7 +372,7 @@ end
372
372
 
373
373
  Pay for order with points
374
374
 
375
- Pays for an order with points from the members card. The amount and points come from the card definitions pay-with-points exchange ratio, limited by the order total, the card balance, card spending caps, and the optional payment_limit. The binding cap is returned as details.spending_cap. The program and member must be ACTIVE, and the program must be inside its validity window. The card must belong to the member. The card definition must have pay-with-points enabled and an exchange-ratio formula. The order must already exist, identified by id or source_id. Modes: - TRANSACTION (default): creates a PENDING order transaction and a PENDING card transaction. Returns 202. The same order can be paid again; each call creates a new transaction. - DRY_RUN: simulates the payment and doesnt create a transaction. Returns 200 with status SIMULATED.
375
+ Pays for an order with points from the members card. The amount and points come from the card definitions pay-with-points exchange ratio, limited by the order total, the card balance, card spending caps, and the optional payment_limit. The binding cap is returned as details.spending_cap. The program and member must be ACTIVE, and the program must be inside its validity window. The card must belong to the member. The card definition must have pay-with-points enabled and an exchange-ratio formula. The order must already exist, identified by id or source_id. Modes: - TRANSACTION (default): creates a PENDING order transaction and a PENDING card transaction. Returns 202. The same order can be paid again; each call creates a new transaction. - DRY_RUN: simulates the payment and doesnt create a transaction. Returns 200 with status SIMULATED. A successful call records no activity.
376
376
 
377
377
  ### Examples
378
378
 
@@ -436,7 +436,7 @@ end
436
436
 
437
437
  Create program member
438
438
 
439
- Enrolls an existing customer as a member of the loyalty program and creates a loyalty card for each card definition assigned to the program. Card code generation is asynchronous, so code can be null right after creation. The program must be ACTIVE and inside its validity window, and the customer must already exist. A customer can be a member of a program only once. Identify the customer with customer_identification. status defaults to ACTIVE.
439
+ Enrolls an existing customer as a member of the loyalty program and creates a loyalty card for each card definition assigned to the program. Card code generation is asynchronous, so code can be null right after creation. The program must be ACTIVE and inside its validity window, and the customer must already exist. A customer can be a member of a program only once. Identify the customer with customer_identification. status defaults to ACTIVE. A successful call records [vl.member.created](/api-reference/loyalty-activity/members/created) and, for each card, [vl.card.created](/api-reference/loyalty-activity/cards/created), [vl.card.assigned](/api-reference/loyalty-activity/cards/assigned), and [vl.member.card.assigned](/api-reference/loyalty-activity/members/card-assigned); card code generation later records [vl.card.code_generation.succeeded](/api-reference/loyalty-activity/cards/code-generation-succeeded) or [vl.card.code_generation.failed](/api-reference/loyalty-activity/cards/code-generation-failed).
440
440
 
441
441
  ### Examples
442
442
 
@@ -498,7 +498,7 @@ end
498
498
 
499
499
  Deactivate program member
500
500
 
501
- Moves an ACTIVE member to INACTIVE and sets updated_at. Records a vl.member.deactivated activity. An INACTIVE member cant earn or spend points. No request body. Returns the member without a cards array. Returns 404 when the program doesnt exist, or when the member doesnt 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.
501
+ Moves an ACTIVE member to INACTIVE and sets updated_at. Records a vl.member.deactivated activity. An INACTIVE member cant earn or spend points. No request body. Returns the member without a cards array. Returns 404 when the program doesnt exist, or when the member doesnt 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. A successful call records [vl.member.deactivated](/api-reference/loyalty-activity/members/deactivated).
502
502
 
503
503
  ### Examples
504
504
 
@@ -558,7 +558,7 @@ end
558
558
 
559
559
  Delete program member
560
560
 
561
- Deletes the member and sets status to DELETED. Removes the members card assignments in this program. Returns the member without a cards array. Delete doesnt 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 doesnt exist, or when the member doesnt exist in that program. The program is checked first. Deleting a member that is already DELETED returns 404.
561
+ Deletes the member and sets status to DELETED. Removes the members card assignments in this program. Returns the member without a cards array. Delete doesnt change updated_at. 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 doesnt exist, or when the member doesnt exist in that program. The program is checked first. Deleting a member that is already DELETED returns 404. A successful call records [vl.member.card.unassigned](/api-reference/loyalty-activity/members/card-unassigned) and [vl.card.unassigned](/api-reference/loyalty-activity/cards/unassigned) for each assigned card, then [vl.member.deleted](/api-reference/loyalty-activity/members/deleted).
562
562
 
563
563
  ### Examples
564
564
 
@@ -618,7 +618,7 @@ end
618
618
 
619
619
  Expire point bucket
620
620
 
621
- Expires an ACTIVE points bucket. Creates an ADMIN_POINTS_EXPIRATION card transaction. The transaction is created with status PENDING and processed asynchronously. No request body. The bucket must be ACTIVE, and its expiration_date must be on or after the current project day. The program and the member must be ACTIVE, and the program must be inside its validity window. Otherwise the response is 423. Returns 404 when the program, the member, or the card definition doesnt exist, when the card isnt assigned to that member, or when the bucket isnt on that card.
621
+ Expires an ACTIVE points bucket. Creates an ADMIN_POINTS_EXPIRATION card transaction. The transaction is created with status PENDING and processed asynchronously. No request body. The bucket must be ACTIVE, and its expiration_date must be on or after the current project day. The program and the member must be ACTIVE, and the program must be inside its validity window. Otherwise the response is 423. Returns 404 when the program, the member, or the card definition doesnt exist, when the card isnt assigned to that member, or when the bucket isnt on that card. A successful call records no activity.
622
622
 
623
623
  ### Examples
624
624
 
@@ -682,7 +682,7 @@ end
682
682
 
683
683
  List member earning-rule daily reports
684
684
 
685
- Returns aggregated daily usage statistics for a specific earning rule and member over the given date range and resolution. Each entry sums successful earning-rule triggers recorded in one period. Periods without recorded activity are omitted. The date range is limited per resolution: - 90 days for day, - 12 weeks for week, - 12 months for month, - 4 quarters for quarter, - start_date must be before end_date, - start_date and end_date are inclusive. Returns 400 when query validation fails. Returns 404 when the program or member does not exist, or when the earning rule does not exist or is not assigned to the program.
685
+ Returns aggregated daily usage statistics for a specific earning rule and member over the given date range and resolution. Each entry sums successful earning-rule triggers recorded in one period. Periods without recorded activity are omitted. The date range is limited per resolution: - 90 days for day, - 12 weeks for week, - 12 months for month, - 4 quarters for quarter, - start_date must be before end_date, - start_date and end_date are inclusive. Returns 400 when query validation fails. Returns 404 when the program or member does not exist, or when the earning rule does not exist or is not assigned to the program. A successful call records no activity.
686
686
 
687
687
  ### Examples
688
688
 
@@ -750,7 +750,7 @@ end
750
750
 
751
751
  Get program member
752
752
 
753
- Returns one member of the program together with that members loyalty cards. Each card includes balance, lifetime_bucket, next_expiration, and next_activation. tier_progress is not included. Use [Get program membership](/api-reference/programs/get-program-membership) when you need tier progress. card.code can be null shortly after member creation, while code generation is still running. Returns 404 when the program doesnt exist, or when the member doesnt exist in that program. The program is checked first.
753
+ Returns one member of the program together with that members loyalty cards. Each card includes balance, lifetime_bucket, next_expiration, and next_activation. tier_progress is not included. Use [Get program membership](/api-reference/programs/get-program-membership) when you need tier progress. card.code can be null shortly after member creation, while code generation is still running. Returns 404 when the program doesnt exist, or when the member doesnt exist in that program. The program is checked first. A successful call records no activity.
754
754
 
755
755
  ### Examples
756
756
 
@@ -810,7 +810,7 @@ end
810
810
 
811
811
  Get program membership
812
812
 
813
- Returns the membership for one customer in the program: the member, the program, and the members loyalty cards. A card includes tier_progress when its card definition has a tier structure and the member has a tier on that card. Otherwise tier_progress is omitted. identification_type chooses how customerId is read. It defaults to customer_id.
813
+ Returns the membership for one customer in the program: the member, the program, and the members loyalty cards. A card includes tier_progress when its card definition has a tier structure and the member has a tier on that card. Otherwise tier_progress is omitted. identification_type chooses how customerId is read. It defaults to customer_id. A successful call records no activity.
814
814
 
815
815
  ### Examples
816
816
 
@@ -874,7 +874,7 @@ end
874
874
 
875
875
  List program points-earnings daily reports
876
876
 
877
- Returns aggregated daily points-earnings statistics for the program over the given date range and resolution, optionally filtered by earning rule and card definition. Each entry sums earning operations recorded for one period, earning rule, earning item, and card definition. Periods without recorded activity are omitted. A filter that matches no rows returns an empty data array. The date range is limited per resolution: - 90 days for day, - 12 weeks for week, - 12 months for month, - 4 quarters for quarter, - start_date must be before end_date, - start_date and end_date are inclusive. Returns 400 when query validation fails. Returns 404 when the program does not exist.
877
+ Returns aggregated daily points-earnings statistics for the program over the given date range and resolution, optionally filtered by earning rule and card definition. Each entry sums earning operations recorded for one period, earning rule, earning item, and card definition. Periods without recorded activity are omitted. A filter that matches no rows returns an empty data array. The date range is limited per resolution: - 90 days for day, - 12 weeks for week, - 12 months for month, - 4 quarters for quarter, - start_date must be before end_date, - start_date and end_date are inclusive. Returns 400 when query validation fails. Returns 404 when the program does not exist. A successful call records no activity.
878
878
 
879
879
  ### Examples
880
880
 
@@ -942,7 +942,7 @@ end
942
942
 
943
943
  List program points-earnings summary reports
944
944
 
945
- Returns total points-earnings statistics for the program (all time), optionally filtered by earning rule or card definition. Each entry sums earning operations for one earning rule, earning item, and card definition. Returns at most 100 rows, ordered by id descending. limit and order are not query parameters. A filter that matches no rows returns an empty data array. Returns 400 when query validation fails. Returns 404 when the program does not exist.
945
+ Returns total points-earnings statistics for the program (all time), optionally filtered by earning rule or card definition. Each entry sums earning operations for one earning rule, earning item, and card definition. Returns at most 100 rows, ordered by id descending. limit and order are not query parameters. A filter that matches no rows returns an empty data array. Returns 400 when query validation fails. Returns 404 when the program does not exist. A successful call records no activity.
946
946
 
947
947
  ### Examples
948
948
 
@@ -1004,7 +1004,7 @@ end
1004
1004
 
1005
1005
  List card activities
1006
1006
 
1007
- Returns a cursor-paginated list of activities recorded for the members card. The card must still be assigned to that member. Filters are id, type, and created_at. Default order is -created_at, then id ascending. Returns 404 when the program doesnt exist, when the member doesnt exist in that program, or when the card isnt currently assigned to that member. The program is checked first, then the member. A DELETED member returns 404 with resource_type member. A missing assignment and a missing or deleted card both return 404 with resource_type card. Returns 400 with key invalid_query_params when the query fails validation. That check runs before the program, member, and card lookup. A cursor that doesnt match ^lcrsacrd_[a-f0-9]+$, a limit outside 1 to 100, an order other than created_at or -created_at, or an array that orders by both directions fails here. After the program, member, and card are found, an unknown or expired cursor returns invalid_or_expired_cursor. A cursor recorded for different filters or order returns cursor_and_query_mismatch. The cursor stays valid when only limit changes.
1007
+ Returns a cursor-paginated list of activities recorded for the members card. The card must still be assigned to that member. Filters are id, type, and created_at. Default order is -created_at, then id ascending. Returns 404 when the program doesnt exist, when the member doesnt exist in that program, or when the card isnt currently assigned to that member. The program is checked first, then the member. A DELETED member returns 404 with resource_type member. A missing assignment and a missing or deleted card both return 404 with resource_type card. Returns 400 with key invalid_query_params when the query fails validation. That check runs before the program, member, and card lookup. A cursor that doesnt match ^lcrsacrd_[a-f0-9]+$, a limit outside 1 to 100, an order other than created_at or -created_at, or an array that orders by both directions fails here. After the program, member, and card are found, an unknown or expired cursor returns invalid_or_expired_cursor. A cursor recorded for different filters or order returns cursor_and_query_mismatch. The cursor stays valid when only limit changes. A successful call records no activity.
1008
1008
 
1009
1009
  ### Examples
1010
1010
 
@@ -1076,7 +1076,7 @@ end
1076
1076
 
1077
1077
  List card expiring points buckets
1078
1078
 
1079
- Returns a cursor-paginated list of ACTIVE point expiration buckets for the members card. Each bucket groups points that share an expiration date and expiration type, including points from separate transactions. The list starts on the current project day. Earlier buckets are omitted. Results can be filtered by card definition ID and expiration date, and ordered by expiration_date. Returns an empty list when the card has no matching buckets. Returns 400 when the query is invalid or the cursor is invalid, expired, or doesnt match the query. Returns 404 when the program or the member doesnt exist, or when the card isnt assigned to that member.
1079
+ Returns a cursor-paginated list of ACTIVE point expiration buckets for the members card. Each bucket groups points that share an expiration date and expiration type, including points from separate transactions. The list starts on the current project day. Earlier buckets are omitted. Results can be filtered by card definition ID and expiration date, and ordered by expiration_date. Returns an empty list when the card has no matching buckets. Returns 400 when the query is invalid or the cursor is invalid, expired, or doesnt match the query. Returns 404 when the program or the member doesnt exist, or when the card isnt assigned to that member. A successful call records no activity.
1080
1080
 
1081
1081
  ### Examples
1082
1082
 
@@ -1148,7 +1148,7 @@ end
1148
1148
 
1149
1149
  List card pending point buckets
1150
1150
 
1151
- Returns a cursor-paginated list of pending point buckets for the members card. Every bucket has status PENDING. Pending points wait for activation (PERIOD_BASED, FIXED_DATES, or EVENT_BASED), following the card definition. The list starts on the next project day. The current days bucket is omitted because its still accumulating. Results can be filtered by card definition ID and ordered by date. Returns 404 when the program or the member doesnt exist, or when the card isnt assigned to that member. Bucket IDs from this list are the bucketId for [Activate pending point bucket](/api-reference/programs/activate-pending-point-bucket) and [Cancel pending point bucket](/api-reference/programs/cancel-pending-point-bucket).
1151
+ Returns a cursor-paginated list of pending point buckets for the members card. Every bucket has status PENDING. Pending points wait for activation (PERIOD_BASED, FIXED_DATES, or EVENT_BASED), following the card definition. The list starts on the next project day. The current days bucket is omitted because its still accumulating. Results can be filtered by card definition ID and ordered by date. Returns 404 when the program or the member doesnt exist, or when the card isnt assigned to that member. Bucket IDs from this list are the bucketId for [Activate pending point bucket](/api-reference/programs/activate-pending-point-bucket) and [Cancel pending point bucket](/api-reference/programs/cancel-pending-point-bucket). A successful call records no activity.
1152
1152
 
1153
1153
  ### Examples
1154
1154
 
@@ -1220,7 +1220,7 @@ end
1220
1220
 
1221
1221
  List card transactions
1222
1222
 
1223
- Returns a cursor-paginated list of transactions on the members card. Filter by id, card_definition_id, and created_at. Order by id (default -id, newest first). Returns 404 when the program, member, or card doesnt exist. The program is checked first, then the member, then the card. A member of another program, or a card that isnt assigned to this member, is not found.
1223
+ Returns a cursor-paginated list of transactions on the members card. Filter by id, card_definition_id, and created_at. Order by id (default -id, newest first). Returns 404 when the program, member, or card doesnt exist. The program is checked first, then the member, then the card. A member of another program, or a card that isnt assigned to this member, is not found. A successful call records no activity.
1224
1224
 
1225
1225
  ### Examples
1226
1226
 
@@ -1292,7 +1292,7 @@ end
1292
1292
 
1293
1293
  List member benefit transactions
1294
1294
 
1295
- Lists benefit transactions (benefit fulfillments) for a given program member, with cursor-based pagination. Supports filtering by benefit ID and creation date.
1295
+ Lists benefit transactions (benefit fulfillments) for a given program member, with cursor-based pagination. Supports filtering by benefit ID and creation date. A successful call records no activity.
1296
1296
 
1297
1297
  ### Examples
1298
1298
 
@@ -1362,7 +1362,7 @@ end
1362
1362
 
1363
1363
  List card daily points reports
1364
1364
 
1365
- Returns aggregated points statistics for a members loyalty card over the given date range and resolution. Each entry sums the point operations recorded in one period. Periods without recorded activity are omitted. The date range is limited per resolution: - 90 days for day, - 12 weeks for week, - 12 months for month, - 4 quarters for quarter, - start_date must be before end_date, - start_date and end_date are inclusive. Returns 400 when query validation fails. Returns 404 when the program or member does not exist, or when the card does not exist or is not assigned to the member in the program.
1365
+ Returns aggregated points statistics for a members loyalty card over the given date range and resolution. Each entry sums the point operations recorded in one period. Periods without recorded activity are omitted. The date range is limited per resolution: - 90 days for day, - 12 weeks for week, - 12 months for month, - 4 quarters for quarter, - start_date must be before end_date, - start_date and end_date are inclusive. Returns 400 when query validation fails. Returns 404 when the program or member does not exist, or when the card does not exist or is not assigned to the member in the program. A successful call records no activity.
1366
1366
 
1367
1367
  ### Examples
1368
1368
 
@@ -1430,7 +1430,7 @@ end
1430
1430
 
1431
1431
  List member order payments
1432
1432
 
1433
- Lists stored PAY_WITH_POINTS order transactions for the program member, with cursor pagination. Filter by id, card_definition_id, and created_at. Order by id (default -id, newest first). Dry-run (SIMULATED) results arent stored and dont appear. Returns 404 when the program or the member doesnt exist. The program is checked first.
1433
+ Lists stored PAY_WITH_POINTS order transactions for the program member, with cursor pagination. Filter by id, card_definition_id, and created_at. Order by id (default -id, newest first). Dry-run (SIMULATED) results arent stored and dont appear. Returns 404 when the program or the member doesnt exist. The program is checked first. A successful call records no activity.
1434
1434
 
1435
1435
  ### Examples
1436
1436
 
@@ -1500,7 +1500,7 @@ end
1500
1500
 
1501
1501
  List member reward purchases
1502
1502
 
1503
- Lists stored PURCHASE reward transactions for the program member, with cursor pagination. Filter by id, reward_id, card_definition_id, and created_at. Order by id (default -id, newest first). Purchases rejected before a transaction is stored dont appear. A purchase accepted with 202 that later fails is stored as REJECTED with details.rejection. Returns 404 when the program or the member doesnt exist. The program is checked first.
1503
+ Lists stored PURCHASE reward transactions for the program member, with cursor pagination. Filter by id, reward_id, card_definition_id, and created_at. Order by id (default -id, newest first). Purchases rejected before a transaction is stored dont appear. A purchase accepted with 202 that later fails is stored as REJECTED with details.rejection. Returns 404 when the program or the member doesnt exist. The program is checked first. A successful call records no activity.
1504
1504
 
1505
1505
  ### Examples
1506
1506
 
@@ -1570,7 +1570,7 @@ end
1570
1570
 
1571
1571
  List member tier transactions
1572
1572
 
1573
- Lists tier transactions for the member: joins, leaves, upgrades, downgrades, expiration changes, and evaluation refreshes. Results use cursor pagination. Default order is -id, newest first. Filters are card_id, card_definition_id, and created_at. Returns 404 when the program doesnt exist, or when the member doesnt exist in that program. The program is checked first. A DELETED member returns 404. Returns 400 with key invalid_query_params when the query fails validation. That check runs before the program and member lookup. order must be id or -id. An array that orders by both directions is rejected. A cursor that doesnt match ^lcrsttx_[a-f0-9]+$ fails here. After the program and member are found, an unknown or expired cursor returns invalid_or_expired_cursor. A cursor recorded for different filters or order returns cursor_and_query_mismatch. The cursor stays valid when only limit changes.
1573
+ Lists tier transactions for the member: joins, leaves, upgrades, downgrades, expiration changes, and evaluation refreshes. Results use cursor pagination. Default order is -id, newest first. Filters are card_id, card_definition_id, and created_at. Returns 404 when the program doesnt exist, or when the member doesnt exist in that program. The program is checked first. A DELETED member returns 404. Returns 400 with key invalid_query_params when the query fails validation. That check runs before the program and member lookup. order must be id or -id. An array that orders by both directions is rejected. A cursor that doesnt match ^lcrsttx_[a-f0-9]+$ fails here. After the program and member are found, an unknown or expired cursor returns invalid_or_expired_cursor. A cursor recorded for different filters or order returns cursor_and_query_mismatch. The cursor stays valid when only limit changes. A successful call records no activity.
1574
1574
 
1575
1575
  ### Examples
1576
1576
 
@@ -1640,7 +1640,7 @@ end
1640
1640
 
1641
1641
  List program earning rule assignments
1642
1642
 
1643
- Returns a cursor-paginated list of earning rules assigned to the program.
1643
+ Returns a cursor-paginated list of earning rules assigned to the program. A successful call records no activity.
1644
1644
 
1645
1645
  ### Examples
1646
1646
 
@@ -1706,7 +1706,7 @@ end
1706
1706
 
1707
1707
  List program earning-rules daily reports
1708
1708
 
1709
- Returns aggregated daily earning-rule evaluation statistics for the program over the given date range and resolution, optionally filtered by earning rule. Each entry counts eligibility checks for one period and earning rule. Periods without recorded activity are omitted. failures_breakdown is always an empty object. A filter that matches no rows returns an empty data array. The date range is limited per resolution: - 90 days for day, - 12 weeks for week, - 12 months for month, - 4 quarters for quarter, - start_date must be before end_date, - start_date and end_date are inclusive. Returns 400 when query validation fails. Returns 404 when the program does not exist.
1709
+ Returns aggregated daily earning-rule evaluation statistics for the program over the given date range and resolution, optionally filtered by earning rule. Each entry counts eligibility checks for one period and earning rule. Periods without recorded activity are omitted. failures_breakdown is always an empty object. A filter that matches no rows returns an empty data array. The date range is limited per resolution: - 90 days for day, - 12 weeks for week, - 12 months for month, - 4 quarters for quarter, - start_date must be before end_date, - start_date and end_date are inclusive. Returns 400 when query validation fails. Returns 404 when the program does not exist. A successful call records no activity.
1710
1710
 
1711
1711
  ### Examples
1712
1712
 
@@ -1774,7 +1774,7 @@ end
1774
1774
 
1775
1775
  List program earning-rules summary reports
1776
1776
 
1777
- Returns total earning-rule evaluation statistics for the program (all time), optionally filtered by earning rule. Includes success and failure counts with a failures breakdown. Each entry counts eligibility checks for one earning rule. Returns at most 100 rows, ordered by id descending. limit and order are not query parameters. A filter that matches no rows returns an empty data array. Returns 400 when query validation fails. Returns 404 when the program does not exist.
1777
+ Returns total earning-rule evaluation statistics for the program (all time), optionally filtered by earning rule. Includes success and failure counts with a failures breakdown. Each entry counts eligibility checks for one earning rule. Returns at most 100 rows, ordered by id descending. limit and order are not query parameters. A filter that matches no rows returns an empty data array. Returns 400 when query validation fails. Returns 404 when the program does not exist. A successful call records no activity.
1778
1778
 
1779
1779
  ### Examples
1780
1780
 
@@ -1836,7 +1836,7 @@ end
1836
1836
 
1837
1837
  List program member activities
1838
1838
 
1839
- Returns a cursor-paginated list of lifecycle and card-assignment activities recorded for the member. Filters are id, type, and created_at. Default order is -created_at, then id ascending. Returns 404 when the program doesnt exist, or when the member doesnt exist in that program. The program is checked first. A DELETED member returns 404. Returns 400 with key invalid_query_params when the query fails validation. That check runs before the program and member lookup. A cursor that doesnt match ^lcrsambr_[a-f0-9]+$, a limit outside 1 to 100, an order other than created_at or -created_at, or an array that orders by both directions fails here. After the program and member are found, an unknown or expired cursor returns invalid_or_expired_cursor. A cursor recorded for different filters or order returns cursor_and_query_mismatch. The cursor stays valid when only limit changes.
1839
+ Returns a cursor-paginated list of lifecycle and card-assignment activities recorded for the member. Filters are id, type, and created_at. Default order is -created_at, then id ascending. Returns 404 when the program doesnt exist, or when the member doesnt exist in that program. The program is checked first. A DELETED member returns 404. Returns 400 with key invalid_query_params when the query fails validation. That check runs before the program and member lookup. A cursor that doesnt match ^lcrsambr_[a-f0-9]+$, a limit outside 1 to 100, an order other than created_at or -created_at, or an array that orders by both directions fails here. After the program and member are found, an unknown or expired cursor returns invalid_or_expired_cursor. A cursor recorded for different filters or order returns cursor_and_query_mismatch. The cursor stays valid when only limit changes. A successful call records no activity.
1840
1840
 
1841
1841
  ### Examples
1842
1842
 
@@ -1906,7 +1906,7 @@ end
1906
1906
 
1907
1907
  List program members
1908
1908
 
1909
- Returns a cursor-paginated list of members of the program. Deleted members are omitted. Results can be filtered by ID, status, customer ID and creation date. Results can be ordered by creation date, status, or customer ID (ascending or descending). The same field cannot be ordered both ascending and descending at the same time. Returns 404 when the program does not exist. List items do not include the cards array. Use the following endpoints to retrieve cards for a given member: - [Get customer memberships](/api-reference/programs/get-customer-memberships), - [Get program member](/api-reference/programs/get-program-member), - [Get program membership](/api-reference/programs/get-program-membership).
1909
+ Returns a cursor-paginated list of members of the program. Deleted members are omitted. Results can be filtered by ID, status, customer ID and creation date. Results can be ordered by creation date, status, or customer ID (ascending or descending). The same field cannot be ordered both ascending and descending at the same time. Returns 404 when the program does not exist. List items do not include the cards array. Use the following endpoints to retrieve cards for a given member: - [Get customer memberships](/api-reference/programs/get-customer-memberships), - [Get program member](/api-reference/programs/get-program-member), - [Get program membership](/api-reference/programs/get-program-membership). A successful call records no activity.
1910
1910
 
1911
1911
  ### Examples
1912
1912
 
@@ -1974,7 +1974,7 @@ end
1974
1974
 
1975
1975
  List program members daily reports
1976
1976
 
1977
- Returns member and card changes for the program over the given date range and resolution. Each row covers one period with recorded activity. Periods without activity are omitted. The date range is limited per resolution: - 90 days for day, - 12 weeks for week, - 12 months for month, - 4 quarters for quarter, - start_date must be before end_date, - start_date and end_date are inclusive. Returns 400 when query validation fails. Returns 404 when the program does not exist.
1977
+ Returns member and card changes for the program over the given date range and resolution. Each row covers one period with recorded activity. Periods without activity are omitted. The date range is limited per resolution: - 90 days for day, - 12 weeks for week, - 12 months for month, - 4 quarters for quarter, - start_date must be before end_date, - start_date and end_date are inclusive. Returns 400 when query validation fails. Returns 404 when the program does not exist. A successful call records no activity.
1978
1978
 
1979
1979
  ### Examples
1980
1980
 
@@ -2038,7 +2038,7 @@ end
2038
2038
 
2039
2039
  List program members summary reports
2040
2040
 
2041
- Returns all-time member and card totals for the program. The response contains one row when activity was recorded, and an empty data array otherwise. limit and order are not query parameters. Returns 400 when query validation fails. Returns 404 when the program does not exist.
2041
+ Returns all-time member and card totals for the program. The response contains one row when activity was recorded, and an empty data array otherwise. limit and order are not query parameters. Returns 400 when query validation fails. Returns 404 when the program does not exist. A successful call records no activity.
2042
2042
 
2043
2043
  ### Examples
2044
2044
 
@@ -2096,7 +2096,7 @@ end
2096
2096
 
2097
2097
  List program reward assignments
2098
2098
 
2099
- Returns a cursor-paginated list of rewards assigned to the program, including their stock configuration and redemption counters.
2099
+ Returns a cursor-paginated list of rewards assigned to the program, including their stock configuration and redemption counters. A successful call records no activity.
2100
2100
 
2101
2101
  ### Examples
2102
2102
 
@@ -2162,7 +2162,7 @@ end
2162
2162
 
2163
2163
  List program rewards daily reports
2164
2164
 
2165
- Returns aggregated reward-purchase statistics for the program over the given date range and resolution, optionally filtered by reward. Each row covers one reward and one period with recorded purchases. Periods without recorded purchases are omitted. failures_breakdown is always an empty object. A filter that matches no rows returns an empty data array. The date range is limited per resolution: - 90 days for day, - 12 weeks for week, - 12 months for month, - 4 quarters for quarter, - start_date must be before end_date, - start_date and end_date are inclusive. Returns 400 when query validation fails. Returns 404 when the program does not exist.
2165
+ Returns aggregated reward-purchase statistics for the program over the given date range and resolution, optionally filtered by reward. Each row covers one reward and one period with recorded purchases. Periods without recorded purchases are omitted. failures_breakdown is always an empty object. A filter that matches no rows returns an empty data array. The date range is limited per resolution: - 90 days for day, - 12 weeks for week, - 12 months for month, - 4 quarters for quarter, - start_date must be before end_date, - start_date and end_date are inclusive. Returns 400 when query validation fails. Returns 404 when the program does not exist. A successful call records no activity.
2166
2166
 
2167
2167
  ### Examples
2168
2168
 
@@ -2230,7 +2230,7 @@ end
2230
2230
 
2231
2231
  List program rewards spendings daily reports
2232
2232
 
2233
- Returns aggregated points spent on reward purchases for the program over the given date range and resolution. Each row covers one reward, reward cost, reward spending, card definition, and period with an approved point spend. Periods without an approved point spend are omitted. Optionally filters by reward, cost, spending, and card definition. A filter that matches no rows returns an empty data array. The date range is limited per resolution: - 90 days for day, - 12 weeks for week, - 12 months for month, - 4 quarters for quarter, - start_date must be before end_date, - start_date and end_date are inclusive. Returns 400 when query validation fails. Returns 404 when the program does not exist.
2233
+ Returns aggregated points spent on reward purchases for the program over the given date range and resolution. Each row covers one reward, reward cost, reward spending, card definition, and period with an approved point spend. Periods without an approved point spend are omitted. Optionally filters by reward, cost, spending, and card definition. A filter that matches no rows returns an empty data array. The date range is limited per resolution: - 90 days for day, - 12 weeks for week, - 12 months for month, - 4 quarters for quarter, - start_date must be before end_date, - start_date and end_date are inclusive. Returns 400 when query validation fails. Returns 404 when the program does not exist. A successful call records no activity.
2234
2234
 
2235
2235
  ### Examples
2236
2236
 
@@ -2298,7 +2298,7 @@ end
2298
2298
 
2299
2299
  List program rewards spendings summary reports
2300
2300
 
2301
- Returns all-time points spent on reward purchases for the program. Each row covers one reward, reward cost, reward spending, and card definition with an approved point spend. Filters rows by reward, cost, spending, and card definition. Returns at most 100 rows, ordered by id descending. limit and order are not query parameters. A filter that matches no rows returns an empty data array. Returns 400 when query validation fails. Returns 404 when the program does not exist.
2301
+ Returns all-time points spent on reward purchases for the program. Each row covers one reward, reward cost, reward spending, and card definition with an approved point spend. Filters rows by reward, cost, spending, and card definition. Returns at most 100 rows, ordered by id descending. limit and order are not query parameters. A filter that matches no rows returns an empty data array. Returns 400 when query validation fails. Returns 404 when the program does not exist. A successful call records no activity.
2302
2302
 
2303
2303
  ### Examples
2304
2304
 
@@ -2360,7 +2360,7 @@ end
2360
2360
 
2361
2361
  List program rewards summary reports
2362
2362
 
2363
- Returns all-time reward-purchase totals for the program, one row per reward with a recorded purchase attempt. Filters rows with filters[reward_id]. Returns at most 100 rows, ordered by id descending. limit and order are not query parameters. A filter that matches no rows returns an empty data array. Returns 400 when query validation fails. Returns 404 when the program does not exist.
2363
+ Returns all-time reward-purchase totals for the program, one row per reward with a recorded purchase attempt. Filters rows with filters[reward_id]. Returns at most 100 rows, ordered by id descending. limit and order are not query parameters. A filter that matches no rows returns an empty data array. Returns 400 when query validation fails. Returns 404 when the program does not exist. A successful call records no activity.
2364
2364
 
2365
2365
  ### Examples
2366
2366
 
@@ -2422,7 +2422,7 @@ end
2422
2422
 
2423
2423
  List program spending daily reports
2424
2424
 
2425
- Returns aggregated points-spending statistics for the program over the given date range and resolution. Each row covers one card definition and one period with recorded spending. Periods without recorded spending are omitted. Optionally filters by card definition. The date range is limited per resolution: - 90 days for day, - 12 weeks for week, - 12 months for month, - 4 quarters for quarter, - start_date must be before end_date, - start_date and end_date are inclusive. Returns 400 when query validation fails. Returns 404 when the program does not exist.
2425
+ Returns aggregated points-spending statistics for the program over the given date range and resolution. Each row covers one card definition and one period with recorded spending. Periods without recorded spending are omitted. Optionally filters by card definition. The date range is limited per resolution: - 90 days for day, - 12 weeks for week, - 12 months for month, - 4 quarters for quarter, - start_date must be before end_date, - start_date and end_date are inclusive. Returns 400 when query validation fails. Returns 404 when the program does not exist. A successful call records no activity.
2426
2426
 
2427
2427
  ### Examples
2428
2428
 
@@ -2490,7 +2490,7 @@ end
2490
2490
 
2491
2491
  List program spending summary reports
2492
2492
 
2493
- Returns all-time point-spending totals for the program, one row per card definition that has recorded spending. Filters rows with filters[card_definition_id]. Returns at most 10 rows (max number of card definitions per program), ordered by id descending. limit and order are not query parameters. Returns 200 with an empty data array when no spending is recorded. Returns 400 when query validation fails. Returns 404 when the program does not exist.
2493
+ Returns all-time point-spending totals for the program, one row per card definition that has recorded spending. Filters rows with filters[card_definition_id]. Returns at most 10 rows (max number of card definitions per program), ordered by id descending. limit and order are not query parameters. Returns 200 with an empty data array when no spending is recorded. Returns 400 when query validation fails. Returns 404 when the program does not exist. A successful call records no activity.
2494
2494
 
2495
2495
  ### Examples
2496
2496
 
@@ -2552,7 +2552,7 @@ end
2552
2552
 
2553
2553
  List program tier structure assignments
2554
2554
 
2555
- Returns a cursor-paginated list of tier structures assigned to the program. Currently, a program can have only one tier structure assigned.
2555
+ Returns a cursor-paginated list of tier structures assigned to the program. Currently, a program can have only one tier structure assigned. A successful call records no activity.
2556
2556
 
2557
2557
  ### Examples
2558
2558
 
@@ -2618,7 +2618,7 @@ end
2618
2618
 
2619
2619
  List program tiers daily reports
2620
2620
 
2621
- Returns aggregated tier-movement statistics for the program over the given date range and resolution, optionally filtered by tier structure and tier. Each row covers one tier structure, one tier, and one period with recorded movement. Periods without recorded movement are omitted. A filter that matches no rows returns an empty data array. The date range is limited per resolution: - 90 days for day, - 12 weeks for week, - 12 months for month, - 4 quarters for quarter, - start_date must be before end_date, - start_date and end_date are inclusive. Returns 400 when query validation fails. Returns 404 when the program does not exist.
2621
+ Returns aggregated tier-movement statistics for the program over the given date range and resolution, optionally filtered by tier structure and tier. Each row covers one tier structure, one tier, and one period with recorded movement. Periods without recorded movement are omitted. A filter that matches no rows returns an empty data array. The date range is limited per resolution: - 90 days for day, - 12 weeks for week, - 12 months for month, - 4 quarters for quarter, - start_date must be before end_date, - start_date and end_date are inclusive. Returns 400 when query validation fails. Returns 404 when the program does not exist. A successful call records no activity.
2622
2622
 
2623
2623
  ### Examples
2624
2624
 
@@ -2686,7 +2686,7 @@ end
2686
2686
 
2687
2687
  List program tiers summary reports
2688
2688
 
2689
- Returns all-time tier-movement totals for the program, one row per tier structure and tier that has recorded movement. Filters rows with filters[tier_structure_id] and filters[tier_id]. Returns at most 100 rows, ordered by id descending. limit and order are not query parameters. A filter that matches no rows returns an empty data array. Returns 400 when query validation fails. Returns 404 when the program does not exist.
2689
+ Returns all-time tier-movement totals for the program, one row per tier structure and tier that has recorded movement. Filters rows with filters[tier_structure_id] and filters[tier_id]. Returns at most 100 rows, ordered by id descending. limit and order are not query parameters. A filter that matches no rows returns an empty data array. Returns 400 when query validation fails. Returns 404 when the program does not exist. A successful call records no activity.
2690
2690
 
2691
2691
  ### Examples
2692
2692
 
@@ -2748,7 +2748,7 @@ end
2748
2748
 
2749
2749
  Purchase reward with points
2750
2750
 
2751
- Purchases a reward for the program member by spending points from the members card. The card comes from the matching reward costs card definition. The program, reward, and member must be ACTIVE. The program and reward must be inside their validity windows. The reward must be assigned to the program with stock available, a cost must match the customer, and the purchase must stay inside frequency, cooldown, balance, and spending limits. Modes: - TRANSACTION (default): creates a PENDING reward transaction and a PENDING card transaction. Returns 202. - DRY_RUN: simulates the purchase and doesnt create a transaction. Returns 200 with status SIMULATED.
2751
+ Purchases a reward for the program member by spending points from the members card. The card comes from the matching reward costs card definition. The program, reward, and member must be ACTIVE. The program and reward must be inside their validity windows. The reward must be assigned to the program with stock available, a cost must match the customer, and the purchase must stay inside frequency, cooldown, balance, and spending limits. Modes: - TRANSACTION (default): creates a PENDING reward transaction and a PENDING card transaction. Returns 202. - DRY_RUN: simulates the purchase and doesnt create a transaction. Returns 200 with status SIMULATED. A successful call records no activity.
2752
2752
 
2753
2753
  ### Examples
2754
2754
 
@@ -2812,7 +2812,7 @@ end
2812
2812
 
2813
2813
  Refund reward purchase
2814
2814
 
2815
- Refunds an APPROVED reward purchase made by a program member. The purchase transaction is marked REFUNDED, a new REFUND reward transaction is created with status APPROVED, and the points spent on the purchase are returned to the members card. The request body is optional and an empty payload is allowed. Policies default to refund: DEFAULT and stock: DEFAULT. The endpoint responds with 202 before the card balance changes. A POINTS_RETURNED card transaction is created for the members card and processed shortly after the response. When the members tier or the card definition expires points, returned points receive a new expiration date from that setting. They dont inherit the expiration of the originally spent points. A NO_EXPIRATION setting leaves the returned points without an expiration date. Card earning limits dont block the refund. For a LOYALTY_CARD_POINTS reward, the points credited to the target card are also reversed, with a POINTS_PURCHASE_REVERSED card transaction on that card. That transaction is processed shortly after the response. Its expiration is copied from the original points-purchased transaction. A DISCOUNT_COUPONS refund deletes the issued vouchers. details.result.digital.discount_coupons[].result is DELETED, or SKIPPED when the voucher isnt deleted. A GIFT_VOUCHERS refund subtracts the credited amount. details.result.digital.gift_vouchers[].result is CREDITS_SUBTRACTED, or SKIPPED when the balance update is rejected. The refund reverses that purchase in the rewards purchase limits for the project-local day of the original purchase. A day whose purchases are all refunded no longer counts as the members last purchase. Only rewards whose refunds.type is REFUNDABLE can be refunded. Any other reward is rejected with 423 and key reward_refund_policy_does_not_allow_refunds. policies.refund set to ALLOW refunds it anyway. The program must exist, and the reward transaction must belong to that program. Otherwise the request fails with 404. The program is checked first. The request is rejected with 423 when: - The program isnt ACTIVE (non_active_program) or is outside its validity window (program_outside_validity_window), - The transaction isnt a purchase (non_purchase_reward_transaction) or isnt APPROVED (non_approved_reward_transaction); refunding the same purchase twice fails here, - The reward no longer exists (reward_not_found), isnt assigned to the program (refund_reward_not_assigned_to_program), the members card is gone (refund_card_not_found), or the card definition is gone (refund_card_definition_not_found), - The reward type isnt supported (reward_type_not_supported_for_refunds), - For a LOYALTY_CARD_POINTS reward, the purchase result is missing (loyalty_card_points_purchase_result_not_found), the target card is gone (loyalty_card_points_target_card_not_found), the points-purchased card transaction is missing (loyalty_card_points_purchase_not_found), the target cards available balance is lower than the purchased points (loyalty_card_points_insufficient_balance), or the target card definition is gone (loyalty_card_points_target_card_definition_not_found).
2815
+ Refunds an APPROVED reward purchase made by a program member. The purchase transaction is marked REFUNDED, a new REFUND reward transaction is created with status APPROVED, and the points spent on the purchase are returned to the members card. The request body is optional and an empty payload is allowed. Policies default to refund: DEFAULT and stock: DEFAULT. The endpoint responds with 202 before the card balance changes. A POINTS_RETURNED card transaction is created for the members card and processed shortly after the response. When the members tier or the card definition expires points, returned points receive a new expiration date from that setting. They dont inherit the expiration of the originally spent points. A NO_EXPIRATION setting leaves the returned points without an expiration date. Card earning limits dont block the refund. For a legacy LOYALTY_CARD_POINTS reward, the points credited to the target card are also reversed, with a POINTS_PURCHASE_REVERSED card transaction on that card. That transaction is processed shortly after the response. Its expiration is copied from the original points-purchased transaction. A DISCOUNT_COUPONS refund deletes the issued vouchers. details.result.digital.discount_coupons[].result is DELETED, or SKIPPED when the voucher isnt deleted. A GIFT_VOUCHERS refund subtracts the credited amount. details.result.digital.gift_vouchers[].result is CREDITS_SUBTRACTED, or SKIPPED when the balance update is rejected. The refund reverses that purchase in the rewards purchase limits for the project-local day of the original purchase. A day whose purchases are all refunded no longer counts as the members last purchase. Only rewards whose refunds.type is REFUNDABLE can be refunded. Any other reward is rejected with 423 and key reward_refund_policy_does_not_allow_refunds. policies.refund set to ALLOW refunds it anyway. The program must exist, and the reward transaction must belong to that program. Otherwise the request fails with 404. The program is checked first. The request is rejected with 423 when: - The program isnt ACTIVE (non_active_program) or is outside its validity window (program_outside_validity_window), - The transaction isnt a purchase (non_purchase_reward_transaction) or isnt APPROVED (non_approved_reward_transaction); refunding the same purchase twice fails here, - The reward no longer exists (reward_not_found), isnt assigned to the program (refund_reward_not_assigned_to_program), the members card is gone (refund_card_not_found), or the card definition is gone (refund_card_definition_not_found), - The reward type isnt supported (reward_type_not_supported_for_refunds), - For a legacy LOYALTY_CARD_POINTS reward, the purchase result is missing (loyalty_card_points_purchase_result_not_found), the target card is gone (loyalty_card_points_target_card_not_found), the points-purchased card transaction is missing (loyalty_card_points_purchase_not_found), the target cards available balance is lower than the purchased points (loyalty_card_points_insufficient_balance), or the target card definition is gone (loyalty_card_points_target_card_definition_not_found). A successful call records no activity.
2816
2816
 
2817
2817
  ### Examples
2818
2818
 
@@ -2876,7 +2876,7 @@ end
2876
2876
 
2877
2877
  Update program member
2878
2878
 
2879
- Updates a program members metadata. Provided object keys are merged into the existing metadata; omitted keys are preserved. Pass metadata: null to clear all metadata (sets it to an empty object). This endpoint cannot change status. Use [Activate program member](/api-reference/programs/activate-program-member) or [Deactivate program member](/api-reference/programs/deactivate-program-member) for status transitions. Records a vl.member.updated activity. Returns the updated member without the cards array. Returns 404 when the program or member does not exist. Returns 400 when the request body fails validation or the project vl_member metadata schema rejects the payload.
2879
+ Updates a program members metadata. Provided object keys are merged into the existing metadata; omitted keys are preserved. Pass metadata: null to clear all metadata (sets it to an empty object). This endpoint cannot change status. Use [Activate program member](/api-reference/programs/activate-program-member) or [Deactivate program member](/api-reference/programs/deactivate-program-member) for status transitions. Returns the updated member without the cards array. Returns 404 when the program or member does not exist. Returns 400 when the request body fails validation or the project vl_member metadata schema rejects the payload. A successful call records [vl.member.updated](/api-reference/loyalty-activity/members/updated).
2880
2880
 
2881
2881
  ### Examples
2882
2882
 
@@ -13,7 +13,7 @@ All URIs are relative to *https://api.voucherify.io*
13
13
 
14
14
  Get reward by ID
15
15
 
16
- Returns a single reward by its ID.
16
+ Returns a single reward by its ID. A successful call records no activity.
17
17
 
18
18
  ### Examples
19
19
 
@@ -8,7 +8,7 @@
8
8
  | **object** | **String** | The type of the object represented by JSON. | [optional][default to 'voucher'] |
9
9
  | **campaign** | **String** | Campaign name | [optional] |
10
10
  | **gift** | [**Gift**](Gift.md) | | [optional] |
11
- | **loyalty_card** | **Object** | Defines the loyalty card details. | [optional] |
11
+ | **loyalty_card** | **Object** | Defines the legacy loyalty card details. | [optional] |
12
12
  | **discount** | [**Discount**](Discount.md) | | [optional] |
13
13
  | **is_referral_code** | **Boolean** | Flag indicating whether this voucher is a referral code; `true` for campaign type `REFERRAL_PROGRAM`. | [optional] |
14
14
 
data/docs/LoyaltiesApi.md CHANGED
@@ -145,7 +145,7 @@ VoucherifySdk.configure do |config|
145
145
  end
146
146
 
147
147
  api_instance = VoucherifySdk::LoyaltiesApi.new
148
- campaign_id = 'campaign_id_example' # String | Unique campaign ID of the loyalty program.
148
+ campaign_id = 'campaign_id_example' # String | Unique campaign ID of the legacy loyalty campaign.
149
149
  opts = {
150
150
  loyalties_members_create_request_body: VoucherifySdk::LoyaltiesMembersCreateRequestBody.new # LoyaltiesMembersCreateRequestBody | Provide details to whom the loyalty card should be assigned. You can choose to either specify the exact loyalty card code that you want to publish from existin (non-assigned) codes, or choose not to specify a voucher code. If you choose not to specify a code in the request paylaod, then the system will choose the next available voucher code available to be assigned to a customer. You can also include metadata in the request payload. This metadata will be assigned to the publication object, but will not be returned in the response to this endpoint. To see of publications (assignments of particular codes to customers) and publication metadata, use the [List Publications](/api-reference/publications/list-publications) endpoint.
151
151
  }
@@ -163,7 +163,7 @@ end
163
163
 
164
164
  | Name | Type | Description | Notes |
165
165
  | ---- | ---- | ----------- | ----- |
166
- | **campaign_id** | **String** | Unique campaign ID of the loyalty program. | |
166
+ | **campaign_id** | **String** | Unique campaign ID of the legacy loyalty campaign. | |
167
167
  | **loyalties_members_create_request_body** | [**LoyaltiesMembersCreateRequestBody**](LoyaltiesMembersCreateRequestBody.md) | Provide details to whom the loyalty card should be assigned. You can choose to either specify the exact loyalty card code that you want to publish from existin (non-assigned) codes, or choose not to specify a voucher code. If you choose not to specify a code in the request paylaod, then the system will choose the next available voucher code available to be assigned to a customer. You can also include metadata in the request payload. This metadata will be assigned to the publication object, but will not be returned in the response to this endpoint. To see of publications (assignments of particular codes to customers) and publication metadata, use the [List Publications](/api-reference/publications/list-publications) endpoint. | [optional] |
168
168
 
169
169
  ### Return type
@@ -555,7 +555,7 @@ end
555
555
 
556
556
  Create Loyalty Campaign Reward Assignment
557
557
 
558
- <Warning> <Badge color yellow>Legacy loyalty API</Badge> This endpoint belongs to the legacy loyalty API (/v1/loyalties). Voucherify will not develop new features for this API. However, critical issues may still receive fixes. For new integrations, use [Loyalty v2](/build/loyalty-overview). If you have questions, contact [Voucherify support](https://www.voucherify.io/contact-support Contact Voucherify support). </Warning> Add rewards to a loyalty campaign.
558
+ <Warning> <Badge color yellow>Legacy loyalty API</Badge> This endpoint belongs to the legacy loyalty API (/v1/loyalties). Voucherify will not develop new features for this API. However, critical issues may still receive fixes. For new integrations, use [Loyalty v2](/build/loyalty-overview). If you have questions, contact [Voucherify support](https://www.voucherify.io/contact-support Contact Voucherify support). </Warning> Add rewards to a loyalty campaign. A LOYALTY_POINTS reward cannot be assigned to a campaign. Use **POST** v1/rewards/{rewardId}/assignments with related_object_type referral_tier instead.
559
559
 
560
560
  ### Examples
561
561
 
@@ -2578,7 +2578,7 @@ VoucherifySdk.configure do |config|
2578
2578
  end
2579
2579
 
2580
2580
  api_instance = VoucherifySdk::LoyaltiesApi.new
2581
- campaign_id = 'campaign_id_example' # String | Unique campaign ID of the loyalty program.
2581
+ campaign_id = 'campaign_id_example' # String | Unique campaign ID of the legacy loyalty campaign.
2582
2582
  opts = {
2583
2583
  limit: 56, # Integer | Limits the number of objects to be returned. The limit can range between 1 and 100 items. If no limit is set, it returns 10 items.
2584
2584
  page: 56, # Integer | Which page of results to return. The lowest value is 1.
@@ -2603,7 +2603,7 @@ end
2603
2603
 
2604
2604
  | Name | Type | Description | Notes |
2605
2605
  | ---- | ---- | ----------- | ----- |
2606
- | **campaign_id** | **String** | Unique campaign ID of the loyalty program. | |
2606
+ | **campaign_id** | **String** | Unique campaign ID of the legacy loyalty campaign. | |
2607
2607
  | **limit** | **Integer** | Limits the number of objects to be returned. The limit can range between 1 and 100 items. If no limit is set, it returns 10 items. | [optional] |
2608
2608
  | **page** | **Integer** | Which page of results to return. The lowest value is 1. | [optional] |
2609
2609
  | **customer** | **String** | A tracking identifier of a customer who is the holder of the vouchers. It can be an id generated by Voucherify or the source_id. Remember to use the proper URL escape codes if the source_id contains special characters. | [optional] |
@@ -3211,7 +3211,7 @@ end
3211
3211
 
3212
3212
  Update Loyalty Campaign
3213
3213
 
3214
- <Warning> <Badge color yellow>Legacy loyalty API</Badge> This endpoint belongs to the legacy loyalty API (/v1/loyalties). Voucherify will not develop new features for this API. However, critical issues may still receive fixes. For new integrations, use [Loyalty v2](/build/loyalty-overview). If you have questions, contact [Voucherify support](https://www.voucherify.io/contact-support Contact Voucherify support). </Warning> Updates a loyalty program. Fields other than those specified in the allowed request body payload wont be modified (even if provided they are silently skipped). Any parameters not provided will be left unchanged. This method will update the [loyalty cards](/api-reference/loyalties/get-member) which have not been published or redeemed yet.
3214
+ <Warning> <Badge color yellow>Legacy loyalty API</Badge> This endpoint belongs to the legacy loyalty API (/v1/loyalties). Voucherify will not develop new features for this API. However, critical issues may still receive fixes. For new integrations, use [Loyalty v2](/build/loyalty-overview). If you have questions, contact [Voucherify support](https://www.voucherify.io/contact-support Contact Voucherify support). </Warning> Updates a loyalty campaign. Fields other than those specified in the allowed request body payload wont be modified (even if provided they are silently skipped). Any parameters not provided will be left unchanged. This method will update the [loyalty cards](/api-reference/loyalties/get-member) which have not been published or redeemed yet.
3215
3215
 
3216
3216
  ### Examples
3217
3217
 
@@ -7,8 +7,8 @@
7
7
  | **name** | **String** | Campaign name. | [optional] |
8
8
  | **description** | **String** | An optional field to keep any extra textual information about the campaign such as a campaign description and details. | [optional] |
9
9
  | **type** | **String** | Defines whether the campaign can be updated with new vouchers after campaign creation or if the campaign consists of generic (standalone) vouchers. - &#x60;AUTO_UPDATE&#x60;: the campaign is dynamic, i.e. vouchers will generate based on set criteria - &#x60;STATIC&#x60;: vouchers need to be manually published - &#x60;STANDALONE&#x60;: the campaign is a generic (standalone) one with a single voucher for public use (only for discount and gift card campaigns) | [optional] |
10
- | **join_once** | **Boolean** | If this value is set to &#x60;true&#x60;, customers will be able to join the campaign only once. For loyalty campaigns, it&#39;s forced to &#x60;true&#x60;, even if &#x60;join_once: false&#x60; is passed in the request. | [optional] |
11
- | **auto_join** | **Boolean** | Indicates whether customers will be able to auto-join a loyalty campaign if any earning rule is fulfilled. | [optional] |
10
+ | **join_once** | **Boolean** | If this value is set to &#x60;true&#x60;, customers will be able to join the campaign only once. For **legacy loyalty** campaigns, it&#39;s forced to &#x60;true&#x60;, even if &#x60;join_once: false&#x60; is passed in the request. | [optional] |
11
+ | **auto_join** | **Boolean** | Indicates whether customers will be able to auto-join a **legacy loyalty** campaign if any earning rule is fulfilled. | [optional] |
12
12
  | **use_voucher_metadata_schema** | **Boolean** | Flag indicating whether the campaign is to use the voucher&#39;s metadata schema instead of the campaign metadata schema. | [optional] |
13
13
  | **vouchers_count** | **Integer** | Total number of unique vouchers in campaign (size of campaign). | [optional] |
14
14
  | **start_date** | **Time** | Activation timestamp defines when the campaign starts to be active in ISO 8601 format. Campaign is *inactive before* this date. | [optional] |
@@ -10,8 +10,8 @@
10
10
  | **campaign_type** | **String** | Type of campaign. | [optional][default to &#39;LOYALTY_PROGRAM&#39;] |
11
11
  | **type** | **String** | Defines whether the campaign can be updated with new vouchers after campaign creation. - &#x60;AUTO_UPDATE&#x60;: the campaign is dynamic, i.e. vouchers will generate based on set criteria - &#x60;STATIC&#x60;: vouchers need to be manually published | [optional] |
12
12
  | **voucher** | [**LoyaltyCampaignVoucher**](LoyaltyCampaignVoucher.md) | | [optional] |
13
- | **auto_join** | **Boolean** | Indicates whether customers will be able to auto-join a loyalty campaign if any earning rule is fulfilled. | [optional] |
14
- | **join_once** | **Boolean** | Always set to &#x60;true&#x60; for loyalty campaigns, meaning customers can join the campaign only once. It can&#39;t be changed to &#x60;false&#x60;. | [optional] |
13
+ | **auto_join** | **Boolean** | Indicates whether customers will be able to auto-join a **legacy loyalty** campaign if any earning rule is fulfilled. | [optional] |
14
+ | **join_once** | **Boolean** | Always set to &#x60;true&#x60; for **legacy loyalty** campaigns, meaning customers can join the campaign only once. It can&#39;t be changed to &#x60;false&#x60;. | [optional] |
15
15
  | **use_voucher_metadata_schema** | **Boolean** | Flag indicating whether the campaign is to use the voucher&#39;s metadata schema instead of the campaign metadata schema. | [optional] |
16
16
  | **validity_timeframe** | [**ValidityTimeframe**](ValidityTimeframe.md) | | [optional] |
17
17
  | **validity_day_of_week** | **Array&lt;Integer&gt;** | Integer array corresponding to the particular days of the week in which the voucher is valid. - &#x60;0&#x60; Sunday - &#x60;1&#x60; Monday - &#x60;2&#x60; Tuesday - &#x60;3&#x60; Wednesday - &#x60;4&#x60; Thursday - &#x60;5&#x60; Friday - &#x60;6&#x60; Saturday | [optional] |
@@ -10,8 +10,8 @@
10
10
  | **campaign_type** | **String** | Type of campaign. | [optional][default to &#39;LOYALTY_PROGRAM&#39;] |
11
11
  | **type** | **String** | Defines whether the campaign can be updated with new vouchers after campaign creation. - &#x60;AUTO_UPDATE&#x60;: the campaign is dynamic, i.e. vouchers will generate based on set criteria - &#x60;STATIC&#x60;: vouchers need to be manually published | [optional] |
12
12
  | **voucher** | [**LoyaltyCampaignVoucher**](LoyaltyCampaignVoucher.md) | | [optional] |
13
- | **auto_join** | **Boolean** | Indicates whether customers will be able to auto-join a loyalty campaign if any earning rule is fulfilled. | [optional] |
14
- | **join_once** | **Boolean** | Always set to &#x60;true&#x60; for loyalty campaigns, meaning customers can join the campaign only once. It can&#39;t be changed to &#x60;false&#x60;. | [optional] |
13
+ | **auto_join** | **Boolean** | Indicates whether customers will be able to auto-join a **legacy loyalty** campaign if any earning rule is fulfilled. | [optional] |
14
+ | **join_once** | **Boolean** | Always set to &#x60;true&#x60; for **legacy loyalty** campaigns, meaning customers can join the campaign only once. It can&#39;t be changed to &#x60;false&#x60;. | [optional] |
15
15
  | **use_voucher_metadata_schema** | **Boolean** | Flag indicating whether the campaign is to use the voucher&#39;s metadata schema instead of the campaign metadata schema. | [optional] |
16
16
  | **validity_timeframe** | [**ValidityTimeframe**](ValidityTimeframe.md) | | [optional] |
17
17
  | **validity_day_of_week** | **Array&lt;Integer&gt;** | Integer array corresponding to the particular days of the week in which the voucher is valid. - &#x60;0&#x60; Sunday - &#x60;1&#x60; Monday - &#x60;2&#x60; Tuesday - &#x60;3&#x60; Wednesday - &#x60;4&#x60; Thursday - &#x60;5&#x60; Friday - &#x60;6&#x60; Saturday | [optional] |
@@ -6,6 +6,6 @@
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **object** | **String** | The type of the object represented by JSON. This object stores information about members in a dictionary. | [optional][default to &#39;list&#39;] |
8
8
  | **data_ref** | **String** | Identifies the name of the attribute that contains the array of voucher objects. | [optional][default to &#39;vouchers&#39;] |
9
- | **vouchers** | [**Array&lt;LoyaltyMember&gt;**](LoyaltyMember.md) | Contains array of voucher objects representing loyalty cards, in other words, loyalty program members. | [optional] |
9
+ | **vouchers** | [**Array&lt;LoyaltyMember&gt;**](LoyaltyMember.md) | Contains an array of voucher objects representing loyalty cards (legacy loyalty campaign members). | [optional] |
10
10
  | **total** | **Integer** | Total number of voucher objects. | [optional] |
11
11
 
@@ -5,5 +5,5 @@
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **channel_id** | **String** | Unique channel ID of the user performing the redemption. This is either a user ID from a user using the Voucherify Dashboard or an X-APP-Id of a user using the API. For &#x60;AUTO_REDEEM&#x60;, it is the reward assignment ID. | [optional] |
8
- | **channel_type** | **String** | The source of the channel for the redemption. A &#x60;USER&#x60; corresponds to the Voucherify Dashboard, &#x60;API&#x60; corresponds to the API, and &#x60;AUTO_REDEEM&#x60; corresponds to a loyalty campaign reward that has been redeemed automatically. | [optional] |
8
+ | **channel_type** | **String** | The source of the channel for the redemption. A &#x60;USER&#x60; corresponds to the Voucherify Dashboard, &#x60;API&#x60; corresponds to the API, and &#x60;AUTO_REDEEM&#x60; corresponds to a **legacy loyalty** campaign reward that has been redeemed automatically. | [optional] |
9
9
 
@@ -9,7 +9,7 @@
9
9
  | **created_at** | **Time** | Timestamp representing the date and time when the reward assignment was created. The value is shown in the ISO 8601 format. | [optional] |
10
10
  | **updated_at** | **Time** | Timestamp representing the date and time when the reward assignment was updated. The value is shown in the ISO 8601 format. | [optional] |
11
11
  | **object** | **String** | The type of the object represented by the JSON. This object stores information about the reward assignment. | [optional][default to &#39;reward_assignment&#39;] |
12
- | **related_object_id** | **String** | Related object ID to which the reward was assigned. | [optional] |
13
- | **related_object_type** | **String** | Related object type to which the reward was assigned. | [optional][default to &#39;campaign&#39;] |
12
+ | **related_object_id** | **String** | Related object ID to which the reward was assigned. For &#x60;related_object_type&#x60; &#x60;campaign&#x60;, this is the campaign ID. For &#x60;referral_tier&#x60;, this is the referral tier ID. | [optional] |
13
+ | **related_object_type** | **String** | Related object type to which the reward was assigned. Use &#x60;campaign&#x60; for **legacy loyalty** campaign rewards. Use &#x60;referral_tier&#x60; for &#x60;LOYALTY_POINTS&#x60; rewards that credit a &#x60;v2/loyalties&#x60; (loyalty hub) card from a referral tier. A &#x60;LOYALTY_POINTS&#x60; reward can only be assigned to a referral tier. | [optional][default to &#39;campaign&#39;] |
14
14
  | **parameters** | [**LoyaltiesRewardAssignmentsGetResponseBodyParameters**](LoyaltiesRewardAssignmentsGetResponseBodyParameters.md) | | [optional] |
15
15