Create an estimate based on mass of CO2
POST {{baseUrl}}/v1/estimates/mass
Creates an estimate for the mass of CO2 to be compensated. An order in the draft
state will also be created, linked to the estimate.
Request Body
{"mass_g"=>30000, "create_order"=>true}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Patch-Version | number |
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":{}}}}