Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Endpoints

...

Endpoint

 

...

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

 

   <soapenv:Header/>
   <soapenv:Body>
      <ser:creditBalance>
         <username>?</username>
         <password>?</password>

   </soapenv:Body>
</soapenv:Envelope>

 

What information to return?

For the REST endpoint (JSON)

 

{

...

If query is ok:

Code Block
{
    "creditBalance": "100",
    "errorCode

    "status": "
-200
0",

}

 

...

If query invalid:

 

   <soap:Body>
         <return>            
            <creditBalance>100</creditBalance>
            <errorCode>-200</errorCode>         
         </return>
   </soap:Body>
</soap:Envelope>

 

...

Code Block
{
 "status": <errorStatusCode>,
}

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