Note
This feature is currently in beta and subject to change. To learn more about the Beta program for this feature, contact your Marqeta representative.
This feature is currently in beta and subject to change. To learn more about the Beta program for this feature, contact your Marqeta representative.
/credit/rewards/configurations endpoint to manage the global configurations for a reward program. The global configurations for a reward account are defined in the reward policy on the reward account’s associated bundle.
Retrieve global configurations
Action:GETEndpoint:
/credit/rewards/configurations
Retrieve global configuration by program short code.
URL query parameters
| Fields | Description |
|---|---|
| bundleToken string Required | Unique identifier of the bundle. Allowable Values: Existing bundle token |
Response body
| Fields | Description |
|---|---|
| token string Returned | Unique identifier of the global configuration. Allowable Values: 36 char max |
| program_short_code string Returned | Program short code. Allowable Values: 36 char max |
| accrual_strategy string Returned | Reward accrual strategy for program. If no accrual_strategy is set, default is DEFAULT. - DEFAULT - The rewards accrued are based on typical transaction event types such as authorization clearings and refunds.- PAYMENT - The rewards accrued are based on payment event types such as completed payments and returned payments.Allowable Values: DEFAULT, PAYMENT |
| settlement_strategy string Returned | Reward settlement strategy for program. - LIVE - The rewards accrued are posted to the reward account upon processing of the authorization clearing for the transaction.- STATEMENT - The rewards accrued are posted to the reward account upon successful statement generation for the transactions.Allowable Values: LIVE, STATEMENT |
| global_rules array of strings Returned | Rule description object to apply on a brand-wide level. Allowable Values: Valid array of one or more global rules |
| bundle_token string Conditionally returned | Unique identifier of the bundle. Allowable Values: 36 char max |
| created_time datetime Returned | Date and time when the global configuration was created on the Marqeta platform, in UTC. Allowable Values: Format: yyyy-MM-ddThh:mm:ssZ |
| updated_time datetime Returned | Date and time when the global configuration was last updated on the Marqeta platform, in UTC. Allowable Values: Format: yyyy-MM-ddThh:mm:ssZ |
Sample response body
JSON
Modify global rules
Action:PUTEndpoint:
/credit/rewards/configurations/rules
Modify existing global rules for a reward program.
Request body
| Fields | Description |
|---|---|
| token string Required | Unique identifier of the global configuration. Allowable Values: 36 char max |
| global_rules array of strings Optional | Rule description object to apply on a brand-wide level. Allowable Values: Valid array of one or more global rules |
Sample request body
JSON
Response body
| Fields | Description |
|---|---|
| token string Returned | Unique identifier of the global configuration. Allowable Values: 36 char max |
| program_short_code string Returned | Program short code. Allowable Values: 36 char max |
| accrual_strategy string Returned | Reward accrual strategy for program. If no accrual_strategy is set, default is DEFAULT. - DEFAULT - The rewards accrued are based on typical transaction event types such as authorization clearings and refunds.- PAYMENT - The rewards accrued are based on payment event types such as completed payments and returned payments.Allowable Values: DEFAULT, PAYMENT |
| settlement_strategy string Returned | Reward settlement strategy for program. - LIVE - The rewards accrued are posted to the reward account upon processing of the authorization clearing for the transaction.- STATEMENT - The rewards accrued are posted to the reward account upon successful statement generation for the transactions.Allowable Values: LIVE, STATEMENT |
| global_rules array of strings Returned | Rule description object to apply on a brand-wide level. Allowable Values: Valid array of one or more global rules |
| bundle_token string Conditionally returned | Unique identifier of the bundle. Allowable Values: 36 char max |
| created_time datetime Returned | Date and time when the global configuration was created on the Marqeta platform, in UTC. Allowable Values: Format: yyyy-MM-ddThh:mm:ssZ |
| updated_time datetime Returned | Date and time when the global configuration was last updated on the Marqeta platform, in UTC. Allowable Values: Format: yyyy-MM-ddThh:mm:ssZ |
Sample response body
JSON