Skip to main content
PUT
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

Path Parameters

id
string
required

Unique benefit ID, prefixed with lben_.

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

Body

application/json

Request body for updating a benefit. All properties are optional; omitted properties keep their current values. When the benefit is ACTIVE, only name and stock may be updated. After the update, the type-specific configuration must stay consistent with the (possibly updated) type.

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

A benefit object. Exactly one type-specific configuration object (points, points_proportional, material, or digital) is present, matching the type; the others are omitted.

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
created_at
string<date-time>
required

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

object
string
required

Type of the object. Always benefit.

Allowed value: "benefit"
stock
object

Stock configuration. Omitted when not set.

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.

updated_at
string<date-time> | null

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

Last modified on July 13, 2026