Update business unit
Updates the information about business units in the dataset.
HTTP request
PUT 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(UpdateBusinessUnitsModel) Required. List of business units. |
UpdateBusinessUnitsModel | |
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.
18.05.2023 9:30:10