Create redeemable gift codes that grant subscription benefits (e.g. 1 month, 1 year, lifetime). Each code can be used once to activate benefits.
curl --request POST \
--url https://api.fluxer.app/v1/admin/codes/gift \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"count": 50,
"product_type": "gift_1_month"
}
'{
"codes": [
"<string>"
]
}Admin API key: Authorization: Admin <token>. Only valid for /admin/* endpoints.
Success
curl --request POST \
--url https://api.fluxer.app/v1/admin/codes/gift \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"count": 50,
"product_type": "gift_1_month"
}
'{
"codes": [
"<string>"
]
}