Palbase IAP · API
GET
/iap/coupons/{coupon_key}/codesList a coupon’s codes
A coupon's one-time codes: whom a message gave each to, who redeemed it. Accept: text/csv answers a file to hand out.
Called by your server, with the project's secret key.
Path
coupon_keystring · requiredThe coupon's key.curl
curl -X GET "https://<your-ref>.palbase.studio/iap/coupons/<coupon_key>/codes" \
-H "apikey: $PALBASE_SECRET_KEY"Responses
200The codes
400The request is malformed, or a field breaks a rule (the error names which)
401No key, not a key of this project, or a token that is not valid (the edge's answer)
403Not the project's secret key (`secret_key_required`)
404No such coupon (`coupon_not_found`)
503Temporarily unavailable; retrying is safe after Retry-After
defaultAn error: the envelope names it (`error`) and explains it (`error_description`).
Operation ListCouponCodes of iap's contract.