Path parameters
-
The product ID
Query parameters
-
locale string
Descriptions of products can be localized.
Minimum length is
2
, maximum length is5
. Format should match the following pattern:^(?:[a-z]{2}|[a-z]{2}-[A-Z]{2})$
. Values arede
,en
,es
,fr
,hi
,it
,ja
,pt
,pt-BR
, orzh-CN
. Default value isen
.
GET /v2/products/{id}
curl \
-X GET https://api.sandbox.squake.earth/v2/products/{id} \
-H "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
# Headers
# Payload
{
"id": "product_2rsg35sfsdf",
"locations": [
{
"country": "DE",
"sub_region": "150",
"region": "155"
}
],
"certifications": [
"European Biochar Certification"
],
"title": "string",
"description": "string",
"sdgs": [
7
],
"files": [
{
"id": "file_asfg454s25",
"filename": "string",
"purpose": "confirmation_document",
"size": 42,
"type": "pdf",
"download_url": "https://example.com",
"notification": "string"
}
],
"prices": [
{
"id": "price_1MMroL2eZvKYlo2CxbxAACvb",
"product": "prod_N760vOJBvdEDY8",
"unit_amount": 2500,
"carbon_unit": "tonne",
"currency": "EUR",
"valid_from": "2023-01-28"
}
],
"categories": [
{
"code": "forestry_and_land_use",
"title": "Forestry and Land Use"
}
],
"impact_types": [
{
"code": "avoidance",
"title": "Avoidance"
}
],
"classes": [
{
"code": "technology_based",
"title": "Technology based"
}
]
}
Response examples (401)
# Headers
SQUAKE-Request-Id: req_70394c00-728e-4d70-90bc-2b589c9ebdf8
# Payload
[
{
"code": "field_validation_error",
"detail": "string",
"source": {
"id": "string",
"attribute": "string",
"model": "string"
}
}
]
Response examples (404)
# Headers
SQUAKE-Request-Id: req_70394c00-728e-4d70-90bc-2b589c9ebdf8
# Payload
[
{
"code": "field_validation_error",
"detail": "string",
"source": {
"id": "string",
"attribute": "string",
"model": "string"
}
}
]