get https://api-sandbox.setel.com/v1/payments/payment-methods
This API endpoint returns the list of a user's payment methods.
Successful response payload data
Parameter | Type | Description |
---|---|---|
id | string | The ID of the payment method. |
isLastUsed | boolean | Indicates if this payment method was the latest payment method used. |
userId | string | The user ID registered in Setel's system. |
family | string | The family the payment method belongs to (wallet, card, smartpay, etc.). |
type | string | The payment method type (wallet_setel , smartpay , card_visa , etc.). |
card | object | The object that stores card information. |
Visa/Mastercard object definitions
Parameter | Type | Description |
---|---|---|
lastFourDigits | string | The last four digits of the card |
brand | string | The brand of the card (visa, master, etc). |
issuing | string | The bank that issued the card. |
cardId | string | The ID of the card. |
SmartPay card object definitions
Parameter | Type | Description |
---|---|---|
cardNumber | string | The SmartPay card number. |
cardType | string | The SmartPay card type. |
expiryDate | string | The expiry date of the card. |
mesraPoints | boolean | Determines if the card can earn Mesra points. |
Mesra card object definitions
Parameter | Type | Description |
---|---|---|
cardNumber | string | The loyalty card number. |
pointBalance | string | The loyalty point balance. |
type | string | Determines if the card type is a company or individual 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: issued active frozen temporarilyFrozen |
issuedBy | string | The company that issued the card. Possible values: setel petronas |
isActive | boolean | Determines if the card is activated. Inactive cards are allowed to accumulate points but only active cards can redeem points. |