Perform a Calculation including a Price Quote
Convenience all-in-one endpoint to perform carbon calculation and pricing. A purchase can be performed via API or SQUAKE's checkout page using the returned payment_link
.
All features supported by either the /calculations
or /pricing
endpoint are equally valid for this combined endpoint. Please read the respective descriptions for details.
If you need only either pricing or carbon emissions, SQUAKE advises using the specific endpoints for lower latency and reduced implementation complexity.
Body
-
expand array[string]
If you choose to expand on e.g. "items", SQUAKE returns emissions per each item separately (in addition to a total value).
Values are
items
,product
, orprice
. -
Any of: Accommodation object Air-Freight object Bus object Car object Coffee-Production object Event object Expenditure object Ferry object Flight object Hotel object Inland-Waterways object Logistics-Site object Logistics object Private-Jet object Rail-Freight object Road-Freight object Sea-Freight object Train object Van objectAccommodation considers only activities related to short-term rentals, lodging, sublets, etc.
SQUAKE has country-specific values for most parameters. If the country is omitted, default values will apply.
Hide attributes Show attributes
-
Value is
accommodation
. -
Value is
SQUAKE
. Default value isSQUAKE
. -
external_reference string
A unique identifier that helps you link the resulting emissions to the requested item. Especially useful if multiple items are requested since SQUAKE cannot guarantee to keep the same order. The maximum length is 128 characters.
Maximum length is
128
. -
Required if start and end dates are omitted; else this is ignored.
Minimum value is
1
. -
The format is ISO 8601 Date,
YYYY-MM-DD
. Required if season-specific methodology shall be used, or number of nights is omitted. -
The format is ISO 8601 Date,
YYYY-MM-DD
. Required if season-specific methodology shall be used, or number of nights is omitted. -
country string
Two-letter or three-letter code as defined in ISO 3166-1 alpha-2 and alpha-3 respectively.
Minimum length is
2
, maximum length is3
. Format should match the following pattern:^[A-Z]{2,3}$
. -
The default value depends on the country.
Minimum value is
1
. -
The default value depends on the country.
Minimum value is
1
. -
sauna boolean
Default value is
false
. -
parking boolean
Default value is
true
. -
swimming_pool boolean
Default value is
false
. -
air_conditioner boolean
Default value is
false
. -
garage boolean
Default value is
false
.
If you have freight and don't know the type, you can use
Logistics
.Additional information may be returned in the response for
GLEC
The format is:"data": [ { "co2e_in_g": int, "co2e_emissions_wtw_in_g": int, "co2e_per_tonne_km_in_g": int, "tonne_km": int, "reporting_year": int, "transportation_mode": "string" } ]
Additional information may be returned in the response for
DIN-EN-16258
The format is:"data": [ { "energy_factor_ttw_in_MJ": int, "energy_factor_wtw_in_MJ": int, "ghg_emissions_ttw_in_g": int, "ghg_emissions_wtw_in_g": int } ]
Hide attributes Show attributes
-
Value is
air_freight
. -
Values are
DIN-EN-16258
orGLEC
. -
external_reference string
A unique identifier that helps you link the resulting emissions to the requested item. Especially useful if multiple items are requested since SQUAKE cannot guarantee to keep the same order. The maximum length is 128 characters.
Maximum length is
128
. -
SQUAKE will try to resolve the origin/destination regardless of its format. Ideally, for addresses use the Post standard, for airports use IATA/ICAO code (format:
^[A-Z]{3,4}$
, e.g."MUC"
), for other locations used in trade and transportation use UN/LOCODE codes (format:^[A-Z]{2}\W?[A-Z2-9]{3}$
, e.g."DEHAM"
). You can also pass lat/long (format:^[-+]?\d{1,3}\.\d{1,10}\s?,\s?[-+]?\d{1,3}\.\d{1,10}$
, e.g."+40.712,-74.006"
). -
SQUAKE will try to resolve the origin/destination regardless of its format. Ideally, for addresses use the Post standard, for airports use IATA/ICAO code (format:
^[A-Z]{3,4}$
, e.g."MUC"
), for other locations used in trade and transportation use UN/LOCODE codes (format:^[A-Z]{2}\W?[A-Z2-9]{3}$
, e.g."DEHAM"
). You can also pass lat/long (format:^[-+]?\d{1,3}\.\d{1,10}\s?,\s?[-+]?\d{1,3}\.\d{1,10}$
, e.g."+40.712,-74.006"
). -
Prioritized over
origin
anddestination
. If you don't have adistance_in_km
, you can useorigin
anddestination
and the distance will be automatically resolved. If you pass bothdistance_in_km
andorigin
/destination
, thendistance_in_km
will be used. -
plane_type string
Used for
DIN-EN-16258
andGLEC
.average
is the default forGLEC
and is only supported byGLEC
,belly_freighter
is the default forDIN-EN-16258
Values are
belly_freighter
,freighter
, oraverage
. -
energy_scope string
Used for
DIN-EN-16258
,CLEAN-CARGO
,CO2-EMISSIEFACTOREN-NL
,TIM
andGLEC
.Values are
ttw
orwtw
. Default value iswtw
.
The full list of operators supported by SQUAKE could be found here. If your operator is not supported, feel free to contact us.
Hide attributes Show attributes
-
Value is
bus
. -
Value is
SQUAKE
. -
external_reference string
A unique identifier that helps you link the resulting emissions to the requested item. Especially useful if multiple items are requested since SQUAKE cannot guarantee to keep the same order. The maximum length is 128 characters.
Maximum length is
128
. -
Prioritized over
origin
anddestination
. If you don't have adistance_in_km
, you can useorigin
anddestination
and the distance will be automatically resolved. If you pass bothdistance_in_km
andorigin
/destination
, thendistance_in_km
will be used. -
SQUAKE will try to resolve the origin/destination regardless of its format. Ideally, for addresses use the Post standard, for airports use IATA/ICAO code (format:
^[A-Z]{3,4}$
, e.g."MUC"
), for other locations used in trade and transportation use UN/LOCODE codes (format:^[A-Z]{2}\W?[A-Z2-9]{3}$
, e.g."DEHAM"
). You can also pass lat/long (format:^[-+]?\d{1,3}\.\d{1,10}\s?,\s?[-+]?\d{1,3}\.\d{1,10}$
, e.g."+40.712,-74.006"
). -
SQUAKE will try to resolve the origin/destination regardless of its format. Ideally, for addresses use the Post standard, for airports use IATA/ICAO code (format:
^[A-Z]{3,4}$
, e.g."MUC"
), for other locations used in trade and transportation use UN/LOCODE codes (format:^[A-Z]{2}\W?[A-Z2-9]{3}$
, e.g."DEHAM"
). You can also pass lat/long (format:^[-+]?\d{1,3}\.\d{1,10}\s?,\s?[-+]?\d{1,3}\.\d{1,10}$
, e.g."+40.712,-74.006"
). -
number_of_travelers integer
Minimum value is
1
. Default value is1
.
ACRISS takes fuel type, car type, and distance into consideration. If you have more details available, use
EU-EEA
andUS-EPA
methodologies for a more precise result.Hide attributes Show attributes
-
Value is
car
. -
US-EPA
is the methodology from the "United States Environmental Protection Agency".EU-EEA
is the methodology from the "European Energy Agency".ACRISS
methodology uses tank-to-wheel factors, therefore it might return 0 emissions for electric cars.Values are
ACRISS
,EU-EEA
,US-EPA
, orDEFRA
. -
external_reference string
A unique identifier that helps you link the resulting emissions to the requested item. Especially useful if multiple items are requested since SQUAKE cannot guarantee to keep the same order. The maximum length is 128 characters.
Maximum length is
128
. -
Prioritized over
origin
anddestination
. If you don't have adistance_in_km
, you can useorigin
anddestination
and the distance will be automatically resolved. If you pass bothdistance_in_km
andorigin
/destination
, thendistance_in_km
will be used. -
SQUAKE will try to resolve the origin/destination regardless of its format. Ideally, for addresses use the Post standard, for airports use IATA/ICAO code (format:
^[A-Z]{3,4}$
, e.g."MUC"
), for other locations used in trade and transportation use UN/LOCODE codes (format:^[A-Z]{2}\W?[A-Z2-9]{3}$
, e.g."DEHAM"
). You can also pass lat/long (format:^[-+]?\d{1,3}\.\d{1,10}\s?,\s?[-+]?\d{1,3}\.\d{1,10}$
, e.g."+40.712,-74.006"
). -
SQUAKE will try to resolve the origin/destination regardless of its format. Ideally, for addresses use the Post standard, for airports use IATA/ICAO code (format:
^[A-Z]{3,4}$
, e.g."MUC"
), for other locations used in trade and transportation use UN/LOCODE codes (format:^[A-Z]{2}\W?[A-Z2-9]{3}$
, e.g."DEHAM"
). You can also pass lat/long (format:^[-+]?\d{1,3}\.\d{1,10}\s?,\s?[-+]?\d{1,3}\.\d{1,10}$
, e.g."+40.712,-74.006"
). -
fuel_type string
ACRISS
acceptspetrol
,diesel
,hev
,phev
orelectricity
.US-EPA
acceptselectricity
,premium_gasoline
,regular_gasoline
,diesel
,natural_gas
,midgrade_gasoline
, orpropane
. The default value forACRISS
ispetrol
.DEFRA
acceptsdiesel
,petrol
,hev
,cng
,lpg
,phev
orelectricity
, with the default beingaverage
Values are
diesel
,petrol
,hybrid
,average
,electricity
,midgrade_gasoline
,natural_gas
,premium_gasoline
,regular_gasoline
,propane
,hev
,cng
,lpg
, orphev
. -
car_type string
Used for
DEFRA
. Defaults toaverage
Values are
mini
,supermini
,lower_medium
,upper_medium
,executive
,luxury
,sports
,dual_purpose_4x4
, ormpv
. -
manufacturer string
Used for
EU-EEA
andUS-EPA
. -
model string
Used for
EU-EEA
andUS-EPA
. -
model_year integer
Used for
EU-EEA
andUS-EPA
. -
epa_vehicle_size_class string
EPA size class has a specific division of car sizes according to
US-EPA
. -
specific_transmission string
Used for
US-EPA
. -
Used for
US-EPA
. -
epa_model_type_index integer
A specific index of a car model according to
US-EPA
. -
engine_cylinders integer
Used for
US-EPA
. -
acriss_car_type string
Used for
ACRISS
andDEFRA
. Available car types:C: Compact, D: Compact Elite, E: Economy, F: Fullsize, G: Fullsize Elite, H: Economy Elite, I: Intermediate, J: Intermediate Elite, L: Luxury, M: Mini, N: Mini Elite, P: Premium, R: Standard Elite, S: Standard, U: Premium Elite, W: Luxury Elite, X: Special, O - Oversize
Format should match the following pattern:
^[A-Z]{1}$
. Values areM
,N
,E
,H
,C
,D
,I
,J
,S
,R
,F
,G
,P
,U
,L
,W
,X
, orO
. Default value isE
. -
co2_grams_per_km number
Used for
BASIC
.Minimum value is
0
, maximum value is1000
. -
consumption_per_100_km number
Consumptions of fuel in liters. Used for
BASIC
. -
country string
Two-letter or three-letter code as defined in ISO 3166-1 alpha-2 and alpha-3 respectively.
Minimum length is
2
, maximum length is3
. Format should match the following pattern:^[A-Z]{2,3}$
. -
Used for
EU-EEA
. -
engine_capacity_in_cubic_cm number
Used for
EU-EEA
. -
sipp_car_type string
If
acriss_car_type
is not passed then SQUAKE will automatically resolve it using the SIPP code; used forACRISS
andDEFRA
. Mutually exclusive withpseudo_car_type
, only one can be given at the same time.Values are
CBAN
,CBAR
,CBMN
,CBMR
,CCAN
,CCAR
,CCMD
,CCMN
,CCMR
,CDAN
,CDAR
,CDMD
,CDMN
,CDMR
,CFAR
,CFMN
,CFMR
,CIMR
,CLMR
,CPAR
,CPMN
,CPMR
,CTAR
,CTMN
,CTMR
,CVAR
,CVMD
,CVMR
,CWAR
,CWMD
,CWMN
,CWMR
,CXAN
,CXAR
,CXMN
,CXMR
,EBAN
,EBAR
,EBMN
,EBMR
,ECAN
,ECAR
,ECMD
,ECMN
,ECMR
,EDAN
,EDAR
,EDMD
,EDMN
,EDMR
,EFAD
,EFAR
,EFMR
,EKMN
,ESAR
,ESMR
,ETAR
,ETMN
,ETMR
,EVMN
,EVMR
,EWMN
,EWMR
,EXAR
,EXMN
,EXMR
,FBAR
,FCAR
,FCMR
,FDAD
,FDAR
,FDMD
,FDMN
,FDMR
,FFAN
,FFAR
,FFMN
,FFMR
,FIAR
,FIMR
,FPAR
,FPMR
,FTAR
,FTMR
,FVAN
,FVAR
,FVMD
,FVMN
,FVMR
,FWAD
,FWAR
,FWMR
,FXAR
,FXMR
,GVAR
,GVMR
,IBAR
,IBMD
,IBMR
,ICAN
,ICAR
,ICMN
,ICMR
,IDAD
,IDAN
,IDAR
,IDMD
,IDMN
,IDMR
,IFAN
,IFAR
,IFMN
,IFMR
,IGMR
,IIMR
,IJAR
,IJMR
,ILMR
,IPMR
,ITAR
,ITMN
,ITMR
,IVAN
,IVAR
,IVMN
,IVMR
,IWAN
,IWAR
,IWMD
,IWMN
,IWMR
,IXAR
,IXMN
,IXMR
,JFAR
,LCAN
,LCAR
,LCMR
,LDAD
,LDAR
,LDMR
,LFAR
,LFMR
,LSAR
,LSMR
,LTAR
,LTMR
,LVAN
,LVAR
,LVMN
,LVMR
,LWAR
,LXAR
,MBAR
,MBMN
,MBMR
,MCAR
,MCMN
,MCMR
,MDAR
,MDMN
,MDMR
,MFMR
,MTAN
,MTMN
,MTMR
,MVAR
,MVMN
,MVMR
,MXAR
,MXMN
,MXMR
,NTAN
,NTMN
,PCAR
,PCMR
,PDAD
,PDAR
,PDMD
,PDMN
,PDMR
,PFAR
,PFMN
,PFMR
,PIAR
,PSAR
,PTAR
,PTMR
,PVAR
,PVMN
,PVMR
,PWAR
,PWMN
,PWMR
,PXAR
,PXMR
,RVMR
,SBAR
,SCAN
,SCAR
,SCMD
,SCMN
,SCMR
,SDAD
,SDAN
,SDAR
,SDMD
,SDMN
,SDMR
,SFAN
,SFAR
,SFMN
,SFMR
,STAR
,STMR
,SVAN
,SVAR
,SVMD
,SVMN
,SVMR
,SWAN
,SWAR
,SWMD
,SWMN
,SWMR
,SXMR
,XBAR
,XCAR
,XCMN
,XCMR
,XDAR
,XDMN
,XDMR
,XFAR
,XFMN
,XFMR
,XJAR
,XPMN
,XRAR
,XSAR
,XTAR
,XWAR
, orXXAR
. -
pseudo_car_type string
If neither
acriss_car_type
norsipp_car_type
are not passed, then SQUAKE will automatically resolve it using the Pseudo code; used forACRISS
. Mutually exclusive withsipp_car_type
, only one can be given at the same time.Values are
ACAR
,ACGO
,ACNV
,ACPG
,ACPR
,ACRS
,ADSL
,AEIG
,AELC
,AELT
,AETH
,AFWD
,AGRN
,AHYB
,AHYD
,ALLB
,ALLC
,ALLD
,ALMO
,AMAN
,AMCY
,AMFP
,AMNO
,AMTO
,ANIN
,AOFR
,APET
,APUP
,AREC
,ASEV
,ASIX
,ASPC
,ASPT
,ASUV
,ATRV
,AUTO
,AVAN
, orAWGN
.
Hide attributes Show attributes
-
Value is
coffee_production
. -
Value is
SQUAKE
. Default value isSQUAKE
. -
external_reference string
A unique identifier that helps you link the resulting emissions to the requested item. Especially useful if multiple items are requested since SQUAKE cannot guarantee to keep the same order. The maximum length is 128 characters.
Maximum length is
128
. -
country string
If the country specified is not found then
average
will be usedDefault value is
average
. -
organic boolean
Whether the coffee is organic or not.
Default value is
false
. -
Must be at least 1 gram
Minimum value is
1
. -
unit string
SQUAKE uses The International System of Units (SI), commonly referred to as "metric system".
Values are
tonne
,kilogram
, orgram
.
Use one of the available options for calculation depending on the available parameters.
Hide attributes Show attributes
-
Value is
event
. -
Value is
HCMI
. -
external_reference string
A unique identifier that helps you link the resulting emissions to the requested item. Especially useful if multiple items are requested since SQUAKE cannot guarantee to keep the same order. The maximum length is 128 characters.
Maximum length is
128
. -
stars integer(int32)
stars
is mutually exclusive withhotel_type
,stars
is prioritized overhotel_type
.Minimum value is
1
, maximum value is5
. -
Two-letter or three-letter code as defined in ISO 3166-1 alpha-2 and alpha-3 respectively.
Minimum length is
2
, maximum length is3
. Format should match the following pattern:^[A-Z]{2,3}$
. -
city string
-
state string
-
Minimum value is
1
. -
Minimum value is
1
. -
hotel_type string
hotel_type
is mutually exclusive withstars
,stars
is prioritized overhotel_type
.Values are
airport_location
,convention_hotel
,extended_stay
,full_service_nonresort
,full_service_resort
,hotel_average
,integrated_resort
,limited_service
,luxury_segment_nonresort
,luxury_segment_resort
,nonresort
,resort
,rural_highway_location
,small_metro_town_location
,suburban_location
,upper_midscale_segment_nonresort
,upper_midscale_segmentnonresort
,upper_upscale_segment_nonresort
,upper_upscale_segment_resort
,upscale_segment_nonresort
,upscale_segment_resort
, orurban_location
. Default value ishotel_average
.
Use one of the available options for calculation depending on the available parameters.
Hide attributes Show attributes
-
Value is
expenditure
. -
Value is
OFNK
. -
external_reference string
A unique identifier that helps you link the resulting emissions to the requested item. Especially useful if multiple items are requested since SQUAKE cannot guarantee to keep the same order. The maximum length is 128 characters.
Maximum length is
128
. -
Mutually exclusive with "merchant_category_code". One of both must be given.
Values are
groceries
,retail
,service_stations
,local_public_transport
,train_travel
,taxi_cabs
,catering
,lodging_accommodation
,online_shopping
,car_rental
,air_travel
,bakeries_cafes
,drug_stores
,convenience_stores
,clothes_shopping
,travel_agencies
,furniture
, orstreaming_services
. Default value isonline_shopping
. -
Mutually exclusive with "merchant_category". One of both must be given.
-
merchant_name string
-
Amount of money per transaction.
-
currency string
Default value is
EUR
.
Hide attributes Show attributes
-
Value is
ferry
. -
Value is
ADEME
. -
external_reference string
A unique identifier that helps you link the resulting emissions to the requested item. Especially useful if multiple items are requested since SQUAKE cannot guarantee to keep the same order. The maximum length is 128 characters.
Maximum length is
128
. -
SQUAKE will try to resolve the origin/destination regardless of its format. Ideally, for addresses use the Post standard, for airports use IATA/ICAO code (format:
^[A-Z]{3,4}$
, e.g."MUC"
), for other locations used in trade and transportation use UN/LOCODE codes (format:^[A-Z]{2}\W?[A-Z2-9]{3}$
, e.g."DEHAM"
). You can also pass lat/long (format:^[-+]?\d{1,3}\.\d{1,10}\s?,\s?[-+]?\d{1,3}\.\d{1,10}$
, e.g."+40.712,-74.006"
). -
SQUAKE will try to resolve the origin/destination regardless of its format. Ideally, for addresses use the Post standard, for airports use IATA/ICAO code (format:
^[A-Z]{3,4}$
, e.g."MUC"
), for other locations used in trade and transportation use UN/LOCODE codes (format:^[A-Z]{2}\W?[A-Z2-9]{3}$
, e.g."DEHAM"
). You can also pass lat/long (format:^[-+]?\d{1,3}\.\d{1,10}\s?,\s?[-+]?\d{1,3}\.\d{1,10}$
, e.g."+40.712,-74.006"
). -
Prioritized over
origin
anddestination
. If you don't have adistance_in_km
, you can useorigin
anddestination
and the distance will be automatically resolved. If you pass bothdistance_in_km
andorigin
/destination
, thendistance_in_km
will be used. -
number_of_cars number
Default value is
0
. -
vessel_type string
Values are
night_ferry
,day_ferry
,ro_pax
, orriver_vessel
. Default value isday_ferry
.
Hide attributes Show attributes
-
Value is
flight
. -
Values are
ADEME
,CO2-EMISSIEFACTOREN-NL
,DEFRA
,ICAO
,TIM
,US-EPA
,IATA
, orGATE4
. -
external_reference string
A unique identifier that helps you link the resulting emissions to the requested item. Especially useful if multiple items are requested since SQUAKE cannot guarantee to keep the same order. The maximum length is 128 characters.
Maximum length is
128
. -
booking_class string
If you don't pass a
booking_class
thenfare_class
andairline
are required. SQUAKE will then automatically resolve the correctbooking_class
; used forDEFRA
,CO2-EMISSIEFACTOREN-NL
,TIM
,GATE4
,IATA
andICAO
. ForCO2-EMISSIEFACTOREN-NL
this is optional withaverage
as the default value. ForDEFRA
average
is the default, whileeconomy
is the default forTIM
,ICAO
,GATE4
andIATA
.Values are
first
,premium_economy
,economy
, orbusiness
. -
number_of_travelers integer(int32)
Minimum value is
1
. Default value is1
. -
aircraft_size string
An estimation of the aircraft's size based on the number of seats; used for
ADEME
Values are
under_50_seats
,under_100_seats
,under_180_seats
,under_250_seats
, orover_250_seats
. -
aircraft_type string
Used for
ICAO
andDEFRA
. For ICAO this is set from the distance that's resolved from bothorigin
anddestination
ordistance_in_km
, if the distance is less than 550 km then it's737
, between 550 km and 5500 km it's321
, over 5500 km it's777
Values are
CS1
,CS3
,31N
,32N
,32Q
,338
,339
,359
,7M7
,7M8
,7M9
,789
,141
,142
,143
,146
,310
,312
,313
,318
,319
,320
,321
,330
,332
,333
,340
,342
,343
,345
,346
,380
,388
,703
,707
,717
,721
,722
,727
,731
,732
,733
,734
,735
,736
,737
,738
,739
,741
,742
,743
,744
,747
,752
,753
,757
,762
,763
,764
,767
,772
,773
,777
,787
,788
,14F
,31F
,31Y
,32A
,32F
,32S
,33F
,33X
,70F
,70M
,72A
,72F
,72M
,72S
,73A
,73C
,73E
,73F
,73G
,73H
,73J
,73L
,73M
,73N
,73P
,73Q
,73R
,73S
,73W
,73X
,73Y
,74C
,74D
,74E
,74F
,74H
,74J
,74L
,74M
,74N
,74R
,74T
,74X
,74Y
,75F
,75M
,75T
,75W
,76F
,76W
,76X
,76Y
,77F
,77L
,77W
,77X
,A28
,A40
,A4F
,A81
,AB3
,AB4
,AB6
,ABF
,ABX
,ABY
,ACD
,AGH
,AN4
,AN6
,AN7
,ANF
,AR1
,AR7
,AR8
,ARJ
,AT3
,AT4
,AT5
,AT7
,ATF
,ATP
,ATR
,B11
,B12
,B13
,B14
,B15
,BE1
,BE2
,BE9
,BEC
,BEH
,BES
,BET
,BH2
,BNI
,BNT
,CCJ
,CD2
,CL4
,CN1
,CNA
,CNC
,CNF
,CNJ
,CNT
,CR1
,CR2
,CR7
,CR9
,CRA
,CRF
,CRJ
,CRK
,CS2
,CS5
,CV5
,CVF
,CVR
,CWC
,D10
,D11
,D1C
,D1F
,D1Y
,D28
,D38
,D3F
,D6F
,D8F
,D8X
,D8Y
,D91
,D92
,D93
,D94
,D95
,D9F
,D9S
,DC3
,DC6
,DC8
,DC9
,DF2
,DFL
,DH1
,DH2
,DH3
,DH4
,DH7
,DH8
,DHB
,DHC
,DHL
,DHO
,DHP
,DHS
,DHT
,E70
,E75
,E90
,E95
,EM2
,EMB
,EMJ
,ER3
,ER4
,ERD
,ERJ
,F21
,F22
,F23
,F24
,F27
,F28
,F50
,F70
,FK7
,FRJ
,GRG
,GRM
,GRS
,HEC
,HS7
,I14
,IL6
,IL7
,IL8
,IL9
,ILW
,J31
,J32
,J41
,JST
,L10
,L11
,L12
,L15
,L1F
,L49
,L4T
,LOE
,LOF
,LOH
,LOM
,LRJ
,M11
,M1F
,M1M
,M80
,M81
,M82
,M83
,M87
,M88
,M90
,MA6
,MBH
,MD9
,MIH
,MU2
,ND2
,NDC
,NDE
,NDH
,PA1
,PA2
,PAG
,PAT
,PL2
,PL6
,PN6
,S20
,S58
,S61
,S76
,SF3
,SFB
,SFF
,SH3
,SH6
,SHB
,SHS
,SSC
,SU9
,SWM
,T20
,T2F
,TU3
,TU5
,VCV
,WWP
,YK2
,YK4
,YN2
,YN7
,YS1
,221
,223
,290
,295
,351
, or781
. -
SQUAKE will try to resolve the origin/destination regardless of its format. Ideally, for addresses use the Post standard, for airports use IATA/ICAO code (format:
^[A-Z]{3,4}$
, e.g."MUC"
), for other locations used in trade and transportation use UN/LOCODE codes (format:^[A-Z]{2}\W?[A-Z2-9]{3}$
, e.g."DEHAM"
). You can also pass lat/long (format:^[-+]?\d{1,3}\.\d{1,10}\s?,\s?[-+]?\d{1,3}\.\d{1,10}$
, e.g."+40.712,-74.006"
). -
SQUAKE will try to resolve the origin/destination regardless of its format. Ideally, for addresses use the Post standard, for airports use IATA/ICAO code (format:
^[A-Z]{3,4}$
, e.g."MUC"
), for other locations used in trade and transportation use UN/LOCODE codes (format:^[A-Z]{2}\W?[A-Z2-9]{3}$
, e.g."DEHAM"
). You can also pass lat/long (format:^[-+]?\d{1,3}\.\d{1,10}\s?,\s?[-+]?\d{1,3}\.\d{1,10}$
, e.g."+40.712,-74.006"
). -
Prioritized over
origin
anddestination
. If you don't have adistance_in_km
, you can useorigin
anddestination
and the distance will be automatically resolved. If you pass bothdistance_in_km
andorigin
/destination
, thendistance_in_km
will be used. -
fare_class string
The combination of
fare_class
andairline
is mutually exclusive withbooking_class
. This is a single letter e.g.Y
,J
, etc. -
airline string
The IATA Designator of an airline, e.g., 2-digit format like
LH
or 3-digit format like220
. Airline names and ICAO codes are also supported, SQUAKE will then automatically resolve it. The combination offare_class
andairline
is mutually exclusive withbooking_class
. -
flight_number string
Flight numbers should include the airline designator, for example
BA115
is accepted but115
is not; used forTIM
,GATE4
andIATA
. -
departure_date string(date)
Used for
TIM
,GATE4
andIATA
.Format should match the following pattern:
^\d{4}-\d{2}-\d{2}$
. -
radiative_forcing_index boolean
Controls if a multiplier that factors in gases emitted to the atmosphere when flying at altitude should be applied; used for
DEFRA
andCO2-EMISSIEFACTOREN-NL
.Default value is
true
. -
sustainable_fuels object
Indicates the usage of sustainable fuels. This lowers the computed emissions in SQUAKE but is not part of the current official emissions frameworks.
Additional properties are allowed.
Hide sustainable_fuels attribute Show sustainable_fuels attribute object
-
The percentage of emissions reduction through the usage of sustainable fuel.
Minimum value is
0
, maximum value is1
. Default value is0
.
-
-
energy_scope string
Used for
DIN-EN-16258
,CLEAN-CARGO
,CO2-EMISSIEFACTOREN-NL
,TIM
andGLEC
.Values are
ttw
orwtw
. Default value iswtw
. -
time_in_minutes number
The duration of the flight. Used for
IATA
.
Hotel considers only activities related to rentals of rooms.
SQUAKE will automatically resolve eco-labels if you supply both
code
andcode_type
for its methodology.Optionally, you can also pass eco-labels yourself in
eco_labels
.Additional information may be returned in the response for eco-label matches. The format is:
"eco_labels": [ { "id": "string", "link": "string", "name": "string", "description": "string" } ]
Hide attributes Show attributes
-
Value is
hotel
. -
Values are
HCMI
,SQUAKE
, orDEFRA
. -
external_reference string
A unique identifier that helps you link the resulting emissions to the requested item. Especially useful if multiple items are requested since SQUAKE cannot guarantee to keep the same order. The maximum length is 128 characters.
Maximum length is
128
. -
stars integer(int32)
stars
is mutually exclusive withhotel_type
,stars
is prioritized overhotel_type
.Minimum value is
1
, maximum value is5
. Default value is3
. -
room_type string
If you have less specific sizes, choose one of
single
,double,
suite
for best results.Values are
adjacent_room
,adjoining_room
,cabana
,connecting_rooms
,double_double
,double
,executive_floor
,hollywood_twin
,king
,mini_suite
,murphy_room
,president_suite
,quad
,queen
,single
,suite
,triple
, ortwin
. Default value isdouble
. -
Minimum value is
1
. Default value is3
. -
hcmi_member boolean
Used by
HCMI
methodology. Default isfalse
.Default value is
false
. -
hotel_type string
hotel_type
is mutually exclusive withstars
,stars
is prioritized overhotel_type
.Values are
airport_location
,convention_hotel
,economy_segment_nonresort
,extended_stay
,full_service_nonresort
,full_service_resort
,hotel_average
,integrated_resort
,limited_service
,luxury_segment_nonresort
,luxury_segment_resort
,midscale_segment_nonresort
,non_resort
,nonresort
,resort
,rural_highway_location
,small_metro_town_location
,suburban_location
,upper_midscale_segment_nonresort
,upper_midscale_segment_resort
,upper_upscale_segment_nonresort
,upper_upscale_segment_resort
,upscale_segment_nonresort
,upscale_segment_resort
, orurban_location
. Default value ishotel_average
. -
country string
Two-letter or three-letter code as defined in ISO 3166-1 alpha-2 and alpha-3 respectively.
Minimum length is
2
, maximum length is3
. Format should match the following pattern:^[A-Z]{2,3}$
. -
state string
A state or province where the hotel is located. Used by
HCMI
andSQUAKE
. -
city string
A city where the hotel is located. Used by
HCMI
,SQUAKE
andDEFRA
.DEFRA
currently only supportsLondon
as a city. -
eco_labels array[string]
Used by
SQUAKE
. Eco-labels are returned in case an eco-label is assigned to the hotel. In case you are aware of the eco-labels that apply to specific hotels, you can pass them to us and we will consider them. You can find a list of our eco-labels here. -
garage boolean
Used by
SQUAKE
.Default value is
false
. -
parking boolean
Used by
SQUAKE
.Default value is
false
. -
code_type string
The code type of the passed code. Used by
SQUAKE
.Values are
amadeus
,booking.com
,galileo_apollo
,giata
,sabre_tn
, orworldspan
. -
code string
The hotel code from the specified code type. Used by
SQUAKE
.
If you have freight and don't know the type, you can use
Logistics
.Additional information may be returned in the response for
GLEC
. The format is:"data": [ { "co2e_in_g": int, "co2e_emissions_wtw_in_g": int, "co2e_per_tonne_km_in_g": int, "tonne_km": int, "reporting_year": int, "transportation_mode": "string" } ]
Hide attributes Show attributes
-
Value is
inland_waterways
. -
Value is
GLEC
. -
external_reference string
A unique identifier that helps you link the resulting emissions to the requested item. Especially useful if multiple items are requested since SQUAKE cannot guarantee to keep the same order. The maximum length is 128 characters.
Maximum length is
128
. -
SQUAKE will try to resolve the origin/destination regardless of its format. Ideally, for addresses use the Post standard, for airports use IATA/ICAO code (format:
^[A-Z]{3,4}$
, e.g."MUC"
), for other locations used in trade and transportation use UN/LOCODE codes (format:^[A-Z]{2}\W?[A-Z2-9]{3}$
, e.g."DEHAM"
). You can also pass lat/long (format:^[-+]?\d{1,3}\.\d{1,10}\s?,\s?[-+]?\d{1,3}\.\d{1,10}$
, e.g."+40.712,-74.006"
). -
SQUAKE will try to resolve the origin/destination regardless of its format. Ideally, for addresses use the Post standard, for airports use IATA/ICAO code (format:
^[A-Z]{3,4}$
, e.g."MUC"
), for other locations used in trade and transportation use UN/LOCODE codes (format:^[A-Z]{2}\W?[A-Z2-9]{3}$
, e.g."DEHAM"
). You can also pass lat/long (format:^[-+]?\d{1,3}\.\d{1,10}\s?,\s?[-+]?\d{1,3}\.\d{1,10}$
, e.g."+40.712,-74.006"
). -
Prioritized over
origin
anddestination
. If you don't have adistance_in_km
, you can useorigin
anddestination
and the distance will be automatically resolved. If you pass bothdistance_in_km
andorigin
/destination
, thendistance_in_km
will be used. -
vessel_type string
Values are
container_vessel_110_m
,container_vessel_135_m
,container_vessel_coupled_convoys
,coupled_convoys
,motor_vessels_under_50_m
,motor_vessels_under_80_m
,motor_vessel_under_110_m
,motor_vessel_135_m
,pushed_convoy_push_boat_2_barges
,pushed_convoy_push_boat_4_5_barges
,pushed_convoy_push_boat_6_barges
, ortanker_vessel
. Default value ismotor_vessels_under_50_m
. -
energy_scope string
Used for
DIN-EN-16258
,CLEAN-CARGO
,CO2-EMISSIEFACTOREN-NL
,TIM
andGLEC
.Values are
ttw
orwtw
. Default value iswtw
.
Additional information may be returned in the response for
GLEC
The format is:"data": [ { "co2e_in_g": int, "co2e_per_tonne_in_g": int, "reporting_year": int, "transportation_mode": "string" } ]
Hide attributes Show attributes
-
Value is
logistics_site
. -
Value is
GLEC
. -
external_reference string
A unique identifier that helps you link the resulting emissions to the requested item. Especially useful if multiple items are requested since SQUAKE cannot guarantee to keep the same order. The maximum length is 128 characters.
Maximum length is
128
. -
logistics_site_type string
Values are
transhipment_site
,storage_and_transhipment
,warehouse
,maritime_container_terminal
, orliquid_bulk_terminal
. Default value iswarehouse
. -
condition_type string
temperature_controlled
is only relevant for logistics site typemaritime_container_terminal
Values are
ambient
,mixed
, ortemperature_controlled
. Default value ismixed
.
Logistics is a generalization of air, sea, rail, and road freight. The journey provided via either
distance_in_km
ororigin
&destination
is split into multiple parts, and the appropriate specific freight methodologies are used for each part, depending on the parameters provided. If you know the type in advance, prefer using the specific type.Hide attributes Show attributes
-
Value is
logistics
. -
Value is
SQUAKE
. -
external_reference string
A unique identifier that helps you link the resulting emissions to the requested item. Especially useful if multiple items are requested since SQUAKE cannot guarantee to keep the same order. The maximum length is 128 characters.
Maximum length is
128
. -
Default value is
2
. -
shipping_method string
Values are
express
ornormal
. Default value isexpress
. -
Prioritized over
origin
anddestination
. If you don't have adistance_in_km
, you can useorigin
anddestination
and the distance will be automatically resolved. If you pass bothdistance_in_km
andorigin
/destination
, thendistance_in_km
will be used. -
SQUAKE will try to resolve the origin/destination regardless of its format. Ideally, for addresses use the Post standard, for airports use IATA/ICAO code (format:
^[A-Z]{3,4}$
, e.g."MUC"
), for other locations used in trade and transportation use UN/LOCODE codes (format:^[A-Z]{2}\W?[A-Z2-9]{3}$
, e.g."DEHAM"
). You can also pass lat/long (format:^[-+]?\d{1,3}\.\d{1,10}\s?,\s?[-+]?\d{1,3}\.\d{1,10}$
, e.g."+40.712,-74.006"
). -
SQUAKE will try to resolve the origin/destination regardless of its format. Ideally, for addresses use the Post standard, for airports use IATA/ICAO code (format:
^[A-Z]{3,4}$
, e.g."MUC"
), for other locations used in trade and transportation use UN/LOCODE codes (format:^[A-Z]{2}\W?[A-Z2-9]{3}$
, e.g."DEHAM"
). You can also pass lat/long (format:^[-+]?\d{1,3}\.\d{1,10}\s?,\s?[-+]?\d{1,3}\.\d{1,10}$
, e.g."+40.712,-74.006"
).
The full list of aircraft supported by SQUAKE could be found here. If your aircraft type is not supported, feel free to contact us.
Hide attributes Show attributes
-
Value is
private_jet
. -
Value is
SQUAKE
. Default value isSQUAKE
. -
external_reference string
A unique identifier that helps you link the resulting emissions to the requested item. Especially useful if multiple items are requested since SQUAKE cannot guarantee to keep the same order. The maximum length is 128 characters.
Maximum length is
128
. -
SQUAKE will try to resolve the origin/destination regardless of its format. Ideally, for addresses use the Post standard, for airports use IATA/ICAO code (format:
^[A-Z]{3,4}$
, e.g."MUC"
), for other locations used in trade and transportation use UN/LOCODE codes (format:^[A-Z]{2}\W?[A-Z2-9]{3}$
, e.g."DEHAM"
). You can also pass lat/long (format:^[-+]?\d{1,3}\.\d{1,10}\s?,\s?[-+]?\d{1,3}\.\d{1,10}$
, e.g."+40.712,-74.006"
). -
SQUAKE will try to resolve the origin/destination regardless of its format. Ideally, for addresses use the Post standard, for airports use IATA/ICAO code (format:
^[A-Z]{3,4}$
, e.g."MUC"
), for other locations used in trade and transportation use UN/LOCODE codes (format:^[A-Z]{2}\W?[A-Z2-9]{3}$
, e.g."DEHAM"
). You can also pass lat/long (format:^[-+]?\d{1,3}\.\d{1,10}\s?,\s?[-+]?\d{1,3}\.\d{1,10}$
, e.g."+40.712,-74.006"
). -
Prioritized over
origin
anddestination
. If you don't have adistance_in_km
, you can useorigin
anddestination
and the distance will be automatically resolved. If you pass bothdistance_in_km
andorigin
/destination
, thendistance_in_km
will be used. -
IATA
orICAO
code of the aircraft.Values are
100
,141
,142
,143
,146
,14F
,221
,223
,290
,295
,310
,312
,313
,318
,319
,31F
,31N
,31X
,31Y
,320
,321
,32A
,32B
,32F
,32N
,32Q
,32S
,330
,332
,333
,338
,339
,33F
,33X
,340
,342
,343
,345
,346
,350
,351
,359
,380
,388
,703
,707
,70F
,70M
,717
,721
,722
,725
,727
,72A
,72F
,72M
,731
,732
,733
,734
,735
,736
,737
,738
,739
,73A
,73C
,73E
,73F
,73G
,73H
,73J
,73L
,73M
,73N
,73P
,73Q
,73R
,73S
,73W
,73X
,73Y
,741
,742
,743
,744
,747
,74C
,74D
,74E
,74F
,74H
,74I
,74L
,74M
,74N
,74R
,74T
,74X
,74Y
,752
,753
,757
,75M
,75T
,75W
,762
,763
,764
,767
,76F
,76W
,76X
,76Y
,772
,773
,777
,77F
,77L
,77W
,77X
,781
,787
,788
,789
,7M8
,7M9
,A26
,A28
,A40
,A4F
,A81
,AB3
,AB4
,AB6
,ABF
,ABX
,ABY
,ACD
,AGH
,AN4
,AN6
,AN7
,ANF
,AR1
,AR7
,AR8
,ARJ
,AT3
,AT4
,AT5
,AT7
,ATF
,ATP
,ATR
,B11
,B12
,B13
,B14
,B15
,BE1
,BE2
,BE4
,BE9
,BEC
,BEH
,BES
,BET
,BH2
,BNI
,BNT
,C55
,CCJ
,CCX
,CD2
,CL4
,CN1
,CN2
,CNA
,CNC
,CNF
,CNJ
,CNT
,CR1
,CR2
,CR7
,CR9
,CRA
,CRF
,CRJ
,CRK
,CS2
,CV5
,CVF
,CVR
,CWC
,D10
,D11
,D1C
,D1F
,D1Y
,D20
,D28
,D38
,D3F
,D6F
,D8F
,D8X
,D8Y
,D91
,D92
,D93
,D94
,D95
,D9F
,D9S
,DC3
,DC6
,DC8
,DC9
,DF2
,DF7
,DF8
,DF9
,DFL
,DH1
,DH2
,DH3
,DH4
,DH7
,DH8
,DHB
,DHC
,DHL
,DHO
,DHP
,DHS
,DHT
,E70
,E75
,E90
,E95
,EC3
,EM2
,EMB
,EMJ
,EP1
,EP3
,ER3
,ER4
,ERD
,ERJ
,F21
,F22
,F23
,F24
,F27
,F28
,F50
,F70
,FK7
,FRJ
,GJ4
,GJ5
,GJ6
,GR3
,GRG
,GRJ
,GRM
,GRS
,H25
,HEC
,HHJ
,HS7
,I14
,IL6
,IL7
,IL8
,IL9
,ILW
,J31
,J41
,JST
,L10
,L11
,L12
,L15
,L1F
,L2J
,L49
,L4T
,LOE
,LOF
,LOH
,LOM
,LRJ
,M11
,M1F
,M1M
,M80
,M81
,M82
,M83
,M87
,M88
,M90
,MA6
,MBH
,MD9
,MIH
,MU2
,ND2
,NDC
,NDE
,NDH
,P18
,PA1
,PA2
,PAG
,PAT
,PL2
,PL4
,PL6
,PN6
,S20
,S58
,S61
,S76
,SF3
,SFB
,SFF
,SH3
,SH6
,SHB
,SHS
,SSC
,SU9
,SWM
,T20
,T2F
,TU3
,TU5
,VCV
,WWP
,YK2
,YK4
,YN2
,YN7
, orYS1
. -
Values are
ICAO
orIATA
. Default value isICAO
.
If you have freight and don't know the type, you can use
Logistics
.Additional information may be returned in the response for
GLEC
. The format is:"data": [ { "co2e_in_g": int, "co2e_emissions_wtw_in_g": int, "co2e_per_tonne_km_in_g": int, "tonne_km": int, "reporting_year": int, "transportation_mode": "string" } ]
Additional information may be returned in the response for
DIN-EN-16258
The format is:"data": [ { "energy_factor_ttw_in_MJ": int, "energy_factor_wtw_in_MJ": int, "ghg_emissions_ttw_in_g": int, "ghg_emissions_wtw_in_g": int } ]
Hide attributes Show attributes
-
Value is
rail_freight
. -
Values are
DIN-EN-16258
,ECTA
, orGLEC
. -
external_reference string
A unique identifier that helps you link the resulting emissions to the requested item. Especially useful if multiple items are requested since SQUAKE cannot guarantee to keep the same order. The maximum length is 128 characters.
Maximum length is
128
. -
Prioritized over
origin
anddestination
. If you don't have adistance_in_km
, you can useorigin
anddestination
and the distance will be automatically resolved. If you pass bothdistance_in_km
andorigin
/destination
, thendistance_in_km
will be used. -
SQUAKE will try to resolve the origin/destination regardless of its format. Ideally, for addresses use the Post standard, for airports use IATA/ICAO code (format:
^[A-Z]{3,4}$
, e.g."MUC"
), for other locations used in trade and transportation use UN/LOCODE codes (format:^[A-Z]{2}\W?[A-Z2-9]{3}$
, e.g."DEHAM"
). You can also pass lat/long (format:^[-+]?\d{1,3}\.\d{1,10}\s?,\s?[-+]?\d{1,3}\.\d{1,10}$
, e.g."+40.712,-74.006"
). -
SQUAKE will try to resolve the origin/destination regardless of its format. Ideally, for addresses use the Post standard, for airports use IATA/ICAO code (format:
^[A-Z]{3,4}$
, e.g."MUC"
), for other locations used in trade and transportation use UN/LOCODE codes (format:^[A-Z]{2}\W?[A-Z2-9]{3}$
, e.g."DEHAM"
). You can also pass lat/long (format:^[-+]?\d{1,3}\.\d{1,10}\s?,\s?[-+]?\d{1,3}\.\d{1,10}$
, e.g."+40.712,-74.006"
). -
train_type string
Required for
DIN-EN-16258
. Considered forECTA
. Valuesaverage
,container_train_intermodal
,blocktrain_rtc
andsingle_wagon_train_rtc
are valid only forECTA
. The default value in case ofDIN-EN-16258
is1000t
, in case ifECTA
it isaverage
.Values are
500t
,1000t
,1500t
,2000t
,average
,container_train_intermodal
,blocktrain_rtc
, orsingle_wagon_train_rtc
. -
fuel_type string
Considered for
DIN-EN-16258
,ECTA
, andGLEC
.electricity
is supported byGLEC
whileelectric
is supported byDIN-EN-16258
Values are
electricity
,electric
,diesel
,average
, orus_diesel
. Default value isaverage
. -
energy_scope string
Used for
DIN-EN-16258
,CLEAN-CARGO
,CO2-EMISSIEFACTOREN-NL
,TIM
andGLEC
.Values are
ttw
orwtw
. Default value iswtw
. -
load_characteristic string
Considered for
GLEC
.Values are
average
,container
,cars
,chemicals
,coal_steel
,building_materials
,manufactured_products
,cereals
,truck_trailer_on_train
, ortrailer_only_on_train
. Default value isaverage
.
If you have freight and don't know the type, you can use
Logistics
.Additional information may be returned in the response for
GLEC
. The format is:"data": [ { "co2e_in_g": int, "co2e_emissions_wtw_in_g": int, "co2e_per_tonne_km_in_g": int, "tonne_km": int, "reporting_year": int, "transportation_mode": "string" } ]
Additional information may be returned in the response for
DIN-EN-16258
The format is:"data": [ { "energy_factor_ttw_in_MJ": int, "energy_factor_wtw_in_MJ": int, "ghg_emissions_ttw_in_g": int, "ghg_emissions_wtw_in_g": int } ]
Hide attributes Show attributes
-
Value is
road_freight
. -
Values are
DIN-EN-16258
orGLEC
. -
external_reference string
A unique identifier that helps you link the resulting emissions to the requested item. Especially useful if multiple items are requested since SQUAKE cannot guarantee to keep the same order. The maximum length is 128 characters.
Maximum length is
128
. -
SQUAKE will try to resolve the origin/destination regardless of its format. Ideally, for addresses use the Post standard, for airports use IATA/ICAO code (format:
^[A-Z]{3,4}$
, e.g."MUC"
), for other locations used in trade and transportation use UN/LOCODE codes (format:^[A-Z]{2}\W?[A-Z2-9]{3}$
, e.g."DEHAM"
). You can also pass lat/long (format:^[-+]?\d{1,3}\.\d{1,10}\s?,\s?[-+]?\d{1,3}\.\d{1,10}$
, e.g."+40.712,-74.006"
). -
SQUAKE will try to resolve the origin/destination regardless of its format. Ideally, for addresses use the Post standard, for airports use IATA/ICAO code (format:
^[A-Z]{3,4}$
, e.g."MUC"
), for other locations used in trade and transportation use UN/LOCODE codes (format:^[A-Z]{2}\W?[A-Z2-9]{3}$
, e.g."DEHAM"
). You can also pass lat/long (format:^[-+]?\d{1,3}\.\d{1,10}\s?,\s?[-+]?\d{1,3}\.\d{1,10}$
, e.g."+40.712,-74.006"
). -
Prioritized over
origin
anddestination
. If you don't have adistance_in_km
, you can useorigin
anddestination
and the distance will be automatically resolved. If you pass bothdistance_in_km
andorigin
/destination
, thendistance_in_km
will be used. -
truck_type string
Truck type according to
GLEC
(default:van_under_3.5_t
) andDIN-EN-16258
(default:under_7.5_t
).DIN-EN-16258
only knows theunder_*_t
types, whileGLEC
does not support them. North American truck types arevan_under_3.5_t
,general
,auto_carrier
,dray
,expedited
,flatbed
,heavy_bulk
,ltl_dry_van
,mixed
,moving
,package
,refrigerated
,specialized
,tanker
,tl_dry_van
. For more detailed mapping of load characteristics, fuel and truck types refer to the GLEC database.Values are
artic_truck_40_gvw_lightweight_trailer
,artic_truck_under_34_gvw
,artic_truck_under_40_gvw_si_engine
,artic_truck_under_40_gvw
,artic_truck_under_44_gvw
,artic_truck_under_60_gvw
,artic_truck_under_72_gvw
,auto_carrier
,dray
,expedited
,flatbed
,general
,heavy_bulk
,ltl_dry_van
,mixed
,moving
,package
,refrigerated
,rigid_truck_under_12_gvw
,rigid_truck_under_20_gvw
,rigid_truck_under_26_gvw
,rigid_truck_under_32_gvw
,rigid_truck_under_7.5_gvw
,specialized
,tanker
,tl_dry_van
,van_under_3.5_t
,under_7.5_t
,under_12_t
,under_24_t
, orunder_40_t
. -
energy_scope string
Used for
DIN-EN-16258
,CLEAN-CARGO
,CO2-EMISSIEFACTOREN-NL
,TIM
andGLEC
.Values are
ttw
orwtw
. Default value iswtw
. -
load_characteristic string
Considered by
GLEC
.Values are
average
,heavy
,light
, orcontainer
. Default value isaverage
. -
fuel_type string
Considered by
GLEC
.Values are
average
,diesel
,petrol
,lng
,lpg
,bio-lng
, orcng
. Default value isaverage
. -
temperature_controlled_freight boolean
Considered by
GLEC
.Default value is
false
.
If you have freight and don't know the type, you can use
Logistics
.Additional information may be returned in the response for
GLEC
andCLEAN-CARGO
. The format is:"data": [ { "co2e_in_g": int, "co2e_emissions_wtw_in_g": int, "co2e_per_tonne_km_in_g": int, "tonne_km": int, "reporting_year": int, "transportation_mode": "string" } ]
Additional information may be returned in the response for
DIN-EN-16258
The format is:"data": [ { "energy_factor_ttw_in_MJ": int, "energy_factor_wtw_in_MJ": int, "ghg_emissions_ttw_in_g": int, "ghg_emissions_wtw_in_g": int } ]
Hide attributes Show attributes
-
Value is
sea_freight
. -
EU-EMSA
is the methodology from the "European Maritime Safety Agency".Values are
CLEAN-CARGO
,DIN-EN-16258
,EU-EMSA
, orGLEC
. -
external_reference string
A unique identifier that helps you link the resulting emissions to the requested item. Especially useful if multiple items are requested since SQUAKE cannot guarantee to keep the same order. The maximum length is 128 characters.
Maximum length is
128
. -
SQUAKE will try to resolve the origin/destination regardless of its format. Ideally, for addresses use the Post standard, for airports use IATA/ICAO code (format:
^[A-Z]{3,4}$
, e.g."MUC"
), for other locations used in trade and transportation use UN/LOCODE codes (format:^[A-Z]{2}\W?[A-Z2-9]{3}$
, e.g."DEHAM"
). You can also pass lat/long (format:^[-+]?\d{1,3}\.\d{1,10}\s?,\s?[-+]?\d{1,3}\.\d{1,10}$
, e.g."+40.712,-74.006"
). -
SQUAKE will try to resolve the origin/destination regardless of its format. Ideally, for addresses use the Post standard, for airports use IATA/ICAO code (format:
^[A-Z]{3,4}$
, e.g."MUC"
), for other locations used in trade and transportation use UN/LOCODE codes (format:^[A-Z]{2}\W?[A-Z2-9]{3}$
, e.g."DEHAM"
). You can also pass lat/long (format:^[-+]?\d{1,3}\.\d{1,10}\s?,\s?[-+]?\d{1,3}\.\d{1,10}$
, e.g."+40.712,-74.006"
). -
Prioritized over
origin
anddestination
. If you don't have adistance_in_km
, you can useorigin
anddestination
and the distance will be automatically resolved. If you pass bothdistance_in_km
andorigin
/destination
, thendistance_in_km
will be used. -
cargo_type string
Considered by
CLEAN-CARGO
.Values are
dry
orreefer
. Default value isreefer
. -
vessel_type string
Used by
GLEC
.GLEC
defaults togeneral_cargo_under_4999_dwt
.DIN-EN-16258
only considerstanker
andcontainer
(default). For more detailed mapping of vessel and fuel types refer to the GLEC database.Values are
bulk_carrier_under_9999_dwt
,bulk_carrier_under_34999_dwt
,bulk_carrier_under_59999_dwt
,bulk_carrier_under_99999_dwt
,bulk_carrier_under_199999_dwt
,bulk_carrier_above_200000_dwt
,chemical_tanker_under_4999_dwt
,chemical_tanker_under_9999_dwt
,chemical_tanker_under_19999_dwt
,chemical_tanker_under_39999_dwt
,chemical_tanker_above_40000_dwt
,general_cargo_under_4999_dwt
,general_cargo_under_9999_dwt
,general_cargo_under_19999_dwt
,general_cargo_above_20000_dwt
,liquefied_gas_tanker_under_49999_dwt
,liquefied_gas_tanker_under_99999_dwt
,liquefied_gas_tanker_under_199999_dwt
,liquefied_gas_tanker_above_200000_dwt
,oil_tanker_under_4999_dwt
,oil_tanker_under_9999_dwt
,oil_tanker_under_19999_dwt
,oil_tanker_under_59999_dwt
,oil_tanker_under_79999_dwt
,oil_tanker_under_119999_dwt
,oil_tanker_under_199999_dwt
,oil_tanker_above_200000_dwt
,other_liquids_tankers_under_999_dwt
,other_liquids_tankers_above_1000_dwt
,ferry_ropax_under_1999_dwt
,ferry_ropax_under_4999_dwt
,ferry_ropax_under_9999_dwt
,ferry_ropax_under_19999_dwt
,ferry_ropax_above_20000_dwt
,refrigerated_bulk_under_1999_dwt
,refrigerated_bulk_under_5999_dwt
,refrigerated_bulk_under_9999_dwt
, orrefrigerated_bulk_above_10000_dwt
. -
energy_scope string
Used for
DIN-EN-16258
,CLEAN-CARGO
,CO2-EMISSIEFACTOREN-NL
,TIM
andGLEC
.Values are
ttw
orwtw
. Default value iswtw
. -
fuel_type string
Considered by
GLEC
.Values are
hfo
,vlsfo
, ormdo
. Default value ishfo
. -
trade_lane string
Considered by
CLEAN-CARGO
.Values are
panama
,trans_atlantic
,trans_suez
,trans_pacific
, orother
. -
vessel_model string
Considered by
EU-EMSA
. -
verifier_name string
Verifiers are environmental service providers, who claim to calculate and check actual carbon emissions from vessels. Considered by
EU-EMSA
. -
Mutually exclusive with
verifier_name
. Considered byEU-EMSA
.
The full list of operators supported by SQUAKE could be found here. If your operator is not supported, feel free to contact us.
Hide attributes Show attributes
-
Value is
train
. -
Values are
ADEME
,CO2-EMISSIEFACTOREN-NL
, orSQUAKE
. -
external_reference string
A unique identifier that helps you link the resulting emissions to the requested item. Especially useful if multiple items are requested since SQUAKE cannot guarantee to keep the same order. The maximum length is 128 characters.
Maximum length is
128
. -
Prioritized over
origin
anddestination
. If you don't have adistance_in_km
, you can useorigin
anddestination
and the distance will be automatically resolved. If you pass bothdistance_in_km
andorigin
/destination
, thendistance_in_km
will be used. -
SQUAKE will try to resolve the origin/destination regardless of its format. Ideally, for addresses use the Post standard, for airports use IATA/ICAO code (format:
^[A-Z]{3,4}$
, e.g."MUC"
), for other locations used in trade and transportation use UN/LOCODE codes (format:^[A-Z]{2}\W?[A-Z2-9]{3}$
, e.g."DEHAM"
). You can also pass lat/long (format:^[-+]?\d{1,3}\.\d{1,10}\s?,\s?[-+]?\d{1,3}\.\d{1,10}$
, e.g."+40.712,-74.006"
). -
SQUAKE will try to resolve the origin/destination regardless of its format. Ideally, for addresses use the Post standard, for airports use IATA/ICAO code (format:
^[A-Z]{3,4}$
, e.g."MUC"
), for other locations used in trade and transportation use UN/LOCODE codes (format:^[A-Z]{2}\W?[A-Z2-9]{3}$
, e.g."DEHAM"
). You can also pass lat/long (format:^[-+]?\d{1,3}\.\d{1,10}\s?,\s?[-+]?\d{1,3}\.\d{1,10}$
, e.g."+40.712,-74.006"
). -
train_type string
ADEME defaults to
local_express
and only considershigh_speed
,mainline
, andlocal_express
. SQUAKE's methodology defaults toregional
without andhigh_speed
with anoperator_name
given. CO2-EMISSIEFACTOREN-NL considersaverage
andinternational
, defaults toaverage
Values are
high_speed
,average
,regional
,mainline
,local_express
, orinternational
. -
fuel_type string
CO2-EMISSIEFACTOREN-NL
considersdiesel
,electricity
andaverage
, defaults toaverage
.ADEME
considersdiesel
andelectricity
, defaults todiesel
.Values are
diesel
,electricity
,hydrogen
,hybrid
, oraverage
. -
Minimum value is
1
. Default value is1
. -
operator_name string
SQUAKE
's methodology allows passing the operator's name to get a more accurate result.train_type
defaults tohigh_speed
ifoperator_name
is passed. Here is the database with the supported operators. -
seat_type string
Used for
SQUAKE
.Values are
first_class
orsecond_class
. Default value isfirst_class
.
If you have freight and don't know the type, you can use
Logistics
. If you have more details available, use theEU-EEA
methodology for a more precise result.Hide attributes Show attributes
-
Value is
van
. -
EU-EEA
is the methodology from the "European Environmental Agency".Value is
EU-EEA
. -
external_reference string
A unique identifier that helps you link the resulting emissions to the requested item. Especially useful if multiple items are requested since SQUAKE cannot guarantee to keep the same order. The maximum length is 128 characters.
Maximum length is
128
. -
SQUAKE will try to resolve the origin/destination regardless of its format. Ideally, for addresses use the Post standard, for airports use IATA/ICAO code (format:
^[A-Z]{3,4}$
, e.g."MUC"
), for other locations used in trade and transportation use UN/LOCODE codes (format:^[A-Z]{2}\W?[A-Z2-9]{3}$
, e.g."DEHAM"
). You can also pass lat/long (format:^[-+]?\d{1,3}\.\d{1,10}\s?,\s?[-+]?\d{1,3}\.\d{1,10}$
, e.g."+40.712,-74.006"
). -
SQUAKE will try to resolve the origin/destination regardless of its format. Ideally, for addresses use the Post standard, for airports use IATA/ICAO code (format:
^[A-Z]{3,4}$
, e.g."MUC"
), for other locations used in trade and transportation use UN/LOCODE codes (format:^[A-Z]{2}\W?[A-Z2-9]{3}$
, e.g."DEHAM"
). You can also pass lat/long (format:^[-+]?\d{1,3}\.\d{1,10}\s?,\s?[-+]?\d{1,3}\.\d{1,10}$
, e.g."+40.712,-74.006"
). -
Prioritized over
origin
anddestination
. If you don't have adistance_in_km
, you can useorigin
anddestination
and the distance will be automatically resolved. If you pass bothdistance_in_km
andorigin
/destination
, thendistance_in_km
will be used. -
manufacturer string
Considered by
EU-EEA
. -
model string
Considered by
EU-EEA
. -
fuel_type string
Considered by
EU-EEA
. -
engine_size_in_cubic_cm number
Considered by
EU-EEA
.
-
-
Format should match the following pattern:
product_[A-Za-z0-9]*
. -
payment_link_return_url string
If the customer does not exit the browser after the purchase, on success, SQUAKE will redirect the customer to this link.
-
currency string
3-letter ISO 4217 alpha code of the currency.
Minimum length is
3
, maximum length is3
. Format should match the following pattern:^[A-Z]{3}$
. Values areAED
,AMD
,ARS
,AUD
,AZN
,BAM
,BGN
,BHD
,BRL
,CAD
,CHF
,CLP
,CNY
,COP
,CRC
,CZK
,DKK
,DZD
,EGP
,ETB
,EUR
,GBP
,GEL
,HKD
,HUF
,IDR
,INR
,ISK
,JMD
,JOD
,JPY
,KES
,KRW
,KWD
,KZT
,LKR
,LYD
,MAD
,MUR
,MXN
,MYR
,NOK
,NZD
,OMR
,PHP
,PKR
,PLN
,QAR
,RSD
,RUB
,SAR
,SEK
,SGD
,SYP
,THB
,TND
,TRY
,TTD
,TWD
,UAH
,USD
,VND
,XAF
,XOF
, orZAR
. Default value isEUR
. -
carbon_unit string
SQUAKE uses The International System of Units (SI), commonly referred to as "metric system".
Values are
tonne
,kilogram
, orgram
. -
distance_unit string
SQUAKE uses common distance units
Values are
meter
,kilometer
,feet
,mile
, ornautical_mile
. Default value iskilometer
.
Responses
-
200 application/json
OK
Hide headers attribute Show headers attribute
-
Unique identifier linked to this API request. If you need to contact us regarding a specific request, providing the request identifier helps the resolution process.
Hide response attributes Show response attributes object
-
A token encoding the pricing. Used to make a purchase.
-
SQUAKE uses The International System of Units (SI), commonly referred to as "metric system".
Values are
tonne
,kilogram
, orgram
. -
payment_link string
price string | object Required
One of: ID of a price.
Format should match the following pattern:
price_[A-Za-z0-9]*
.For carbon compensation products, prices define the unit cost (per unit, e.g., "tonne"). Prices are valid for a given period as the market fluctuates.
Typically there is one currently valid price for a product. As the market fluctuates, prices can change; usually, SQUAKE is informed by their project partners of future price changes; hence multiple prices can be returned for the same product.
This endpoint returns only valid prices. These are purley informational; for interacting with the API,
products
must be passed.Hide attributes Show attributes
-
Format should match the following pattern:
price_[A-Za-z0-9]*
. -
The total amount in the lower denomination of the currency; e.g. 12.34 USD would be 1234.
-
SQUAKE uses The International System of Units (SI), commonly referred to as "metric system".
Values are
tonne
,kilogram
, orgram
. -
3-letter ISO 4217 alpha code of the currency.
Minimum length is
3
, maximum length is3
. Format should match the following pattern:^[A-Z]{3}$
. Values areAED
,AMD
,ARS
,AUD
,AZN
,BAM
,BGN
,BHD
,BRL
,CAD
,CHF
,CLP
,CNY
,COP
,CRC
,CZK
,DKK
,DZD
,EGP
,ETB
,EUR
,GBP
,GEL
,HKD
,HUF
,IDR
,INR
,ISK
,JMD
,JOD
,JPY
,KES
,KRW
,KWD
,KZT
,LKR
,LYD
,MAD
,MUR
,MXN
,MYR
,NOK
,NZD
,OMR
,PHP
,PKR
,PLN
,QAR
,RSD
,RUB
,SAR
,SEK
,SGD
,SYP
,THB
,TND
,TRY
,TTD
,TWD
,UAH
,USD
,VND
,XAF
,XOF
, orZAR
. Default value isEUR
. -
Used for
TIM
,GATE4
andIATA
.Format should match the following pattern:
^\d{4}-\d{2}-\d{2}$
.
-
product string | object Required
Any of: ID of a product.
Format should match the following pattern:
product_[A-Za-z0-9]*
.A product is any purchasable compensation option SQUAKE offers. In the simplest case, a product maps to a single project such as "GoodShipping Sustainable Biofuel for Shipping". Depending on client need, SQUAKE also offers bundles of multiple projects; these can be centered around specific goals, e.g., "carbon avoidance", or mixed to achieve a particular price point. Feel free to contact us for more information or custom products.
Hide attributes Show attributes
-
Format should match the following pattern:
product_[A-Za-z0-9]*
. -
locations array[object]
List of all locations impacted by the projects used in this product.
Hide locations attributes Show locations attributes object
-
Two-letter or three-letter code as defined in ISO 3166-1 alpha-2 and alpha-3 respectively.
Minimum length is
2
, maximum length is3
. Format should match the following pattern:^[A-Z]{2,3}$
. -
sub_region string
One to Three-digit UN M49 sub region code.
-
region string
One to Three-digit UN M49 region code.
-
-
certifications array[string]
Certification organizations rate and evaluate the quality of emitted carbon credits; such organizations assess, for example, the inclusion of safeguarding principles, the impact of climate and sustainable development goals, or the presence of a monitoring plan.
Values are
American Carbon Registry
,Australian Biodiversity Unit
,BAFU VER
,Clean Development Mechanism
,DNV
,Ernst & Young
,European Biochar Certification
,Gold Standard CER
,Gold Standard VER
,I-REC
,International Sustainability & Carbon Certification (ISCC)
,ISO 14064
,Moor Futures
,Müller BBM
,Plan Vivo
,TÜV
, orVerified Carbon Standard
. -
title string
A short human readable summary of the description.
-
description string
A human readable description.
-
sdgs array[integer]
The Sustainable Development Goals (SDGs) aim to transform our world. They are a call to action to end poverty and inequality, protect the planet, and ensure that all people enjoy health, justice and prosperity.
Minimum value of each is
1
, maximum value of each is17
. -
files array[object]
Images attached to the product.
Hide files attributes Show files attributes object
-
Format should match the following pattern:
file_[A-Za-z0-9]*
. -
Values are
confirmation_document
,certificate_document
, orproject_image
. -
Byte size of the object
-
Values are
csv
,jpg
,pdf
,png
, orwebp
. -
download_url string(uri)
The link will expire after 1 year. If blank, the document has not been created yet. Please poll until a link is included.
-
notification string
Information pertaining to the file, e.g., when the file will be available
-
-
prices array[object]
Multiple prices may exist, for example, when future price changes are already known.
Hide prices attributes Show prices attributes object
-
Format should match the following pattern:
price_[A-Za-z0-9]*
. -
The total amount in the lower denomination of the currency; e.g. 12.34 USD would be 1234.
-
SQUAKE uses The International System of Units (SI), commonly referred to as "metric system".
Values are
tonne
,kilogram
, orgram
. -
3-letter ISO 4217 alpha code of the currency.
Minimum length is
3
, maximum length is3
. Format should match the following pattern:^[A-Z]{3}$
. Values areAED
,AMD
,ARS
,AUD
,AZN
,BAM
,BGN
,BHD
,BRL
,CAD
,CHF
,CLP
,CNY
,COP
,CRC
,CZK
,DKK
,DZD
,EGP
,ETB
,EUR
,GBP
,GEL
,HKD
,HUF
,IDR
,INR
,ISK
,JMD
,JOD
,JPY
,KES
,KRW
,KWD
,KZT
,LKR
,LYD
,MAD
,MUR
,MXN
,MYR
,NOK
,NZD
,OMR
,PHP
,PKR
,PLN
,QAR
,RSD
,RUB
,SAR
,SEK
,SGD
,SYP
,THB
,TND
,TRY
,TTD
,TWD
,UAH
,USD
,VND
,XAF
,XOF
, orZAR
. Default value isEUR
. -
Used for
TIM
,GATE4
andIATA
.Format should match the following pattern:
^\d{4}-\d{2}-\d{2}$
.
-
-
categories array[object]
-
impact_types array[object]
-
classes array[object]
-
-
Used for
TIM
,GATE4
andIATA
.Format should match the following pattern:
^\d{4}-\d{2}-\d{2}$
. -
Used for
TIM
,GATE4
andIATA
.Format should match the following pattern:
^\d{4}-\d{2}-\d{2}$
. -
3-letter ISO 4217 alpha code of the currency.
Minimum length is
3
, maximum length is3
. Format should match the following pattern:^[A-Z]{3}$
. Values areAED
,AMD
,ARS
,AUD
,AZN
,BAM
,BGN
,BHD
,BRL
,CAD
,CHF
,CLP
,CNY
,COP
,CRC
,CZK
,DKK
,DZD
,EGP
,ETB
,EUR
,GBP
,GEL
,HKD
,HUF
,IDR
,INR
,ISK
,JMD
,JOD
,JPY
,KES
,KRW
,KWD
,KZT
,LKR
,LYD
,MAD
,MUR
,MXN
,MYR
,NOK
,NZD
,OMR
,PHP
,PKR
,PLN
,QAR
,RSD
,RUB
,SAR
,SEK
,SGD
,SYP
,THB
,TND
,TRY
,TTD
,TWD
,UAH
,USD
,VND
,XAF
,XOF
, orZAR
. Default value isEUR
. -
The total amount in the lower denomination of the currency; e.g. 12.34 USD would be 1234.
-
items array[object]
Expand items to receive emissions per item. By default, this is not included.
Hide items attributes Show items attributes object
-
SQUAKE uses The International System of Units (SI), commonly referred to as "metric system".
Values are
tonne
,kilogram
, orgram
. -
external_reference string
-
Values are
accommodation
,air_freight
,bus
,camping_site
,car
,co2_amount
,coffee_production
,cruise
,expenditure
,ferry
,flight
,general
,hotel
,logistics
,logistics_site
,money_amount
,private_jet
,sea_freight
,inland_waterways
,train
,rail_freight
,road_freight
, orvan
. -
Values are
ACRISS
,ADEME
,BASIC
,CLEAN-CARGO
,CO2-EMISSIEFACTOREN-NL
,DIN-EN-16258
,DEFRA
,EU-EEA
,EU-EMSA
,US-EPA
,HCMI
,OFNK
,ECTA
,GLEC
,ICAO
,TIM
, orSQUAKE
.
-
-
400 application/json
Example response
Hide headers attribute Show headers attribute
-
SQUAKE-Request-Id string
Unique identifier linked to this API request. If you need to contact us regarding a specific request, providing the request identifier helps the resolution process.
Format should match the following pattern:
req_[a-zA-Z0-9-]+
.
Hide response attributes Show response attributes object
-
An application-specific error code, expressed as a string value.
Values are
field_validation_error
,server_error
,not_authorized
,not_found
,invalid_methodology
, orinvalid_type
. -
detail string
A human-readable explanation specific to this occurrence of the problem. Like title, this field's value can be localized.
-
source object
An object containing references to the primary source of the error
Additional properties are allowed.
-
-
401 application/json
Example response
Hide headers attribute Show headers attribute
-
SQUAKE-Request-Id string
Unique identifier linked to this API request. If you need to contact us regarding a specific request, providing the request identifier helps the resolution process.
Format should match the following pattern:
req_[a-zA-Z0-9-]+
.
Hide response attributes Show response attributes object
-
An application-specific error code, expressed as a string value.
Values are
field_validation_error
,server_error
,not_authorized
,not_found
,invalid_methodology
, orinvalid_type
. -
detail string
A human-readable explanation specific to this occurrence of the problem. Like title, this field's value can be localized.
-
source object
An object containing references to the primary source of the error
Additional properties are allowed.
-
curl \
-X POST https://api.squake.earth/v2/calculations-with-pricing \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"expand":["items"],"items":[{"type":"accommodation","methodology":"SQUAKE","external_reference":"string","number_of_nights":2,"starts_on":"2020-01-01","ends_on":"2020-01-01","country":"DE","number_of_travelers":1,"square_meters":50,"sauna":false,"parking":true,"swimming_pool":false,"air_conditioner":false,"garage":false}],"product":"product_afg3465afg3","payment_link_return_url":"string","currency":"EUR","carbon_unit":"tonne","distance_unit":"kilometer"}'
{
"expand": [
"items"
],
"items": [
{
"type": "accommodation",
"methodology": "SQUAKE",
"external_reference": "string",
"number_of_nights": 2,
"starts_on": "2020-01-01",
"ends_on": "2020-01-01",
"country": "DE",
"number_of_travelers": 1,
"square_meters": 50,
"sauna": false,
"parking": true,
"swimming_pool": false,
"air_conditioner": false,
"garage": false
}
],
"product": "product_afg3465afg3",
"payment_link_return_url": "string",
"currency": "EUR",
"carbon_unit": "tonne",
"distance_unit": "kilometer"
}
# Headers
# Payload
{
"id": "string",
"carbon_quantity": 42.0,
"carbon_unit": "tonne",
"payment_link": "string",
"price": "price_1MMroL2eZvKYlo2CxbxAACvb",
"product": "product_01fa2d8f04e424",
"valid_from": "2023-01-28",
"valid_until": "2023-01-28",
"currency": "EUR",
"total": 42,
"items": [
{
"carbon_quantity": 42.0,
"carbon_unit": "tonne",
"external_reference": "string",
"type": "air_freight",
"methodology": "GLEC"
}
]
}
# Headers
SQUAKE-Request-Id: req_70394c00-728e-4d70-90bc-2b589c9ebdf8
# Payload
[
{
"code": "field_validation_error",
"detail": "string",
"source": {
"id": "string",
"attribute": "string",
"model": "string"
}
}
]
# Headers
SQUAKE-Request-Id: req_70394c00-728e-4d70-90bc-2b589c9ebdf8
# Payload
[
{
"code": "field_validation_error",
"detail": "string",
"source": {
"id": "string",
"attribute": "string",
"model": "string"
}
}
]