Skip to main content
POST
/
prices
/
{id}
Retrieve a price
curl --request POST \
  --url https://api.flatpeak.com/prices/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "start_time": "2023-06-15T09:00:00Z",
  "end_time": "2023-06-15T23:00:00Z",
  "tariff_direction": "IMPORT"
}'
{
  "id": "prs_65e42cdd73e9f861edda35d7",
  "object": "price",
  "live_mode": true,
  "location_id": "loc_65e42ce4d3b813479b252160",
  "location_timezone": "Europe/London",
  "currency_code": "EUR",
  "tariff_direction": "IMPORT",
  "last_updated": "2022-05-24T14:15:22Z",
  "request": {
    "tariff_direction": "IMPORT",
    "start_time": "2022-05-24T14:15:22Z",
    "end_time": "2022-05-24T16:15:22Z"
  },
  "data": [
    {
      "valid_from": "2022-12-28T01:00:00Z",
      "valid_to": "2022-12-28T02:30:00Z",
      "price": {
        "value": 4.998,
        "confidence": 1
      }
    }
  ],
  "time_created": "2022-05-24T15:15:22Z",
  "account_id": "acc_661677911f2197045e6cf1b1"
}

Authorizations

Authorization
string
header
required

Path Parameters

id
string
required
Example:

Body

application/json
end_time
string<date-time>
required
Example:
start_time
string<date-time>
Example:
tariff_direction
string
Example:

Response

200 - application/json
id
string
required
Example:
object
string
required
Example:
live_mode
boolean
required
location_id
string
required
Example:
location_timezone
string
required
Example:
currency_code
string
required
Example:
last_updated
string
required
Example:
request
object
required
account_id
string
required
Example:
tariff_direction
string
Example:
data
object[]
time_created
string<date-time>
Example: