Skip to main content

Rewards Endpoints

Rewards Fields

FieldData TypeDefinition
account_guidStringThe unique identifier for the account associated with the reward. Defined by MX. This value may be null if data is not available from the provider.
balance_typeString (enumerated)The type of balance associated with the reward, for example, BALANCE_TO_LEVEL, or TOTAL_BALANCE.
balanceDecimalThe balance of the reward.
created_atStringThe time at which the reward was created.
descriptionStringThe description for the reward as given by the data provider.
expires_onStringThe date on which the balance expires.
guidStringThe unique identifier for the reward. Defined by MX.
member_guidStringThe unique identifier for the member associated with the reward. Defined by MX.
unit_typeString (enumerated)The units in which the balance is given, for example, MILES or POINTS.
user_guidStringThe unique identifier for the user associated with the reward. Defined by MX.

Balance Types

Balance typeDefinition
BALANCEThe reward balance.
BALANCE_TO_LEVELThe balance required to reach a reward level.
BALANCE_TO_REWARDThe balance required to qualify for a reward.
EXPIRING_BALANCEThe reward balance that will be expiring.
TOTAL_BALANCEThe total reward balance available.

Unit Types

Unit type
MILES
POINTS
SEGMENTS
DOLLARS

Fetch Rewards

Calling this endpoint initiates an aggregation-type event which will gather the member's rewards information, as well as account and transaction information.

Rewards data is also gathered with Atrium's daily background aggregations.

warning

This endpoint can trigger multi-factor authentication. It is therefore important that the end user be present when fetching rewards.

Endpoint: POST /users/{user_guid}/members/{member_guid}/fetch_rewards

Request
Response
Language:shell

_10
$ curl -i -X POST 'https://vestibule.mx.com/users/{user_guid}/members/{member_guid}/fetch_rewards' \
_10
-H 'Accept: application/vnd.mx.atrium.beta+json' \
_10
-H 'Content-Type: application/json' \
_10
-H 'MX-API-Key: {mx_api_key}' \
_10
-H 'MX-Client-ID: {mx_client_id}'

List Rewards

Use this endpoint to list all the rewards associated with a specified member.

Endpoint: GET /users/{user_guid}/members/{member_guid}/rewards

Request
Response
Language:shell

_10
$ curl -i -X GET 'https://vestibule.mx.com/users/{user_guid}/members/{member_guid}/rewards' \
_10
-H 'Accept: application/vnd.mx.atrium.beta+json' \
_10
-H 'MX-API-Key: {mx_api_key}' \
_10
-H 'MX-Client-ID: {mx_client_id}'

Read a Reward

Use this endpoint to read a specific reward based on its unique GUID.

Endpoint: GET /users/{user_guid}/members/{member_guid}/rewards/{reward_guid}

Request
Response
Language:shell

_10
$ curl -i -X GET 'https://vestibule.mx.com/users/{user_guid}/members/{member_guid}/rewards/{reward_guid}' \
_10
-H 'Accept: application/vnd.mx.atrium.beta+json' \
_10
-H 'MX-API-Key: {mx_api_key}' \
_10
-H 'MX-Client-ID: {mx_client_id}'