Skip to main content
POST
Create a reward source
Connects a fulfillment account to a program so its products can be synced into the program’s catalog. Each program allows one source per fulfillment account and asset (409 reward_source_exists on duplicate), and neither can be changed after creation.
  • Default rate: Set default_rate in asset units per currency minor unit, or omit it to derive a snapshot rate from the asset’s value_per_unit (400 invalid_rate if unset). The derived rate does not change automatically if value_per_unit changes later.
  • Selection policy: MANUAL (default) adds only products explicitly included via product settings; ALL adds every product matching the source’s category (GIFT_CARD, PREPAID_CARD, CHARITY) and country filters.
See Gift cards for pricing examples and adding your first card.

Authorizations

Authorization
string
header
default:sk_...
required

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

Headers

Idempotency-Key
string

Unique key (1-255 printable ASCII characters) to make retries safe. Repeating the same request with the same key within 24 hours replays the original response (Idempotent-Replayed: true).

Maximum string length: 255

Path Parameters

program_id
string
required

The program's id.

Body

application/json

Reward source configuration

Connects a program to a fulfillment account so its products, such as gift cards, can back rewards.

asset_id
string<uuid>
required

Asset participants pay with (must be linked to the program)

Example:

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

fulfillment_account_id
string<uuid>
required

Fulfillment account whose products populate the program catalog

Example:

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

category_filter
string[]

Under ALL, include only these categories (GIFT_CARD, PREPAID_CARD, CHARITY)

Example:
country_filter
string[]

Under ALL, include only products available in these countries

Example:
default_rate
string

Asset units per currency minor unit of face value (decimal string). Omit to derive from the asset's value_per_unit (required if value_per_unit is unset).

Example:

"1.5"

policy
string

Product selection: MANUAL (default) or ALL

Example:

"ALL"

Response

Created 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"