post https://api.yayzy.com/business/offsets
Offset carbon footprint
API to purchase an offset, when your customer offsets their carbon footprint from within their app
Example Request
{
"priceId": "price_1IcuHmKddDnm8ttlrTpapzal",
"endUserId": "293af0c8-8f3d-11ec-b909-0242ac120002",
"kgToOffset": 1000
}
Example response
{
"offsetTransactionId": "632a0f19651d0a9dab5e169c",
"certificateUrl": "https://yayzy-public-assets.s3.eu-west-2.amazonaws.com/certificates/main/632a0f19651d0a9dab5e169c.jpg"
}
{
"status": 404,
"message": "Price not found"
}
Price ID for the project is wrong, please check it.