Skip to end of metadata
Go to start of metadata

You are viewing an old version of this content. View the current version.

Compare with Current View Version History

« Previous Version 5 Next »

Endpoints

We'll have two endpoints:

  • REST (GET/POST): /services/rest/user/creditBalance?username=[]&password=[]

What information to return?

For the REST endpoint (JSON)

If query is ok:

{
    "creditBalance": "100",
    "status": "0",
}

 

If query invalid:

{
 "status": <errorStatusCode>,
}

E.g.  for invalid login/password it will return status: 3 meaning "Authentication failed"

  • No labels