Create a flight estimate given the airports
POST {{baseUrl}}/v1/estimates/flight
Creates a flight estimate for the amount of CO2 to be compensated. An order in the draft
state may be created based on the parameters, linked to the estimate.
Request Body
{"origin_airport"=>"SFO", "destination_airport"=>"LAX", "project_id"=>"pro_prod_8ef8c4473803046247818d35f9f8294b", "create_order"=>false}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string |
RESPONSES
status: Created
{"success":false,"error":{},"data":{"id":"proident","production":false,"type":"cillum ipsum fugiat magna occa","mass_g":-39773289,"order":{"id":"occaecat reprehenderit dolor dolor","mass_g":665420585,"production":true,"state":"draft","allocation_state":"partially_allocated","price_cents_usd":"non Duis","patch_fee_cents_usd":"aliqua aute adipisicing magna","allocations":[{"id":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"production":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"mass_g":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}},{"id":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"production":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"mass_g":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}}],"metadata":{}}}}