Post check user’s VAT number.
Authorization is required to call this api.
API is designed for collecting of customer’s VAT numbers and checking for correctness.
POST /returns/declarations/check_users_vat_number/{access_token}
Parameter |
Type |
Description |
input_vat_numbers |
json |
JSON object contains information about |
access_token |
string |
User’s website token |
Api returns a summary_rates JSON object with an array of summarized rates for each region/state.
{ "vat_numbers": [ { "country": "CZE", "number": "685345797" }, { "country": "EST", "number": "101977100" }, { "country": "CZE", "number": "685"} ] }
Summary response shortened for brevity.
{ "correct": [ "685345797", "101977100" ], "incorrect": [ "685" ], "pending": [] } "incorrect": [ "685" ] "pending": [] }