Skip to main content
GET
cURL
Returns one reward, archived or not, with its promotion codes. stripeSyncStatus is synced once its Stripe coupon and codes exist, pending while Ledger waits for its plans’ Stripe Products or for Stripe, and failed with a reason Ledger retries hourly. An unknown ID returns 404 reward_not_found. Needs the Catalog permission at Read.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

rewardId
string
required

The reward's ID.

Required string length: 1 - 100
Pattern: ^[a-zA-Z0-9_-]+$

Response

The reward, archived or not

id
string
required
name
string
required
kind
enum<string>
required
Available options:
coupon,
grant
coupon
object | null
required
grant
object | null
required
maxRedemptions
integer | null
required
timesRedeemed
integer
required
redeemBy
string | null
required
oncePerCustomer
boolean
required
archived
boolean
required
stripeSyncStatus
enum<string> | null
required

A coupon's Stripe sync. Null for a grant, which exists in Ledger alone.

Available options:
pending,
synced,
failed,
null
stripeSyncError
string | null
required

Why the last Stripe sync didn't finish: promotion_code_taken (a code is active in Stripe already, such as a Dashboard code), waiting_for_plan_products, too_many_products (the coupon would cover more than the 100 Products a Stripe coupon takes: name fewer plans), or a Stripe failure. Null once synced.

promotionCodes
object[]
required