Thy Street (0.0.2)

Download OpenAPI specification:Download

These are API's to easily manage your Thy Street device public pages. Thy Street APIs are completely RESTful and all our responses are returned in JSON.

Authentication

thystreetAuth

Base64 format of api_key:api_secret

Security Scheme Type HTTP
HTTP Authorization Scheme basic

Device

Toggle your device tariff when your device goes online using this api.

Authorizations:
Request Body schema: application/json
deviceId
required
string

Device ID

tariff
required
boolean

Toggle device tariff on public page

Responses

Request samples

Content type
application/json
{
  • "tariff": true,
  • "deviceId": "deviceId"
}

generateToken

Authorizations:
path Parameters
deviceId
required
string

Responses

setToken

Authorizations:
Request Body schema: application/json
deviceId
required
string

Device ID

token
required
boolean 6 characters

Set device token

Responses

Request samples

Content type
application/json
{
  • "deviceId": "deviceId",
  • "token": true
}

Order

getOrderById

Authorizations:
path Parameters
orderToken
required
string
Example: thystreet-FucAdwCipV6nLlVsesnu

This is the id recieved from the qrcode or on your webhook

Responses

setStatus

Authorizations:
path Parameters
orderToken
required
string
Example: thystreet-FucAdwCipV6nLlVsesnu

This is the id recieved from the qrcode or on your webhook

Request Body schema: application/json
status
required
string
Enum: "CONFIRMED" "PENDING" "COMPLETED" "FAILED"

Set order status

Responses

Request samples

Content type
application/json
{
  • "status": "CONFIRMED"
}