Calculate Transaction Footprints
POST {{baseUrl}}/transaction-footprints
Calculates carbon emission based on the payment transaction amount, the merchant category code and the AIIA code. You can send one or more transactions together to get the transaction footprints.
Below is the approach to deliver MCC or AIIA based scoring.
mcc
field provided in the request with required fields : MCC based scoring will be delivered.type
and additionalInformation
field provided in the request with required fields : AIIA based scoring will be delivered.Request Body
{"0"=>{"transactionId"=>"ee421c25-f928-4bf-b8843600b76b860d", "type"=>"AIIA", "amount"=>{"value"=>100, "currencyCode"=>"USD"}, "cardBrand"=>"OTH", "additionalInformation"=>[{"key"=>"aiiaCode", "value"=>"115"}]}, "1"=>{"transactionId"=>"fdc4626c-f51e-4ba6-9728-c79ac1d9aec8", "mcc"=>"5962", "amount"=>{"value"=>50, "currencyCode"=>"EUR"}}}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Accept | string |
RESPONSES
status: OK
[{"transactionId":"a213c72c-f13a-4930-a5f9-8cf765d42ca1","cardBrand":"OTH","scoreReference":"AIIA","carbonEmissionInGrams":469343.47,"carbonEmissionInOunces":16555.62,"category":{"mainCategory":"Home,","subCategory":"Utilities,","sector":"Electric utilities,","sectorCode":151010}},{"transactionId":"fdc4626c-f51e-4ba6-9728-c79ac1d9aec8","mcc":"5962","scoreReference":"MCC","carbonEmissionInGrams":11905.7,"carbonEmissionInOunces":419.96,"category":{"mainCategory":"Shopping","subCategory":"Department Store","sector":"Specialty Retail \u0026 Services","sectorCode":"302"}}]