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 card definition. Cross-field rules apply: balance_settings.allow_negative: true requires points_expiration.type to be NO_EXPIRATION; the earned points refund mode REVOKE_BELOW_ZERO requires allow_negative: true; and the earned points refund method REVOKE_FROM_PENDING requires pending_points.type to be PERIOD_BASED, FIXED_DATES or EVENT_BASED.

name
string
required

Card definition name.

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

Card definition type. Currently only INDIVIDUAL is supported.

Available options:
INDIVIDUAL
status
enum<string> | null

Initial status. Allowed values on create are DRAFT and ACTIVE. Defaults to DRAFT when omitted.

Available options:
DRAFT,
ACTIVE,
null
code_config
object | null

Card code generation configuration. Defaults to a 10-character alphanumeric pattern.

points_expiration
object | null

Points expiration policy. Defaults to NO_EXPIRATION.

pending_points
object | null

Pending points activation policy. Defaults to IMMEDIATE.

earning_limits
object | null

Points earning limits. Defaults to NO_LIMIT for both global and transaction limits.

spending_limits
object | null

Points spending limits. Defaults to NO_LIMIT for both global and transaction limits.

refunds
object | null

Refund handling configuration. Defaults to NONE for both spent and earned points.

balance_settings
object | null

Card balance settings. Defaults to allow_negative: false.

pay_with_points
object

Pay-with-points configuration. Defaults to NO_PAYMENTS.

metadata
object | null

Arbitrary key-value metadata attached to the card definition.

Response

The created card definition.

A card definition.

id
string
required

Unique card definition ID.

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

Card definition name.

type
enum<string>
required

Card definition type.

Available options:
INDIVIDUAL
status
enum<string>
required

Current card definition status.

Available options:
DRAFT,
ACTIVE,
DELETED
code_config
object
required

Card code generation configuration. Always present with server-side defaults applied.

points_expiration
object
required

Points expiration policy. Always present; defaults to NO_EXPIRATION.

pending_points
object
required

Pending points activation policy. Always present; defaults to IMMEDIATE.

earning_limits
object
required

Points earning limits. Always present; defaults to NO_LIMIT for both scopes.

spending_limits
object
required

Points spending limits. Always present; defaults to NO_LIMIT for both scopes.

refunds
object
required

Refund handling configuration. Always present; defaults to NONE for both scopes.

balance_settings
object
required

Card balance settings. Always present; defaults to allow_negative: false.

pay_with_points
object
required

Pay-with-points configuration. Always present; defaults to NO_PAYMENTS.

metadata
object
required

Arbitrary key-value metadata. Empty object when not set.

created_at
string<date-time>
required

Creation timestamp (ISO 8601).

updated_at
string<date-time> | null
required

Last update timestamp (ISO 8601). Null when the card definition has never been updated.

object
string
required

Object type marker. Always card_definition.

Allowed value: "card_definition"
Last modified on July 27, 2026