Parameters
| Property | Type | Required | Description |
|---|---|---|---|
| cardId | String | No | Identifier for the selected loyalty card |
| merchantName | String | No | Name of the card’s merchant |
| cardColor | String | No | Gradient color as two hex values separated by ; (e.g. #033397;#011131) |
| cardLogo | String | No | Download URL for the card’s logo image |
| clearSelectedState | Boolean | Yes | true = no card selected or deleted · false = card actively selected |
| success | Function | No | Callback on success |
| fail | Function | No | Callback on failure |
Success Callback
| Property | Type | Description |
|---|---|---|
| success | Boolean | Query success status |
| resultCode | String | 0 success · 1000 invalid params · 1002 internal error |
| resultMessage | String | Human-readable status message |