Process redemption execution using role-based detection. BUSINESS CRITICAL - handles real financial transactions with automatic authentication context detection. Supports user, business, and admin redemption processing.
PERS-api docs (2.0.5)
https://docs.pers.ninja/_mock/swagger/
https://api.pers.ninja/v2/
- Mock serverhttps://docs.pers.ninja/_mock/swagger/redemption-redeems 
- https://api.pers.ninja/v2/redemption-redeems 
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
  https://docs.pers.ninja/_mock/swagger/redemption-redeems \
  -H 'Content-Type: application/json' \
  -H 'x-project-key: YOUR_API_KEY_HERE' \
  -d '{
    "redemptionId": "string",
    "businessId": "string"
  }'Redemption executed successfully
The country code of the user redeeming the redemption
The status of the redemption redeem
The anonymized IP address of the user redeeming the redemption
The date and time when processing of the redemption redeem started
The date and time when processing of the redemption redeem was last updated
Transaction token contract id, this is the blockchain contract id of the token
Trigger process type
Trigger process id, this is the id of the entity that triggered the transaction if applicable (e.g. CampaignUserClaim id)
Transaction status
Sender entity ID (polymorphic reference)
Sender entity type (user, business, system etc.)
Recipient entity ID (polymorphic reference)
Current status of the transaction
Prepared transaction data ready for signing (if applicable)
{ "redeem": { "id": "string", "userId": "string", "redemptionId": "string", "userCountryCode": "string", "status": "PENDING", "anonymizedIpAddress": "string", "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z", "failureReason": "string" }, "senderTransaction": { "transaction": { … }, "transactionStatus": "created", "signingData": {}, "actionable": { … }, "walletSigningStatus": "string" } }
Request
Get redemption redeems with comprehensive filtering options: - redemptionId: Filter by specific redemption (optional) - userId: Filter by specific user ID (admin only) - businessId: Filter by specific business ID (admin only)
Access Control: - Users: See only their own redemptions - Business: See only redemptions associated with their business account - Admin: Can filter by any combination of parameters or see all redemptions
Security Notes: - Users cannot access userId or businessId parameters (automatically filtered) - Business accounts automatically filter to their own businessId regardless of parameter - Admin has full access to all filtering options
- Mock serverhttps://docs.pers.ninja/_mock/swagger/redemption-redeems 
- https://api.pers.ninja/v2/redemption-redeems 
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
  'https://docs.pers.ninja/_mock/swagger/redemption-redeems?redemptionId=string&userId=string&businessId=string' \
  -H 'x-project-key: YOUR_API_KEY_HERE'Redemption redeems retrieved successfully
The status of the redemption redeem
The anonymized IP address of the user redeeming the redemption
The date and time when processing of the redemption redeem started
The date and time when processing of the redemption redeem was last updated
[ { "id": "string", "userId": "string", "redemptionId": "string", "userCountryCode": "string", "status": "PENDING", "anonymizedIpAddress": "string", "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z", "failureReason": "string" } ]
Request
Convenience endpoint for authenticated users to retrieve their own redemption redeems.
Equivalent to GET /redemption-redeems but with required authentication and automatic filtering to current user context.
Features:
- Automatic user context (no userId parameter needed)
- Optional redemption filtering
- Requires user authentication
- Simplified response structure
Usage Examples:
- GET /redemption-redeems/me (all redemptions for authenticated user)
- GET /redemption-redeems/me?redemptionId=123 (specific user redemption)
- Mock serverhttps://docs.pers.ninja/_mock/swagger/redemption-redeems/me 
- https://api.pers.ninja/v2/redemption-redeems/me 
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
  'https://docs.pers.ninja/_mock/swagger/redemption-redeems/me?redemptionId=string' \
  -H 'x-project-key: YOUR_API_KEY_HERE'User redemption redeems retrieved successfully
The status of the redemption redeem
The anonymized IP address of the user redeeming the redemption
The date and time when processing of the redemption redeem started
The date and time when processing of the redemption redeem was last updated
[ { "id": "string", "userId": "string", "redemptionId": "string", "userCountryCode": "string", "status": "PENDING", "anonymizedIpAddress": "string", "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z", "failureReason": "string" } ]
- Mock serverhttps://docs.pers.ninja/_mock/swagger/redemption-redeems/{id} 
- https://api.pers.ninja/v2/redemption-redeems/{id} 
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
  'https://docs.pers.ninja/_mock/swagger/redemption-redeems/{id}' \
  -H 'x-project-key: YOUR_API_KEY_HERE'Redemption redeem retrieved successfully
The status of the redemption redeem
The anonymized IP address of the user redeeming the redemption
The date and time when processing of the redemption redeem started
The date and time when processing of the redemption redeem was last updated
{ "id": "string", "userId": "string", "redemptionId": "string", "userCountryCode": "string", "status": "PENDING", "anonymizedIpAddress": "string", "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z", "failureReason": "string" }