Validate Credentials

Validate Credentials

Purpose

Validate Credentials returns whether your current PartnerCode and AuthToken is valid or not. If it’s invalid, most of the calls to the API are going to fail.

LIVE URL:

https://api.thesslstore.com/rest/health/validate/

SANDBOX URL:

https://sandbox-wbapi.thesslstore.com/rest/health/validate/

HTTP VERB

POST

PARAMETERS

JSON :
Content-type: application/json; charset=utf-8;

{
	"PartnerCode":"String content",
	"AuthToken":"String content",
	"ReplayToken":"String content",
	"UserAgent":"String content"
}

XML:
Content-type: application/xml; charset=utf-8;

<AuthRequest>
<PartnerCode>String content</PartnerCode>
<AuthToken>String content</AuthToken>
<ReplayToken>String content</ReplayToken>
<UserAgent>String content</UserAgent>
</AuthRequest>

Response
JSON :

{
	"isError":true,
	"Message":["String content"],
	"Timestamp":"String content",
	"ReplayToken":"String content",
	"InvokingPartnerCode":"String content"
}

XML:

<AuthResponse>
<isError>true</isError>
<Message>
<string>String content</string>
<string>String content</string>
</Message>
<Timestamp>String content</Timestamp>
<ReplayToken>String content</ReplayToken>
<InvokingPartnerCode>String content</InvokingPartnerCode>
</AuthResponse>

Fields Explanation
• R – Required
• O – Optional
• I – Ignore (not applicable)

NAME FROM Field Req. Type Description
AuthRequest.AuthToken Request R String This is an alpha-numeric token code provided to you by thesslstore.com. It is required in all requests.
AuthRequest.PartnerCode Request R String This is an alpha-numeric code provided to you by thesslstore.com. It is required in all requests.
AuthRequest.ReplayToken Request O String This is an alpha-numeric code provided by you in order request and thesslstore.com sent back in request.
AuthRequest.UserAgent Request O String User Agent to identify the request coming from.
AuthResponse.isError Response N/A Boolean Returns False/true according to errorstatus into the response.
AuthResponse.Message Response N/A String The Message given into the response.
AuthResponse.Timestamp Response N/A Date The Date and time when user gets the response.
A date timestamp used in a variety of contexts. Note that the XML format is: YYYY-DD-MMTHH:MM:SS:000Z (for example, 2001-01-01T24:00:00:000Z is for Jan 1, 2001 at midnight).
AuthResponse.ReplayToken Response N/A String The value of the ReplayToken which provide by you in Order request.
AuthResponse.InvokingPartnerCode Response N/A String This is an alpha-numeric code provided to you by thesslstore.com. It is required in all requests.