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 2 Next »

Endpoints

We'll have two endpoints:

  • 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>
      </ser:creditBalance>
   </soapenv:Body>
</soapenv:Envelope>

 

What information to return?

For the REST endpoint (JSON)

 

{
    "creditBalance": "100",
    "errorCode": "-200",
}

 

For the SOAP endpoint (XML):

 

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

 

errorCode and creditBalance are exclusive (only one field is present in the actual response)

  • No labels