cURL
curl --request POST \ --url https://api.oneofnone.io/v1/rewards/{id}/codes/{codeId}/redeem \ --header 'Content-Type: application/json' \ --header 'x-api-key: <api-key>' \ --data ' { "redeemedBy": "<string>", "orderId": "<string>", "externalOrderId": "<string>" } '
{ "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "rewardId": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "code": "<string>", "reservedFor": "<string>", "redeemedBy": "<string>", "redeemedAt": "<string>", "orderId": "<string>", "externalOrderId": "<string>", "createdAt": "<string>", "expiresAt": "<string>", "updatedAt": "<string>", "externalIds": { "shopify": { "discountId": "<string>", "codeId": "<string>", "syncedAt": "<string>", "error": "<string>" }, "stripe": { "discountId": "<string>", "codeId": "<string>", "syncedAt": "<string>", "error": "<string>" } } }
Documentation IndexFetch the complete documentation index at: https://docs.oneofnone.io/llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: https://docs.oneofnone.io/llms.txt
Use this file to discover all available pages before exploring further.
1 - 500
Successful response
available
reserved
redeemed
expired
revoked
Show child attributes