Get tax details
The country the organization is taxed in and the tax number on
file. The country comes from the billing address, or from the saved
card when no address has been given. editable says whether a tax
number can be filed for that country. Every field is empty while no
billing details or card have been saved.
Requires the billing:profile:read scope.
Authorization
Responses
200
The tax details.
dataTaxDetailsShow TaxDetails properties
countrystringtax_idstringtax_id_typestringLeft out when there is no number.editablebooleanWhether a tax number can be filed for this country.
401
No API key was sent, or it is unknown, revoked or expired (UNAUTHORIZED).
errorobject requiredcodestring requiredmessagestring requiredrequest_idstring
403
The key lacks the scope this endpoint needs (FORBIDDEN).
errorobject requiredcodestring requiredmessagestring requiredrequest_idstring
429
Too many requests (RATE_LIMITED). Wait for Retry-After seconds.
Retry-AfterintegerSeconds to wait before retrying.
errorobject requiredcodestring requiredmessagestring requiredrequest_idstring
502
The tax details could not be loaded from the payment provider (TAX_DETAILS_UNAVAILABLE). Retry later.
errorobject requiredcodestring requiredmessagestring requiredrequest_idstring
503
Payments are not enabled on this environment (PAYMENTS_DISABLED).
errorobject requiredcodestring requiredmessagestring requiredrequest_idstring
Example request
curl -X GET 'https://evohub.io/api/v1/billing/tax-details' \
-H 'Authorization: Bearer <TOKEN>'
