For the complete documentation index, see llms.txt. This page is also available as Markdown.

Mileage

A benefit point system accumulated when purchasing or using services at the shopping mall. It accrues at a set rate each time a customer makes a purchase, and can later be redeemed for special benefits or used toward future purchases. Mileage is used to provide customers with additional benefits, increasing loyalty and enhancing the shopping experience.


Key Features

  • Purchase Products with Mileage

    • Products purchased at the X2BEE shopping mall can be paid for using held mileage.

  • Mileage Accrual and Validity Period

    • Mileage can be accrued through various methods, and each accrual has a validity period.

      • Base accrual, product reviews, additional accrual by member grade: valid for 1 year

      • Promotion, customer compensation, refund, event accrual: valid for 30 days

  • Mileage Usage Priority

    • When using mileage, entries closest to their expiration date are used first, followed by entries with the smallest remaining balance.

Process Definition

1

Get Mileage Usage/Accrual List

Allows members to check their mileage usage and accrual history through the mileage usage/accrual list lookup. The lookup range can span up to 3 months at a time.

2

Get Mileage Balance Summary

Retrieves a summary of the member's mileage balance status. This includes the total mileage held, along with the mileage set to expire today and this month.

3

Get Available Mileage

The Get Available Mileage API is a module-only API that cannot be called directly from FO, used to retrieve the usable mileage amount for a specific member.

4

Process Mileage Usage/Accrual

The Process Mileage Usage/Accrual API is a module-only API that cannot be called directly from FO. It processes mileage usage and accrual requests, and manages the mileage history and mileage status.

5

Accrual

To calculate the mileage expiration date and time, the expiration period is retrieved from the mileage reference information.

API Function List

API
Description
Server
Method
Remarks

Get Available Mileage

Before requesting mileage usage processing, the requesting module can use the Get Available Mileage API to check the member's usable remaining mileage.

Member

GET

Get Mileage Balance Summary

Summarizes all held mileage, providing an at-a-glance view of the member's mileage status.

Member

GET

Process Mileage Usage/Accrual

Allows members to purchase and receive discounts on products using mileage, and provides mileage accrual when certain criteria are met.

Member

POST

Get Mileage Usage/Accrual List

Retrieves the usage or accrual history of held mileage. The lookup range can span up to 3 months at a time.

Member

GET

Definition of Terms

Term
Description

Mileage

Points that can be used instead of cash when purchasing items at the X2BEE shopping mall. Mileage can be accrued through various means, including product purchases, product review submissions, and event participation, and the validity period of the mileage differs depending on the accrual method.

Other Notes

  • Process Mileage Usage/Accrual

    • Mileage usage and accrual processing is a module-only API that cannot be used directly from FO.

  • Mileage Accrual

    • When mileage is accrued, the expiration period is looked up in the mileage reference information (ET_MILG_STD_INFO) table based on the accrual classification code (CM016) and accrual target code (CM017), and the mileage validity period is set accordingly.

    • When mileage is accrued, a history record is added to the ET_MBR_AST_MGR_HIST table and accumulated in the TOT_AMT column of the ME_MBR_AST_SUM table.

    • When mileage is accrued, the asset management number and asset management detail number are managed using unique values identifiable by each module's process.

    • Mileage accrued from product reviews is capped at 3,000 mileage per month and 36,000 mileage per year.

  • Mileage Usage

    • Mileage can be used as long as the total usable accrued mileage is greater than the amount to be used.

    • When mileage is used, a history record is added to the ET_MBR_AST_MGR_HIST table and accumulated in the USE_AMT column of the ME_MBR_AST_SUM table.

    • When mileage is used, the BAL_AMT value of the accrued mileage in the ET_MBR_AST_MGR_HIST table is updated by deducting the used amount, and a usage history record is inserted.

  • Mileage Usage Priority

    • When using mileage, there is a priority order among accrued mileage entries.

    • Mileage closest to its expiration date is used first > mileage with the smallest remaining amount is used next.

  • Unusable Mileage

    • The following mileage cannot be used:

      • Mileage in the ET_MBR_AST_MGR_HIST table where the BAL_AMT amount is 0

      • Mileage in the same table where APLY_YN is N

      • Mileage whose validity period has expired