Update Revenue Centers (v2)

Endpoint: config/sim/v2/hierarchy/bulkUpdateRevenueCenters

Pre-Processing Validation Criteria

Validation messages:
  • A non-empty request file is required.
  • You do not have permissions to access this resource.
  • The hierUnitId field is required.
  • Name cannot exceed 128 characters.
  • Name should contain a valid language.
  • Invalid phoneCountryCode specified.
  • Missing phoneCountryCode. Cannot save phoneNumber without a valid phoneCountryCode.
  • The field PhoneNumber must be a string with a maximum length of 20.
  • The field Address1 must be a string with a maximum length of 250.
  • The field Address2 must be a string with a maximum length of 250.
  • The field Address3 must be a string with a maximum length of 250.
  • The field City must be a string with a maximum length of 40.
  • The field StateOrRegionCode must be a string with a maximum length of 20.
  • The field StateOrRegion must be a string with a maximum length of 40.
  • The field ZipOrPostalCode must be a string with a maximum length of 20.
  • The field CountryCode must be a string with a maximum length of 20.
  • The field Country must be a string with a maximum length of 40.
  • The field Latitude must be a string with a maximum length of 15.
  • The field Longitude must be a string with a maximum length of 15.
  • The field Floor must be a string with a maximum length of 64.
  • The field RvcTypes must be a string with a maximum length of 32.
  • Duplicate hierUnitId record passed in the list.
  • Invalid Language Code specified: {list of invalid Ids}.
  • Duplicate columnName within dataExtensions.
  • rvcGroupNum cannot be null or 0 for any rvcGroup.
  • Duplicate rvcGroupNum within rvcGroups.
  • Latitude must be in range of -90 to 90.
  • Longitude must be in range of -180 to 180.
  • The field imageIndex cannot be null or 0 for any given image.
  • The field imageIndex should be unique for each image.
  • The field imageIndex must be between 1 and 4.
  • Invalid countryCode specified.
  • Both StateOrRegionCode and StateOrRegion are required to assign a state or region.
  • Missing countryCode. Cannot assign stateOrRegion without a valid countryCode.
  • The stateOrRegion does not exist for specified countryCode.

Sample Request

[
    {
        "hierUnitId": 25066,
        "ConsumerFacingName": null,
        "phoneCountryCode": null,
        "phone": null,
        "address1": null,
        "address2": null,
        "address3": null,
        "city": null,
        "stateOrRegionCode": null,
        "stateOrRegion": null,
        "zipOrPostalCode": null,
        "countryCode": null,
        "latitude": null,
        "longitude": null,
        "floor": null,
        "kdsControllerId": null,
        "isLDSActive": true,
        "rvcTypes": null,
        "rvcGroups": null,
        "images": null,
        "dataExtensions": null,
        "name": {
            "4": "Indian Biryani House"
        }
    },
    {
        "ConsumerFacingName": {
            "4": "Indian Biryani House"
        },
        "phoneCountryCode": "IN",
        "phone": "9999999999",
        "address1": "Hno.12",
        "address2": "Ayodhya Bypass",
        "address3": "Narela Shankari",
        "city": "Bhopal",
        "stateOrRegionCode": "MP",
        "stateOrRegion": "Madhya Pradesh",
        "zipOrPostalCode": "462022",
        "countryCode": "IN",
        "latitude": "23",
        "longitude": "50",
        "floor": "1st",
        "kdsControllerId": 19,
        "isLDSActive": false,
        "rvcTypes": "11111111111111111111111111111111",
        "rvcGroups": [
            {
                "rvcGroupNum": 2
            },
            {
                "rvcGroupNum": 4
            }
        ],
        "images": [
            {
                "imageIndex": 2,
                "url": "https://objectstorage.us-phoenix-1.oraclecloud.com/n/idvvfekwvhut/IC_FBGBU_Spectra_bt-sim-251215075149-LAM-c0eabb51-24ab-4368-90d6-552a3b007b25/o/LAM260630070258758.png",
                "altText": "Micros-2",
                "description": "Micros-2",
                "isCloudImage": false,
                "size": "Size: 8 kb, png: 389 x 129 px"
            }
        ],
        "hierUnitId": 25067,
        "dataExtensions": [
            {
                "columnName": "RVCEXT",
                "value": "123"
            },
            {
                "columnName": "RVCEXT-2",
                "value": "789"
            }
        ],
        "name": {
            "4": "Indian Biryani House"
        }
    }
]