Endpoints
...
Endpoint
...
- REST (GET/POST): /services/rest/user/creditBalance?username=[]&password=[]
- SOAP: /services/ws/user?wsdl (method: creditBalance)
<soapenv:Envelope xmlns:soapenv=
"http://schemas.xmlsoap.org/soap/envelope/"
xmlns:ser=
"http://server.submission.mc5.smspl.com/"
>
<soapenv:Header/>
<soapenv:Body>
<username>?</username>
<password>?</password>
</soapenv:Envelope>
What information to return?
For the REST endpoint (JSON)
If query is ok:
{
Code Block |
---|
{ "creditBalance": "100", |
"status": "0", |
} |
If query invalid:
Code Block |
---|
{ "status": <errorStatusCode>, } |
E.g. for invalid login/password it will return status: 3 meaning "Authentication failed"
For the SOAP endpoint (XML):
for valid request:
<soap:Body> < return > <creditBalance> 100 </creditBalance> <status>0 </status> </ return > </soap:Body> </soap:Envelope> |
and for invalid request:
"
http://server.submission.mc5.smspl.com/"> <return> <status>3</status> <!-- 3 is an example value, it might have different value --> </return> </ns1:creditBalanceResponse> </soap:Body> </soap:Envelope>