Skip to main content
GET
Get a program

Authorizations

Authorization
string
header
required

Send your key in the Authorization header: Authorization: Bearer hk_live.…. The word Bearer is case-sensitive.

Keys are issued by Hoppier during the beta and shown once. Treat them like passwords and never put one in code that runs in a browser or an app.

Path Parameters

program
string
required

The program's id. Starts with prg_.

Pattern: ^prg_

Response

The program.

A reward program in your account.

id
string
required

The program's id. Starts with prg_.

Example:

"prg_Z8q3NnW2xK"

object
string
required
Allowed value: "program"
name
string
required
Example:

"Team lunch"

amount
integer
required

The amount each person gets, in cents (2500 means $25.00). 0 on a program where each person has their own amount.

Example:

2500

currency
string
required

Lowercase currency code. usd is the only value today.

Example:

"usd"

status
enum<string>
required

active: running. inactive: archived. pending: not active yet.

Available options:
active,
inactive,
pending
startDate
string
required

When the program starts: a Unix timestamp in milliseconds, as a string. A program with no start date returns the string "undefined", so treat anything that isn't 13 digits as "no start date".

Example:

"1793491200000"

createdAt
string
required

Unix milliseconds, as a string.

Example:

"1792504992000"

updatedAt
string
required

Unix milliseconds, as a string.

Example:

"1792504992000"

endDate
string

When the program ends (Unix milliseconds, as a string). Left out when the program has no end date.

Example:

"1795996800000"

addressId
string

Id of the program's address. Starts with ad_.

Example:

"ad_7Ym2p0Lx3Q"

colorHex
string | null

The program's main colour in the Hoppier app.

Example:

"#FF6161"

colorHex2
string | null

The program's second colour in the Hoppier app.

Example:

"#FFFFFF"

logoUrl
string | null

URL of the program's logo, if it has one.