Record a benefit claim
POST
Call this after you grant a benefit so future checks can see it.
apiKeyheader
AuthorizationBearer <token>Your secret API key, for example az_live_.... Use az_test_... keys against the sandbox.
application/json- body
identity*Everything you know about the person making the request. Send as much as you can.
type*BenefitTypeValue in
"free_trial""credit""coupon""referral"checkId?stringThe check that approved this benefit.
amount?numberThe benefit was recorded.
application/json- response
id*stringtype*BenefitTypeValue in
"free_trial""credit""coupon""referral"amount?numbercheckId?stringclaimedAt*stringFormat
date-timecurl -X POST 'https://api.abusezero.com/v1/benefits' \ -H 'Content-Type: application/json' \ -d '{ "identity": {}, "type": "free_trial"}'Example Response
{ "id": "string", "type": "free_trial", "amount": 0, "checkId": "string", "claimedAt": "2019-08-24T14:15:22Z"}