Edit information of the business with the given id. Current user needs UserRole ADMIN, ACCOUNT_MANAGER or BUSINESS_MANAGER.
A Business object
Locales the business's locations should be translated into. Requires the LOCATION_TRANSLATION feature on the business's product plan.
Custom fields allow for additional information to be added at the location level. All locations within the business will have the same list of custom fields.
True if the business is allowed to start a sync. Only relevant for Businesses with more than 10 locations.
Date when the business automatically changes its product plan to the new product plan (defined by nextProductPlanId)
ID of the next product plan applied for the business on the defined effectiveDate
- https://uberall.com/apihttps://uberall.com/api/businesses/{id}
- Mock Serverhttps://docs.uberall.com/_mock/apis/swagger/businesses/{id}
- X-API-KEY
- Authorization
curl -i -X PATCH \
'https://uberall.com/api/businesses/{id}' \
-H 'Content-Type: application/json' \
-H 'X-API-KEY: YOUR_API_KEY_HERE' \
-d '{
"id": 0,
"name": "string",
"type": "[SMB, ENTERPRISE]",
"streetAndNo": "string",
"addressLine2": "building, floor...",
"province": "string",
"zip": "string",
"city": "string",
"identifier": "string",
"country": "AF",
"phone": "string",
"productPlan": {
"defaultPlan": true,
"description": "string",
"identifier": "string",
"name": "string",
"status": "ACTIVE",
"automationDirectories": [
"FOURSQUARE"
],
"billingPeriod": 0,
"countryPrices": [
{
"country": "AF",
"price": 0,
"marketDevelopmentFunds": 99,
"priceSetup": 0
}
],
"defaultMarketDevelopmentFunds": 0,
"defaultOriginalPrice": 0,
"defaultPrice": 0,
"defaultPriceSetup": 0,
"duration": 0,
"features": [
"ADS"
],
"initialBillingPeriod": 0,
"initialDuration": 0
},
"preSync": true,
"translationLocales": [
{}
],
"dateCreated": "2019-08-24T14:15:22Z",
"status": "CREATED",
"countryPrices": [
{
"country": "AF",
"price": 0,
"marketDevelopmentFunds": 99,
"priceSetup": 0
}
],
"defaultPrice": 0,
"defaultOriginalPrice": 0,
"defaultPriceSetup": 0,
"customFields": "string",
"dateExpiration": "2019-08-24T14:15:22Z",
"businessSyncable": true,
"numOfLocations": 0,
"effectiveDate": "2019-08-24T14:15:22Z",
"nextProductPlanId": 0,
"priceRetail": 0,
"contractDuration": 0,
"defaultPriceMin": 0,
"defaultCurrency": "string"
}'Successfully edited Business
{
"status": "SUCCESS",
"message": "string",
"warnings": [
"string"
],
"response": {
"business": {
"id": 0,
"name": "string",
"type": "[SMB, ENTERPRISE]",
"streetAndNo": "string",
"addressLine2": "building, floor...",
"province": "string",
"zip": "string",
"city": "string",
"identifier": "string",
"country": "AF",
"phone": "string",
"productPlan": {
"defaultPlan": true,
"description": "string",
"identifier": "string",
"name": "string",
"status": "ACTIVE",
"automationDirectories": [
"FOURSQUARE"
],
"billingPeriod": 0,
"countryPrices": [
{
"country": "AF",
"price": 0,
"marketDevelopmentFunds": 99,
"priceSetup": 0
}
],
"defaultMarketDevelopmentFunds": 0,
"defaultOriginalPrice": 0,
"defaultPrice": 0,
"defaultPriceSetup": 0,
"duration": 0,
"features": [
"ADS"
],
"initialBillingPeriod": 0,
"initialDuration": 0
},
"preSync": true,
"translationLocales": [
{}
],
"dateCreated": "2019-08-24T14:15:22Z",
"status": "CREATED",
"countryPrices": [
{
"country": "AF",
"price": 0,
"marketDevelopmentFunds": 99,
"priceSetup": 0
}
],
"defaultPrice": 0,
"defaultOriginalPrice": 0,
"defaultPriceSetup": 0,
"customFields": "string",
"dateExpiration": "2019-08-24T14:15:22Z",
"businessSyncable": true,
"numOfLocations": 0,
"effectiveDate": "2019-08-24T14:15:22Z",
"nextProductPlanId": 0,
"priceRetail": 0,
"contractDuration": 0,
"defaultPriceMin": 0,
"defaultCurrency": "string"
}
}
}