Some merchants have both variable and stocked gift card offers. Please determine which type of offer you are looking to purchase based on pricing and total volumes.
Offer object from either the getOfferQuote or getMerchants query, you can determine stock availability.
- If
hasStockInfois true, thestockInfofield will display a list of all available denominations that are currently in stock. - If
hasStockInfois false, any value denominations in theofferRatesdenominationsfield will be in stock. - If the
denominationsTypeis"VARIABLE", you can purchase any value between the minimum and maximum denomination. stockInfois a list of available denominations for a specific offer. This field object is only available if the offer’s hasStockInfo is true. This requires Fluz to confirm the inventory. Keep in mind, the response time varies by vendors. The stockInfo field will conditionally return information depending on theVARIABLEorFIXEDtype. To query for stockInfo, you will need to utilize an inline fragment using the... onkeyword. This will returnStockInfoVariableTypeif the denomination type isVARIABLEorStockInfoFixedTypeif the denomination type isFIXED. In your getOfferQuote and getMerchants queries, you will have to include both StockInfoVariableType and StockInfoFixedType fragments. For more detail, refer to the How the GraphQL API works article.
JSON
- If the
denominationsTypeis"FIXED", you will either:- If
hasStockInfois true, purchase a specific value in thestockInfofield. It will return eitherStockInfoVariableTypeorStockInfoFixedTypeconditionally depending on thedenominationsType.
StockInfoVariableTypeStockInfoFixedType- If
hasStockInfois false, purchase a specific value in theofferRatesdenominationsfield.
- If