Skip to main content
PUT
Update benefit

Authorizations

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

Path Parameters

benefitId
string
required

Unique benefit ID, prefixed with lben_.

Pattern: ^lben_[a-f0-9]+$

Body

application/json

Request body schema for PUT /v2/loyalties/benefits/{benefitId}.

name
string

Benefit name. Must be unique within the project.

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

Benefit type. Determines which configuration object is required.

Available options:
POINTS,
POINTS_PROPORTIONAL,
MATERIAL,
DIGITAL
points
object | null

Fixed points configuration (for type POINTS).

points_proportional
object | null

Proportional points configuration (for type POINTS_PROPORTIONAL).

material
object | null

Material (physical product/SKU) configuration (for type MATERIAL).

digital
object | null

Digital (campaign-based) configuration (for type DIGITAL).

stock
object | null

Stock configuration.

Response

The updated benefit

Response body schema for PUT /v2/loyalties/benefits/{benefitId}.

id
string
required

Unique benefit ID, prefixed with lben_.

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

Benefit name, unique within the project.

type
enum<string>
required

Benefit type.

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

Current benefit status. DELETED appears only in the response of the delete endpoint and in activity snapshots.

Available options:
DRAFT,
ACTIVE,
DELETED
stock
object
required

Stock configuration. Always present. Null stock is returned as UNLIMITED with limited omitted.

created_at
string<date-time>
required

Timestamp of when the benefit was created, in ISO 8601 format.

updated_at
string<date-time> | null
required

Timestamp of the last update, in ISO 8601 format. null when the benefit was never updated.

object
string
required

Type of the object. Always benefit.

Allowed value: "benefit"
points
object

Fixed points configuration. Present only when type is POINTS.

points_proportional
object

Proportional points configuration. Present only when type is POINTS_PROPORTIONAL.

material
object

Material configuration. Present only when type is MATERIAL.

digital
object

Digital configuration. Present only when type is DIGITAL.