Create a transaction emission estimate (batch)
Perform multiple transaction emissions estimate in one request.
Each estimate is handled individually.
The response contains estimates or errors in the same orders as the request.
Parameters
An array of transaction estimate requests.
Returns
An array representing multiple transaction emission estimates.
Returned in the same order as the request.
curl 'https://api.lune.co/v1/estimates/transactions/batch' \
-H 'Authorization: Bearer <API_KEY>' \
-H 'Content-Type: application/json' \
-X POST \
-d '[
{
"value": {
"value": "8.99",
"currency": "USD"
},
"merchant": {
"category_code": "5411",
"name": "Starbucks",
"country_code": "USA"
}
},
{
"value": {
"value": "120",
"currency": "USD"
},
"merchant": {
"category_code": "3001",
"name": "British Airways",
"country_code": "USA"
}
},
{
"value": {
"value": "8.99",
"currency": "USD"
},
"merchant": {
"category_code": "5818",
"name": "Netflix",
"country_code": "USA"
}
}
]'
[
{
"id": "08QD7GPaBx5b6Y6mJlWyONXLvrZljRE2",
"mass": {
"amount": "0.01388",
"unit": "t"
},
"quote": {
"estimated_quantity": "0.01388",
"estimated_commission": "0.04",
"estimated_total_cost": "0.38",
"estimated_offset_cost": "0.34",
"requested_value": null,
"requested_quantity": "0.01388",
"currency": "USD",
"bundles": [
{
"bundle_id": "q9aKx7b6nNXMk3Yv3pD1mlW5Od2eLZE8",
"bundle_name": "Conserving forests in Asia",
"quantity": "0.013186",
"unit_price": "12.8",
"gross_unit_price": "14.22",
"offset_cost": "0.17",
"insufficient_available_quantity": null
},
{
"bundle_id": "xWaKJL3okjD46VpJ4yGXnQNZRe1vzP0w",
"bundle_name": "Ocean Carbon Removal",
"quantity": "14.22",
"unit_price": "250",
"gross_unit_price": "277.78",
"offset_cost": "0.17",
"insufficient_available_quantity": null
}
]
},
"request": {
"value": {
"value": "8.99",
"currency": "USD"
},
"merchant": {
"category_code": "5411",
"name": "Starbucks",
"country_code": "USA"
}
}
},
{
"id": "02QD7GPaBx5b6Y6mJlZyONXLvrZljRE2",
"mass": {
"amount": "0.22179",
"unit": "t"
},
"quote": {
"estimated_quantity": "0.221789",
"estimated_commission": "0.61",
"estimated_total_cost": "5.99",
"estimated_offset_cost": "5.38",
"requested_value": null,
"requested_quantity": "0.22179",
"currency": "USD",
"bundles": [
{
"bundle_id": "q9aKx7b6nNXMk3Yv3pD1mlW5Od2eLZE8",
"bundle_name": "Conserving forests in Asia",
"quantity": "0.2107",
"unit_price": "12.41",
"gross_unit_price": "13.79",
"offset_cost": "2.62",
"insufficient_available_quantity": null
},
{
"bundle_id": "xWaKJL3okjD46VpJ4yGXnQNZRe1vzP0w",
"bundle_name": "Ocean Carbon Removal",
"quantity": "0.011089",
"unit_price": "250",
"gross_unit_price": "277.78",
"offset_cost": "2.78",
"insufficient_available_quantity": null
}
]
},
"request": {
"value": {
"value": "120",
"currency": "USD"
},
"merchant": {
"category_code": "3001",
"name": "",
"country_code": "USA"
}
}
},
{
"id": "04QD7GPaBx5b6Y6mJlZyONXLvrZljRE2",
"mass": {
"amount": "0.01388",
"unit": "t"
},
"quote": {
"estimated_quantity": "0.01388",
"estimated_commission": "0.04",
"estimated_total_cost": "0.38",
"estimated_offset_cost": "0.34",
"requested_value": null,
"requested_quantity": "0.01388",
"currency": "USD",
"bundles": [
{
"bundle_id": "q9aKx7b6nNXMk3Yv3pD1mlW5Od2eLZE8",
"bundle_name": "Conserving forests in Asia",
"quantity": "0.013186",
"unit_price": "12.8",
"gross_unit_price": "14.22",
"offset_cost": "0.17",
"insufficient_available_quantity": null
},
{
"bundle_id": "xWaKJL3okjD46VpJ4yGXnQNZRe1vzP0w",
"bundle_name": "Ocean Carbon Removal",
"quantity": "14.22",
"unit_price": "250",
"gross_unit_price": "277.78",
"offset_cost": "0.17",
"insufficient_available_quantity": null
}
]
},
"request": {
"value": {
"value": "8.99",
"currency": "USD"
},
"merchant": {
"category_code": "5818",
"name": "Netflix",
"country_code": "USA"
}
}
}
]