Skip to main content
Get Balance API

All about Get Balance API.

Admin avatar
Written by Admin
Updated over 2 months ago

Xoxoday will call your point balance API to fetch the end user’s point balance post SSO redirection. The API has to be built by the client so Xoxoday can consume it.

📘The request and response are for illustrative purposes and to help the client refer to a skeleton that Xoxoday deems acceptable.

🚧Note: Please ensure that you share your response in JSON format only, as our system does not support any other data types.

Headers

  1. application/JSON

Request

JSON (POST)

{ "unique_id":"DB123", "auth_token":"asdgfjhbsdlkjbasdlkjbadslkbdakasdhfjhfdb==" }

Schema

Parameters

Description

unique_id

Unique identifier of a user

auth_token

An authorisation value to successfully allow the request from Xoxoday to your system. This value is to be sent by the client during SSO redirection

Response

JSON

{ "status":"1", "data" : { "unique_id":"DB123", "points" : "400" } }

Schema

Parameters

Description

status

1 = success / 0 = failure

unique_id

Unique identifier of a user

points

Current points of a user

Did this answer your question?