Add Business units API

Add VAT and/or Branch to the business hierarchy of your account in a single request.

Request Method

POST

Request URL

https://api-sandbox.cleartax.com/middle-east/ksa/einvoicing/v1/businessHierarchy

Request Headers

Request Path Params

There are no path parameters for this API.

Request Query Params

There are no query parameters for this API.

Request Body

Sample Request

Request Body

{
   "Vat":"300492946901103",
   "VatDisplayName" : "vatName",
   "Branch":"branchName",
   “OrganizationUnitName”:”legalName”
}

Response Status Codes

Response Schema

Sample Response

{
   “Success”:true,
   "Vat":"300492946901103",
   "VatDisplayName" : "vatName",
   "Branch":"branchName",
   “OrganizationUnitName”:”legalName”
}

API Validations

  • Only VAT will be validated with gcc rules.

  • VAT should be 15 digit number.

  • Only numeric values allowed.

API Constraints

  • This API needs to be authenticated with a valid user authentication token. If the authtoken is not present or is invalid, the API will return HTTP Status Code 401.

  • If the user wants to add Branch, then the “Branch” field should be present in the request field, otherwise it will throw an error for an already existing vat.

Last updated