Generic Redemption APIs
Here is the skeleton of APIs, Xoxoday requires, whilst communicating with your point system.
Xoxoday can support varying API designs with few restrictions.
Should be REST APIs.
Content-type should be JSON.
Should be HTTPS
Use these API Skeletons to design your APIs.
Fetch Redemption Point Balance
Xoxoday will use this API to fetch a user’s points from your point system.
Request:
Method | URL |
GET/POST | https://<3rd-party-api-url-for-fetch-points> |
Params | Values |
unique_id* auth_token* | Unique identifier of a user Some authorization value to successfully allow the request from xoxoday to your system. Authorization can be but not limited to hash, Basic auth, Bearer token |
* Key name can be different, there’s no restriction
Request Body:
Sample Response:
* This is just a sample response, it can vary according to your API design.
Update Redemption Transaction
Xoxoday will use this API to update a user’s points in your point system.
Request:
Method | URL |
POST/PUT/PATCH | https://<3rd-party-api-url-for-update-points> |
Params | Values |
unique_id* auth_token* total_points_redeemed* total_points_added* | Unique identifier of a user Some authorization value to successfully allow the request from Xoxoday to your system. Authorization can be but not limited to hash, Basic auth, Bearer token, etc. |
* Key name can be different, there’s no restriction
Request Body:
Sample Response:
* This is just a sample response, it can vary according to your API design.
Last updated