Skip to main content
POST
Create account reward
POST////
Create a reward for an existing credit account.

URL path parameters

Request body

Sample request body

JSON

Response body

Sample response body

JSON

Authorizations

Authorization
string
header
required

Token used to verify user identity and also authorize user to use service

Path Parameters

account_token
string
required

Unique identifier of the credit account for which you want to create a reward.

Send a GET request to /credit/accounts to retrieve existing credit account tokens.

Body

application/json
amount
number
required

Amount of the reward.

Required range: x > 0
description
string
required

Description of the reward.

Maximum string length: 255
currency_code
enum<string>
default:USD
required

Valid three-digit link:https://www.iso.org/iso-4217-currency-codes.html[ISO 4217 currency code, window="_blank"].

Available options:
USD
Maximum string length: 3
note
string

Additional information about the reward.

Maximum string length: 255
token
string

Unique identifier of the reward.

Maximum string length: 36
Pattern: (?!^ +$)^.+$
forced
boolean

Allows you to force the creation of a reward on an account.

By default, reward creation is not permitted for accounts with a status of SUSPENDED or TERMINATED if more than 90 days have passed since the status transition.

Response

Newly created reward

type
enum<string>
required

Type of reward.

Available options:
AUTO_CASH_BACK,
CASH_BACK,
STATEMENT_CREDIT
token
string
required

Unique identifier of the reward.

If in the detail_object, unique identifier of the detail object.

amount
number
required

Amount of the reward.

Required range: x >= 0
description
string
required

Description of the reward.

created_time
string<date-time>
required

Date and time when the reward was created on Marqeta's credit platform, in UTC.

updated_time
string<date-time>
required

Date and time when the reward was last updated on Marqeta's credit platform, in UTC.

currency_code
enum<string>
default:USD
required

Valid three-digit link:https://www.iso.org/iso-4217-currency-codes.html[ISO 4217 currency code, window="_blank"].

Available options:
USD
note
string

Additional information about the reward.

value
number

Value of the percentage or flat amount.

Returned for auto-cash back reward types only.

method
enum<string>

Method, either a flat amount or a percentage.

Returned for auto-cash back reward types only.

Available options:
PERCENTAGE,
FLAT
account_token
string

Unique identifier of the account on which the reward exists.

Maximum string length: 36
applied_to_amount
number

Total amount to which a percentage reward method is applied (for example, if a 3% reward is applied to 100, then 100 is the applied_to_amount value).

This field is not applicable for a flat fee method.

Returned for auto-cash back reward types only.