Get one programme
GET /programs/{ref}
One programme of the workspace, by handle or by id: its id, handle, name, points label, whether it is active, and whether it is the default. The programme comes from the path; a program query parameter is ignored. A publishable key may call this endpoint, and the answer is cacheable. A publishable key that names a programme which is not active gets the 404 not_found an unknown programme gets; a secret key or an OAuth token gets it with active: false.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”The programme to read: its handle (for example club) or its lower-case id. A value that is neither is 400 invalid_request; a programme that is not this workspace’s is 404 not_found.
The programme to read: its handle (for example club) or its lower-case id. A value that is neither is 400 invalid_request; a programme that is not this workspace’s is 404 not_found.
Responses
Section titled “ Responses ”The programme.
object
The programme’s id. It never changes; pass it as program to act in this programme whatever its handle becomes.
The programme’s handle, unique within the workspace. Pass it as program.
Example
copperlineThe programme name the merchant chose. Null until the merchant sets one.
Example
Copperline ClubThe merchant’s display label for points in this programme; points until the merchant sets one. The same value GET /v1/rewards returns.
Example
pointsWhether the programme is the default or holds a sales-channel claim. Always true for a publishable key, which cannot see an inactive programme.
Whether this is the workspace’s default programme: the one an order with no claim routes to.
The ref is not a lower-case programme id or a programme handle.
object
object
Example
not_foundExample
req_9f8e7d6c5b4a3210Missing or invalid API key or OAuth credential.
object
object
Example
not_foundExample
req_9f8e7d6c5b4a3210The ref names no programme of this workspace, or a publishable key named a programme that is not active (not_found).
object
object
Example
not_foundExample
req_9f8e7d6c5b4a3210