Store API endpoints
Create/update a branch
Use this endpoint to create/update a branch.
A branch belongs to a brand, and when a branch is created through this API, it is not considered as a real branch in our system. However, there is a manual process required by our operations team to map the branch to an actual Careem outlet. This process must be completed only once after each new branch is created using this API. You cannot create any catalog for a branch until it has mapped.
put/branches/{branch_id}
Request
- Base URLhttps://apigateway.careemdash.com/pos/api/v1
- AuthOAuth 2Client credentialsToken URLhttps://identity.careem.com/tokenScopespos
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
branch_idstring required
A unique branch ID string provided by vendor or restaurant
Headers
Authorizationstring required
User-Agentstring required
Brand-Idstring required
Request body
Example request
{
"name": "KFC, Marina"
}Response
Branch updated successfully
Example response
{
"id": "a34587b290784c06",
"name": "KFC, JLT",
"brand_id": "1228a02e60e34037",
"state": "MAPPED",
"created_at": "2020-06-22T15:01:32.895Z",
"updated_at": "2020-06-22T15:01:32.895Z"
}Changes
No recorded changes to this operation across all 3 revisions of this API.