GET
/
connect
/
tariff
/
token
curl --request GET \
  --url https://api.flatpeak.com/connect/tariff/token \
  --header 'Authorization: Bearer <token>'
{
  "id": "cot_65e0839faca22517d5d51cd5",
  "object": "connect_token",
  "live_mode": true,
  "location_id": "loc_641b90b758fb8e6293716e40",
  "location_reference_id": "LOC0123456789",
  "customer_id": "cus_65e421d1daa4a24082b4f590",
  "customer_reference_id": "CUS0123456789",
  "time_created": "2023-05-05T18:37:27Z",
  "time_expiry": "2023-12-28T03:00:00Z"
}

Authorizations

Authorization
string
headerrequired

Authenticate with bearer_token you obtained from /login endpoint.

Query Parameters

connect_token
string

FlatPeak Connect completion token.

Response

200 - application/json
id
string
required

FlatPeak connect_token id.

object
string
required

FlatPeak object name, i.e. connect_token.

live_mode
boolean
required

Set to true when object is in live mode.

location_id
string
required

FlatPeak location id.

location_reference_id
string
required

An identifier for a location from your system.

customer_id
string
required

FlatPeak customer ID.

customer_reference_id
string
required

An ID for the customer from your system.

time_created
string
required

Time when the object was created, in UTC.

time_expiry
string
required

Time when token will expire. Expired tokens cannot be claimed.