PUT////
Update a reward account’s active state.
URL path parameters
| Fields | Description |
|---|---|
| token string Required | Unique identifier of the reward account. Allowable Values: Existing reward account token |
Request body
| Fields | Description |
|---|---|
| is_active boolean Optional | A value of true indicates that the reward account is active and rewards can be accrued for the associated account.Allowable Values: true, false |
Sample request body
JSON
{
"is_active": false
}
Response body
| Fields | Description |
|---|---|
| token string Returned | Unique identifier of the reward account. Allowable Values: 36 char max |
| credit_account_token string Returned | Unique identifier of the associated credit account. Allowable Values: 36 char max |
| bundle_token string Conditionally returned | Unique identifier of the associated bundle that contains the reward policy on which the reward account is based. Allowable Values: 36 char max |
| is_active boolean Returned | A value of true indicates that the reward account is active.Allowable Values: true, false |
| global_rules array of objects Conditionally returned | List of global rules. Allowable Values: Valid array of one or more global rules |
| global_rules[].rule_token string Conditionally returned | Unique identifier of the rule. Allowable Values: 36 char max |
| global_rules[].description string Conditionally returned | Description of the rule, pulled from the rule entry. Allowable Values: 255 char max |
| created_time datetime Returned | Date and time when the reward account 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 reward account was last updated on the Marqeta platform, in UTC. Allowable Values: Format: yyyy-MM-ddThh:mm:ssZ |
Sample response body
JSON
{
"token": "4829608d-97e4-4a8c-bdab-20b26e7f243d",
"credit_account_token": "bbf6c086-4286-4a1c-a3dd-2f54bf6fd799",
"bundle_token": "f0cf97cb-76f7-47a5-83e7-188b9e741cf9",
"is_active": true,
"created_time": "2024-01-05T20:37:11Z",
"updated_time": "2024-01-05T20:37:11Z"
}