Update Bulk Stores

Allows the org admin to update existing stores in bulk

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

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 Store resource
  • 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.

FieldTypeRequiredDescriptionUpdatable
idintegerOptionalUnique ID of the store to be updated.No
codestringRequiredUnique store code used to identify the store to update. The store must already exist in the system.No
namestringRequiredName of the store. Used for validation along with code.No
descriptionstringOptionalDescription of the store. Maximum 250 characters.Yes
referenceIdintegerOptionalReference ID of the store. Pass -1 if not applicable.Yes
adminTypeenumOptionalAdmin type of the store. Values: GENERAL, ADMIN.Yes
isActivebooleanOptionalIndicates whether the store is active.Yes
isOuEnabledbooleanOptionalIndicates whether the organisation unit (OU) is enabled for the store. Only applicable when the store is part of a concept hierarchy.Yes
defaultbooleanOptionalIndicates whether this is the default store.Yes
parentConceptIdintegerOptionalID of the parent concept the store belongs to.Yes
parentZoneIdintegerOptionalID of the parent zone the store belongs to.Yes
timeZoneIdintegerOptionalUnique ID representing the timezone of the store's geographical location. Example: 191 for Asia/Kolkata.Yes
currencyIdintegerOptionalUnique ID representing the base currency of the store's location. Example: 230 for Singapore Dollar, 211 for Australian Dollars.Yes
languageIdintegerOptionalUnique ID representing the language used at the store. Example: 393.Yes
externalIdsarrayOptionalList of external identifiers associated with the store. Supports up to 3 external IDs.Yes
emailstringOptionalStore's email address.Yes
mobilestringOptionalStore's mobile number.Yes
landlinestringOptionalStore's landline number.Yes
latitudestringOptionalLatitude coordinate of the store.Yes
longitudestringOptionalLongitude coordinate of the store.Yes
cityIdintegerOptionalUnique ID for the city where the store is located.Yes
areaIdintegerOptionalUnique 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

FieldTypeDescription
responsearrayList of responses for each store update.
response[].entityIdintegerUnique identifier of the updated store. Returns null if the store was not found.
response[].resultobjectStore details that were submitted for update.
response[].result.idintegerUnique ID of the store.
response[].result.codestringStore code used to identify the store.
response[].result.namestringName of the store.
response[].result.descriptionstringDescription of the store.
response[].result.typeenumEntity type. Value: STORE.
response[].result.referenceIdintegerReference ID of the store. Returns -1 if not set.
response[].result.adminTypeenumAdmin type of the store. Example: GENERAL.
response[].result.isActivebooleanIndicates whether the store is active.
response[].result.parentZoneIdintegerID of the parent zone the store belongs to.
response[].result.parentConceptIdintegerID of the parent concept the store belongs to.
response[].result.externalIdsarrayList of external identifiers associated with the store.
response[].result.emailstringStore's email address.
response[].result.landlinestringStore's landline number.
response[].result.latitudestringLatitude coordinate of the store.
response[].result.longitudestringLongitude coordinate of the store.
response[].result.cityIdintegerCity ID of the store.
response[].result.areaIdintegerArea ID of the store.
response[].result.defaultbooleanIndicates whether this is the default store.
response[].errorsarrayList of errors related to the store update, if any.
response[].warningsarrayList of warnings related to the store update, if any.
totalCountintegerTotal number of stores processed.
failureCountintegerTotal number of stores that failed to update.

Error & warning codes

CodeDescription
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.
Body Params
Response

Language
Credentials
Header
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json