Skip to main content
PATCH
Update reward source
Updates a reward source’s product-selection policy, filters, default asset rate, or status, syncing catalog rewards in the same request. Products with their own rate override keep that override when default_rate changes, and existing redemptions keep their original amounts. Changing the asset’s value_per_unit does not update a source’s rate; send a new default_rate here to reprice. The fulfillment account and asset cannot be changed on an existing source; create a new source instead. Send {"status": "ARCHIVED"} by itself to archive the source permanently.
See Reward sources for updating prices and removing cards.

Authorizations

Authorization
string
header
default:sk_...
required

Send your API key as Authorization: Bearer <key>.

Path Parameters

program_id
string
required

The program's id.

reward_source_id
string
required

The reward source's id.

Body

application/json

Fields to update

Changes a reward source. Omitted fields stay the same, and an empty filter list clears that filter.

category_filter
string[]

Category filter ([] clears the filter)

country_filter
string[]

Country filter ([] clears the filter)

default_rate
string

Asset units per currency minor unit of face value (decimal string)

Example:

"2"

policy
string

Product selection: MANUAL or ALL

Example:

"ALL"

status
enum<string>

Set to ARCHIVED to archive the reward source and its rewards, which cannot be undone; send status without other fields.

Available options:
ACTIVE,
ARCHIVED
Example:

"ARCHIVED"

Response

Updated reward source

A reward source: a program's link to a fulfillment account, with the rules for which products it offers.

asset_id
string<uuid>

Asset participants spend on these rewards

Example:

"a3bb189e-8bf9-4c8b-9be0-6b5d2f4e7a02"

category_filter
string[]

ALL-policy category filter (null = no filter)

Example:
country_filter
string[]

ALL-policy country filter (null = no filter)

Example:
created_at
string<date-time>

When the reward source was created (RFC 3339)

Example:

"2027-01-15T10:30:00Z"

default_rate
string

Asset units per currency minor unit of face value (decimal string)

Example:

"1.5"

fulfillment_account_id
string<uuid>

Fulfillment account supplying these products

Example:

"71f2a9d4-3b6e-4c8a-9f1d-5e2b8c7a0091"

id
string<uuid>

The id of the reward source. Use it in reward_source_id fields and paths.

Example:

"9a0c2e4b-6d81-4f35-a7c9-1b3d5f7e9a14"

own_price_count
integer

How many of those rewards have their own price: a rate on their product settings that replaces the source's default_rate.

Example:

12

policy
string

Product selection: MANUAL (nothing until products are enabled) or ALL

Example:

"ALL"

program_id
string<uuid>

Program this source belongs to

Example:

"8f14e45f-ceea-4e70-9df8-2a7d1b3c9f01"

reward_count
integer

How many rewards the source puts in the catalog now. Archived rewards are not counted.

Example:

1812

status
enum<string>

The reward source's lifecycle state: ACTIVE or ARCHIVED.

Available options:
ACTIVE,
ARCHIVED
Example:

"ACTIVE"

updated_at
string<date-time>

When the reward source was last modified (RFC 3339)

Example:

"2027-01-15T10:30:00Z"