Skip to main content
POST
/
api
/
v1
/
taxes
/
calculate
Calculate taxes
curl --request POST \
  --url https://payments.oaknetwork.org/api/v1/taxes/calculate \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "provider": "<string>"
}
'
{
  "msg": "<string>",
  "data": {
    "provider": "<string>",
    "provider_response": {}
  }
}

Authorizations

Authorization
string
header
required

Merchant authentication token. Obtained via POST /api/v1/merchant/token/grant. Pass as: Authorization: Bearer

Body

application/json
provider
string
required

Provider name (case-insensitive)

Response

Tax calculation result

msg
string
data
object

Tax calculation result. Echoes the request body fields and adds a provider_response object containing the raw tax-provider reply. Exact keys inside provider_response vary per provider.