How To buy a UniSpend Product
To programmatically buy a Unispend Product with the Chimoney API ;
- Initiate chimoney with this endpoint
{
"chimoneys": [
{
valueInUSD: 100,
type: "ryProducts",
email: "[email protected]",
redeemData: {
marketplace: "AMAZON",
productId: "B08F5MXVYL",
productName: "Amazon Fire HD 10 Kids Pro tablet, 10.1",
},
}
],
}
-
Then set
enabledToRedeem
array toryProducts
details including productId and name. This will allow you to buy aUnispend product
. -
Then call the redeemAny endpoint to complete the process.