PUT////
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
{
"token": "ca8439c7-485f-4fa6-a099-2f77b57e3ce5",
"global_rules": [
"004d0fbb-8874-44ef-b222-c18de77e9acc",
"f73877d3-7625-4737-883d-d27ab9f5f7e6"
]
}
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
{
"token": "ca8439c7-485f-4fa6-a099-2f77b57e3ce5",
"program_short_code": "shortCodeValue",
"accrual_strategy": "DEFAULT",
"settlement_strategy": "LIVE",
"global_rules": [
"004d0fbb-8874-44ef-b222-c18de77e9acc",
"f73877d3-7625-4737-883d-d27ab9f5f7e6"
],
"created_time": "2024-01-04T20:37:11Z",
"updated_time": "2024-01-04T20:37:11Z"
}