Skip to main content
POST
Link asset to program
Links an existing organization-level asset to a program so multiple programs can share the same asset. Use this endpoint to add an asset to additional programs after initial creation. Pass asset_id in the request body. Links are permanent and cannot be removed; linking an already-linked asset returns 409 asset_already_linked.
For usage patterns and examples, see the Programs guide.

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<uuid>
required

The program's id.

Body

application/json

Asset to link

Links an existing asset to a program.

asset_id
string<uuid>
required

The asset to link to the program. It must exist in your organization.

Example:

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

Response

Asset linked

An asset: the currency or points that participants earn and spend.

created_at
string<date-time>

When the asset was created

Example:

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

deleted_at
string<date-time>

Set when the asset is archived

Example:

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

id
string<uuid>

The id of the asset. Use it in asset_id fields and paths.

Example:

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

inventory_mode
string

How balances are tracked

Example:

"SIMPLE"

issuance_policy
string

How value is issued

Example:

"UNLIMITED"

max_transaction_amount
string

Optional per-transaction ceiling. Null means no limit

Example:

"10000.00"

name
string

The name people see for the asset, such as Points.

Example:

"Points"

program_ids
string[]

Programs this asset is linked to

Example:
scale
integer

Decimal precision

Example:

2

status
enum<string>

Whether the asset is in use (ACTIVE) or retired (ARCHIVED).

Available options:
ACTIVE,
ARCHIVED
Example:

"ACTIVE"

symbol
string

Short code for this asset

Example:

"PTS"

updated_at
string<date-time>

When the asset was last modified

Example:

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

value_per_unit
object | null

Monetary value of one unit of this asset (used for money figures in reports). Currency assets whose symbol and scale match ISO 4217 default to a value of 1 of that currency per unit. Null when unset.

value_per_unit_updated_at
string<date-time> | null

When value_per_unit was last set or cleared (RFC 3339). Null when it never was.

Example:

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

value_per_unit_updated_by
object | null

Who last set or cleared value_per_unit, or the system when Scrip set or cleared a currency asset's default value (one unit of that currency). Null when it never was.