curl --request POST \
--url https://api.oneofnone.io/v1/rewards/redeem \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"rewardId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"discountAmount": 1,
"orderTotal": 1,
"codeId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"grantId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"teamAppUserId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"orderId": "<string>",
"externalOrderId": "<string>",
"customerEmail": "jsmith@example.com",
"sessionId": "<string>",
"metadata": {}
}
'