Skip to content

List the workspace's programmes

GET
/programs

Every programme of the workspace, inactive ones included, the default first and then by handle. Secret keys and OAuth read tokens only: a publishable key is refused. Not cacheable. A program query parameter is ignored.

The programmes.

object
data
required

Every programme of the workspace, the default first, then by handle. Inactive programmes are included. A workspace has at most 10.

Array<object>
object
id
required

The programme’s id. It never changes; pass it as program to act in this programme whatever its handle becomes.

string format: uuid
handle
required

The programme’s handle, unique within the workspace. Pass it as program.

string
Example
copperline
name
required

The programme name the merchant chose. Null until the merchant sets one.

string | null
Example
Copperline Club
points_label
required

The merchant’s display label for points in this programme; points until the merchant sets one. The same value GET /v1/rewards returns.

string
Example
points
active
required

Whether the programme is the default or holds a sales-channel claim. Always true for a publishable key, which cannot see an inactive programme.

boolean
is_default
required

Whether this is the workspace’s default programme: the one an order with no claim routes to.

boolean

Missing or invalid API key or OAuth credential.

object
error
required
object
code
required
string
Example
not_found
message
required
string
details
request_id
required
string
Example
req_9f8e7d6c5b4a3210

The credential lacks the loyalty:read scope — a publishable key (publishable_key_forbidden).

object
error
required
object
code
required
string
Example
not_found
message
required
string
details
request_id
required
string
Example
req_9f8e7d6c5b4a3210