Get Configuration V2
This page explains how to fetch buy gift card configurations, including availability status, and supported payment methods.
Before creating a buy transaction, use this endpoint to get configuration details about the gift card marketplace.
It returns whether buying gift card is currently enabled on Prestmit and which payment methods are supported (e.g., Naira, Cedis)
π‘ Endpoint
GET /giftcard-trade/buy/config/v2
Use this to:
- Build your product selector or catalog view in your app.
- Confirm available payment currencies.
- Validate a user's choice before calculating payment.
π§ Understanding the Response
Below are the key fields in the response and what they mean:
| Field | Description |
|---|---|
enabled | A boolean value that tells you if the gift card buying feature is currently active. (true means enabled.) |
paymentMethods | A quick list of supported payment methods, such as ["NAIRA", "CEDIS"]. For instance, Naira means your Naira wallet will be debited. |
paymentMethodsAvailability | A detailed object showing all possible payment methods and their availability (true or false). Includes Naira and Cedis. |
paymentMethodsAll | A detailed object showing all possible payment methods and their availability (true or false). Includes Naira and Cedis. |
availableGiftCards | A catalog of all the gift cards that can be purchased. Each card includes information like title, price range, image, regions, and currency. |
π§Ύ Sample Response
{
"enabled": false,
"paymentMethods": [
"NAIRA",
"CEDIS"
],
"paymentMethodsAvailability": {
"NAIRA": true,
"CEDIS": true
},
"paymentMethodsAll": {
"NAIRA": true,
"CEDIS": true
},
"countries": [
{
"name": "Global",
"code": "gl",
"flag": "π",
"currency": {
"currency": "Global",
"symbol": "$",
"code": "glc"
}
}
]
}Tip:
Always use the enabled flag and paymentMethods data to control what your users see dynamically in your product selector.
If buying is disabled, you can temporarily hide or disable the buy feature in your interface.
Updated 4 days ago
Whatβs Next
Next... let's go through the process of creating a buy gift card transaction over the API.