Sum JSON Objects
1 min
Sums the values present in a given key in JSON Objects within a list
API Definition
Sum JSON Objects API
Call the following API:
POST
https://orca.pathfix.com/functions/list/sum
json
{
"input": [{
"spend": "46.01",
"type": "Travel"
},
{
"spend": "52",
"type": "Food"
}
],
"key": "spend"
}200
{
"output": {
"value": 98.00999999999999,
"cieling": 99,
"ceiling": 99,
"floor": 98,
"abs": 98,
"round": 98,
"round1": 98,
"round2": 98.01,
"1decimal": "98.0",
"2decimal": "98.01",
"3decimal": "98.010"
}
}404
{
"message": "error"
}