cURL
grossToNet
curl --request POST \ --url https://api.cadanapay.com/v1/tax/estimate \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "countryCode": "QA", "type": "gross-to-net", "salary": { "amount": 1000000, "currency": "QAR" } } '
200
{ "grossAmount": { "amount": 1000000, "currency": "QAR" }, "netAmount": { "amount": 930000, "currency": "QAR" }, "deductions": [ { "name": "Social Insurance", "amount": { "amount": 70000, "currency": "QAR" } } ], "employerContributions": [ { "name": "Social Insurance", "amount": { "amount": 140000, "currency": "QAR" } } ] }
Estimate gross or net salary for a given country and type
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Country code for tax estimation
Type of estimation
gross-to-net
net-to-gross
Show child attributes
Optional region/state code
Estimate taxes response