put https://api-sandbox.setel.com/v1/loyalty/cards
This API endpoint activates a Mesra card for the user.
Successful response payload data
Parameter name | Data type | Description |
---|---|---|
id | string | The ID of the Mesra membership. |
cardNumber | string | The Mesra card number. |
userId | string | The ID of the Setel user. |
type | string | Determines if the card type is a company card or consumer card .Company card can only grant points to consumer cards. Consumer card can only accumulate and redeem points. |
status | string | The Mesra card status. Status: active - Can earn and redeem pointsissued - Can earn points but cannot redeemtemporarily_frozen - Can earn points but cannot redeemfrozen - Cannot earn or redeem points |
isActive | boolean | Determines if the card is activated. Inactive cards are allowed to accumulate points but only active cards can redeem points. |
isPointEarningEnabled | boolean | Determines if the card can earn points.false - Card cannot earn pointstrue - Card can earn pointsDefault value is true . |
isPointRedemptionEnabled | boolean | Determines if the card can redeem points.false - Card cannot redeem pointstrue - Card can redeem pointsDefault value is true . |
pointBalance | string | The remaining balance of loyalty points. |