You are currently viewing No Output from VAT Code in REST API

No Output from VAT Code in REST API

Description:

Output schema given by customer is in the below format.

{
“vat_number”: “NL001788061B01”,
“country_code”: “NL”,
“success”: true,
“code”: 200
}

Works with Postman and all  versions of Evolve

Cause:

Syntax issue

Solution:

provide the output schema in the below format to get the values for the vat_number, country_code, company_name, company_address and run the scenario.

{
  “success”: true,
  “code”: 200,
  “data”: {
    “valid”: true,
    “company”: {
      “vat_number”: “001788061B01”,
      “country_code”: “NL”,
      “company_name”: “DIVERSEY B.V.”,
      “company_address”: “\nMAARSSENBROEKSEDIJK 00002\n3542DN UTRECHT\n”
    }
  }
}

Leave a Reply