Skip to main content
POST
Error

Authorizations

Authorization
string
header
required

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

X-App-Id
string
header
required
X-App-Token
string
header
required

Body

application/json

Request body for creating a reward. When type is MATERIAL, material is required and digital must be null; when type is DIGITAL, digital is required and material must be null.

name
string
required

Display name of the reward.

Required string length: 1 - 200
type
enum<string>
required

Reward type. MATERIAL rewards deliver a product or SKU; DIGITAL rewards deliver discount coupons, gift vouchers or loyalty card points.

Available options:
MATERIAL,
DIGITAL
costs
object[]
required

Point costs of the reward. Each cost defines the points to spend on a specific card definition, optionally guarded by rules.

Required array length: 1 - 10 elements
status
enum<string>

Initial status of the reward. Defaults to DRAFT behavior when omitted.

Available options:
DRAFT,
ACTIVE
validity_hours
object | null

Hours during which the reward can be purchased. Defaults to { "type": "ANY_TIME" } when omitted or null.

start_date
string<date-time> | null

Date from which the reward is available. Must be an ISO-8601 compliant date.

end_date
string<date-time> | null

Date until which the reward is available. Must be an ISO-8601 compliant date.

material
object | null

Material reward definition. Required when type is MATERIAL; must be null when type is DIGITAL.

digital
object | null

Digital reward definition. Required when type is DIGITAL; must be null when type is MATERIAL.

refunds
object | null

Refund policy for the reward. Defaults to { "type": "NONE" } when omitted.

metadata
object | null

Arbitrary key-value metadata attached to the reward, as a free-form object.

Response

The created reward.

A reward, as returned by the API.

id
string
required

Unique reward identifier, prefixed with lrew_.

Pattern: ^lrew_[a-f0-9]+$
name
string
required

Display name of the reward.

type
enum<string>
required

Reward type.

Available options:
MATERIAL,
DIGITAL
status
enum<string>
required

Current lifecycle status of the reward.

Available options:
ACTIVE,
DRAFT,
INACTIVE,
DELETED
validity_hours
object
required

Hours during which the reward can be purchased. Always present; defaults to { "type": "ANY_TIME" }.

refunds
object
required

Refund policy. Always present; defaults to { "type": "NONE" }.

costs
object[]
required

Point costs of the reward. Empty array when no costs are defined.

metadata
object
required

Arbitrary key-value metadata attached to the reward. Empty object when not set.

created_at
string<date-time>
required

Timestamp when the reward was created (ISO-8601).

object
string
required

Object type marker; always reward.

Allowed value: "reward"
start_date
string<date-time> | null

Date from which the reward is available, or null when not set.

end_date
string<date-time> | null

Date until which the reward is available, or null when not set.

material
object

Material reward definition. Present only when type is MATERIAL; omitted otherwise.

digital
object

Digital reward definition. Present only when type is DIGITAL; omitted otherwise.

updated_at
string<date-time> | null

Timestamp when the reward was last updated (ISO-8601), or null when never updated.

Last modified on July 27, 2026