Allows the org admin to update existing stores in bulk
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Use this API to update multiple existing stores in bulk. You can modify store details such as contact information, location coordinates, timezone, currency, language settings, and external IDs. The API processes stores in batches of 200 for optimal performance.
This API performs a full replace, not a partial update
Any field you omit from the request body will be saved as empty, overwriting existing data. Only include fields you intend to update, and always pass the current value for fields you want to keep unchanged.
Example: If a store has description: "Main flagship store" and you send an update request without the description field, the description will be cleared.
Example request
curl --location --request PUT 'https://eu.intouch.capillarytech.com/v2/orgEntity/store/bulk' \
--header 'X-CAP-API-OAUTH-TOKEN: eyJraWQiImFsZyI6IlJTMjU2In0.eyJpc3MiOiJDYXBpbGxhcnkiLCJleHAiOjE3NzUxNDgzNzUsImp0aSI6InhoZmYyd0M3NldLa3B4dW8xNGo5ZVEiLCJpYXQiOjE3NzUxNDQ3NzUsInN1YiI6Ik5lZXJhaiIsImNsaWVudF9pZCI6MjE5NzYsIm9yZ19pZCI6MTAwNzM3LCJ0b2tlbl91c2UiOiJ0b2tlbl9hY2Nlc3MiLCJjbGllbnRfa2V5IjoieHY0TFc3MXJOOXJyekY4NlcxMUx3M0pneiIsImRlZmF1bHRfdGlsbCI6NzUxNTUyODIsImhhc19wc2lfYWNjZXNzIjp0cnVlLCJzY29wZXMiOiJbXSJ9.bv2KjNQrsjy7_gCpbjq6GURfw1RDxIjXMYlT164lrN31Vnp3YJJrXwbM1yyOG-iStKAJuedyjBx7T3dua4ysos7L_UJg47Q0A-xbVA1R6Vqp3m2lPlX_pI8flBu5NdF2n3A3weCmXQj6Hyn2Rhbcs8il4lxCPPt3z7iRMzb66-d6GnpsuDodLfbUFF9j8GvVa2_Qq51xAjO13dcnkHdrtKFZrK5TCHgY-bBDMdW4A613d1tCzpfQo-5kiNSLwQjWDN6xQ-pcgXW5OU7SwIWhiKVApYJSFfBx6mNNsdBnculhgB-JwyXNwh8J7McBK8d-_t6RY-w_T_VA5YIhyNTwCA' \
--header 'Content-Type: application/json' \
--data-raw '[
{
"id" : 75228794,
"code": "thisisastore",
"description": "This is a test store",
"name": "ThisisAStore",
"referenceId": -1,
"email": "[email protected]",
"landline": "080-99999999",
"latitude": "13.0827",
"longitude": "80.2707",
"cityId": 2,
"areaId": 2,
"default": false,
"externalIds": [
"a1",
"a2",
"a3"
],
"adminType": "GENERAL",
"isActive": true,
"parentConceptId": "75216471",
"parentZoneId": "75152646"
}
]'Prerequisites
- Authentication: OAuth authentication
- Access group resource: Read and write access to the
Storeresource - The stores being updated must already exist in the system (identified by store code)
Body parameters
Note: The Updatable column indicates whether a field can be changed after creation.
Fields marked No must still be supplied in the request body but will be ignored.
Field Type Required Description Updatable idinteger Optional Unique ID of the store to be updated. No codestring Required Unique store code used to identify the store to update. The store must already exist in the system. No namestring Required Name of the store. Used for validation along with code.No descriptionstring Optional Description of the store. Maximum 250 characters. Yes referenceIdinteger Optional Reference ID of the store. Pass -1if not applicable.Yes adminTypeenum Optional Admin type of the store. Values: GENERAL,ADMIN.Yes isActiveboolean Optional Indicates whether the store is active. Yes isOuEnabledboolean Optional Indicates whether the organisation unit (OU) is enabled for the store. Only applicable when the store is part of a concept hierarchy. Yes defaultboolean Optional Indicates whether this is the default store. Yes parentConceptIdinteger Optional ID of the parent concept the store belongs to. Yes parentZoneIdinteger Optional ID of the parent zone the store belongs to. Yes timeZoneIdinteger Optional Unique ID representing the timezone of the store's geographical location. Example: 191for Asia/Kolkata.Yes currencyIdinteger Optional Unique ID representing the base currency of the store's location. Example: 230for Singapore Dollar,211for Australian Dollars.Yes languageIdinteger Optional Unique ID representing the language used at the store. Example: 393.Yes externalIdsarray Optional List of external identifiers associated with the store. Supports up to 3 external IDs. Yes string Optional Store's email address. Yes mobilestring Optional Store's mobile number. Yes landlinestring Optional Store's landline number. Yes latitudestring Optional Latitude coordinate of the store. Yes longitudestring Optional Longitude coordinate of the store. Yes cityIdinteger Optional Unique ID for the city where the store is located. Yes areaIdinteger Optional Unique ID for the area where the store is located. Yes
Example response
{
"response": [
{
"entityId": 75228794,
"result": {
"id": 75228794,
"code": "thisisastore",
"description": "This is a test store",
"name": "ThisisAStore",
"type": "STORE",
"referenceId": -1,
"adminType": "GENERAL",
"isActive": true,
"parentZoneId": 75152646,
"parentConceptId": 75216471,
"externalIds": [
"a1",
"a2",
"a3"
],
"email": "[email protected]",
"landline": "080-99999999",
"latitude": "13.0827",
"longitude": "80.2707",
"cityId": 2,
"areaId": 2,
"default": false
},
"errors": [],
"warnings": []
}
],
"totalCount": 1,
"failureCount": 0
}Response parameters
| Field | Type | Description |
|---|---|---|
response | array | List of responses for each store update. |
response[].entityId | integer | Unique identifier of the updated store. Returns null if the store was not found. |
response[].result | object | Store details that were submitted for update. |
response[].result.id | integer | Unique ID of the store. |
response[].result.code | string | Store code used to identify the store. |
response[].result.name | string | Name of the store. |
response[].result.description | string | Description of the store. |
response[].result.type | enum | Entity type. Value: STORE. |
response[].result.referenceId | integer | Reference ID of the store. Returns -1 if not set. |
response[].result.adminType | enum | Admin type of the store. Example: GENERAL. |
response[].result.isActive | boolean | Indicates whether the store is active. |
response[].result.parentZoneId | integer | ID of the parent zone the store belongs to. |
response[].result.parentConceptId | integer | ID of the parent concept the store belongs to. |
response[].result.externalIds | array | List of external identifiers associated with the store. |
response[].result.email | string | Store's email address. |
response[].result.landline | string | Store's landline number. |
response[].result.latitude | string | Latitude coordinate of the store. |
response[].result.longitude | string | Longitude coordinate of the store. |
response[].result.cityId | integer | City ID of the store. |
response[].result.areaId | integer | Area ID of the store. |
response[].result.default | boolean | Indicates whether this is the default store. |
response[].errors | array | List of errors related to the store update, if any. |
response[].warnings | array | List of warnings related to the store update, if any. |
totalCount | integer | Total number of stores processed. |
failureCount | integer | Total number of stores that failed to update. |
Error & warning codes
| Code | Description |
|---|---|
| STORE_CODE_MISSING (1234) | The code field is missing from the request for a store entry. |
| STORE_NAME_NOT_FOUND (1235) | No store matching the provided name was found in the system. |
