Get card package level
Card products are associated with a specific card package: Standard, Essential and Premium. You can retrieve the package level for a specific card using the card query.
Retrieve card package level​
- Call the
RetrieveCardPackagequery (line 1). - Enter the
cardId(line 2). - Add
cardPackageto receive the card package level (line 4).
Query
Open in API Explorerquery RetrieveCardPackage {
card(cardId: "$YOUR_CARD_ID") {
id
cardPackage
}
}
Payload
- The response includes the
cardPackage(line 4), which isPremium.
{
"data": {
"card": {
"id": "$YOUR_CARD_ID",
"cardPackage": Premium
}
}
}