Loyalty Levels Model

Action

Method

Resource

Description

Get all

GET

/loyalty_levels

Get all loyalty levels.

Get

GET

/loyalty_levels/loyalty_level_id

Get loyalty level by id.

Update

POST

/loyalty_levels/loyalty_level_id

Update loyalty levels.
Only admins

Create

POST

/loyalty_levels

Create loyalty levels.

Delete

DELETE

/loyalty_levels/loyalty_level_id

Delete loyalty levels by id.

The loyalty level model is composed of the following attributes:

Attribute

Type

Required

Description

whereable

id

Integer

No

Identifier of the loyalty level

name

String

Yes

Name of the loyalty leve

description

String

No

Description of the loyalty leve

benefits

Array

No

Benefits of the loyalty level

minimum_points

Integer

Yes

Minimum of points to get this level

accumulation_rate

Float

No

Accumulation rate of the loyalty level

maximum_accumulation_percentage

Integer

No

Maximum redemption type of the loyalty level:
1, 2

maximum_accumulation_fixed

Integer

No

Maximum redemption rate of the loyalty level

expire_after_minutes

Integer

No

Expire after minutes of the loyalty level

Image

base64 image, url image or file image

No

Image of the loyalty level

created_at

Timestamp

No

Date when the loyalty level was created

updated_at

Timestamp

No

Date when the loyalty level was updated