Create business unit
Creates a list of business units. A business unit is a company or a company's division that receives an invoice. The business unit is used to determine the rules for checking the invoice data, the tax rates, etc.
HTTP request
POST https://api-{location-id}.flexicapture.com/v2/dataset/businessunits where {location-id} is the supported location. |
Request body
The request body contains data with the following structure:
JSON representation |
{ "region": "US", "units": [ { "external_id": "string", "name": [ "string" ], "street": [ "string" ], "city": [ "string" ], "state": [ "string" ], "zip": [ "string" ], "country_code": "string", "vat": [ "string" ] } ] } |
Fields | |
model |
body, object(CreateBusinessUnitsModel) Required. List of business units for the region. |
CreateBusinessUnitsModel | |
region |
string Required. Business unit region. Supported regions: US: USA, AU: Australia, EU: European Union countries, CA: Canada. |
units[] |
object(BusinessUnitModel) Required. List of business units. |
BusinessUnitModel | |
external_id |
string Required. External ID. |
name[] |
string Required. Business unit name. |
street[] |
string Optional. Business unit street. |
city[] |
string Optional. Business unit city. |
state[] |
string Optional. Business unit state. |
zip[] |
string Optional. Business unit zip code. |
country_code |
string Required. Country code in ISO 3166-1 alpha-2 format. |
vat[] |
string Optional. Tax payer ID. |
Response
If successful, the server returns a 204 OK HTTP status.
5/18/2023 9:30:10 AM