Tan Code

Transaction function

Shows last 6 transactions which made at current sales system.

$client = new http\Client;
$request = new http\Client\Request;


$body = new http\Message\Body;
  'Content-Type' => 'application/xml',
  'Authorization' => 'Bearer {your token}'


$response = $client->getResponse();
echo $response->getBody();
OkHttpClient client = new OkHttpClient().newBuilder().build();

Request request = new Request.Builder()
  .method("GET", null)
  .addHeader("Content-Type", "application/xml")
  .addHeader("Authorization", "Bearer {your token}")

Response response = client.newCall(request).execute();
Method GET
Authorization Bearer XXXXXXXXXX
Content-Type application/xml
Parameters Type Required Description Example
limit string Yes Number of transactions
offset string Yes Number of to skip transactions
Parameters Type Description Example
code integer Code determines if request was successful or not 0
info string Description
requestId string Request ID
limit string Number of transactions
offset string Number of to skip transactions
list array Transactions
Response type
Parameters Response Description
code 0 Successful
1 Bad request
999 Internal error
info Successful
... Other descriptions