Skip to main content
GET
/
tariffs
/
elements
List tariffs
curl --request GET \
  --url https://api.flatpeak.com/tariffs/elements \
  --header 'Authorization: Bearer <token>'

Authorizations

Authorization
string
header
required

Authenticate with bearer_token you obtained from /login endpoint.

Query Parameters

type
string

Filter by tariff type, supported values are COMMODITY and NON_COMMODITY.

Example:

"COMMODITY"

location_id
string
required

Filter by Flatpeak Location ID.

Example:

"loc_641b90b758fb8e6293716e40"

Response

Example response

object
string
required

Represents the object’s type. i.e. list.

Example:

"list"

url
string
required

Represents the URL slug for the object.

Example:

"/tariffs"

has_more
boolean
default:false
required

Is set to true if more objects are available.

data
TariffElementNew · object[]