API Reference
cURL
curl --request GET \ --url https://api.flatpeak.com/connect/tariff/token \ --header 'Authorization: Bearer <token>'
{ "id": "cot_65e0839faca22517d5d51cd5", "object": "connect_token", "live_mode": true, "customer_id": "cus_65e421d1daa4a24082b4f590", "customer_reference_id": "CUS0123456789", "location_id": "loc_641b90b758fb8e6293716e40", "location_reference_id": "LOC0123456789", "is_tariff_processed": true, "complete_action": "SAVE", "time_created": "2023-05-05T18:37:27Z", "time_expiry": "2023-12-28T03:00:00Z" }
To start requesting your customer’s tariff rates from this API, you need to exchange the connect_token for a location_id.
connect_token
location_id
Authenticate with bearer_token you obtained from /login endpoint.
bearer_token
FlatPeak Connect completion token.
"cot_65e0839faca22517d5d51cd5"
Example response
The response is of type object.
object
Was this page helpful?