Categories
Uncategorized

Authenticating

This section details how to log on and log off from the Pay as you Track API.

Logging on

Necessary before any subsequent call to the API. Look for a return of “ok” and a GUID in the “ticketid”. Any previously allocated tickets for these login credentials will expired. This means you cannot use the same authentication details more than once.

Query Parameters
ParameterValueRequired
opAuthenticateYes
subopLoginYes
clientname{LEAVE BLANK}Yes
email{email}Yes
password{password}Yes
Response
{
"version":"0.6"
,"reqId":"0"
,"status":"ok"
,"sig":"-685892104"
,"ticketid":"16E59D20-5FFF-4D9B-99D2-67C071E26483"
}

Logging off

This is not strictly necessary but good practice. Look for “ok” in the response. The authentication ticket will be immediately expired and cannot be reused.

Query Parameters
ParameterValueRequired
opAuthenticateYes
subopLogoutYes
ticket{ticket}Yes
Response
{
"version":"0.6"
,"reqId":"0"
,"status":"ok"
,"sig":"-685892104"
,"value":""
}

Next: Contents