Authorization: ********************
{
"fees": [
{
"flat": {
"currency_code": "string",
"units": 0,
"nanos": 0
}
}
],
"params": {
"property1": {
"bool_val": true
},
"property2": {
"bool_val": true
}
},
"call_sid": 0,
"call_type": "INBOUND",
"request_origin": "REQUEST_ORIGIN_UNKNOWN"
}
curl --location --request POST 'https://api.cbf.tcn.com/api/v1alpha1/integrations/calculatefees' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"fees": [
{
"flat": {
"currency_code": "string",
"units": 0,
"nanos": 0
}
}
],
"params": {
"property1": {
"bool_val": true
},
"property2": {
"bool_val": true
}
},
"call_sid": 0,
"call_type": "INBOUND",
"request_origin": "REQUEST_ORIGIN_UNKNOWN"
}'
{
"calculated_fees": {
"property1": {
"currency_code": "string",
"units": 0,
"nanos": 0
},
"property2": {
"currency_code": "string",
"units": 0,
"nanos": 0
}
},
"total_amount_due": {
"currency_code": "string",
"units": 0,
"nanos": 0
}
}