Get Web Branch By Coordinates
GET
{{web_ecommercev2_url}}/branches/by-location
Request Request Example
Shell
JavaScript
Java
Swift
curl --location -g --request GET '{{web_ecommercev2_url}}/branches/by-location?lat&lng' \
--header 'x-client: {{client}}' \
--header 'accept-language: {{acceptLanguage}}' \
--header 'x-access-token;'
Response Response Example
{"data":[{"name":{"ar":"محفظة جلدية فاخرة","defaultTranslation":"homehon","en":"homehon"},"description":{"ar":"محفظة جلدية يدوية الصنع مع عدة فتحات للبطاقات","defaultTranslation":"Handcrafted genuine leather wallet with multiple card slots","en":"Handcrafted genuine leather wallet with multiple card slots"},"categoryIds":["681326ece4490b8d22eb2b4b"],"unitIds":["681331a147d1f959b77cc5b3"],"attributes":[{"code":"Material","value":"Genuine Leather","type":"string"},{"code":"Color","value":["680de4ac20cb5b452a0d3343"],"type":"string"},{"code":"Dimensions","value":[[{"Key":"Key","Value":"length"},{"Key":"Value","Value":10}],[{"Key":"Key","Value":"width"},{"Key":"Value","Value":7}],[{"Key":"Value","Value":1},{"Key":"Key","Value":"height"}]],"type":"object"},{"code":"branch","value":"681ef5ea37ee7e7d336ad3d5","type":"string"}],"images":[{"_id":"507f1f77bcf86cd799439013","path":"https://example.com/images/mens-accessories-2.jpg","variants":["thumbnail","medium","large"],"originalName":"wallet_main.jpg","service":"s3"}],"prices":[{"name":{"ar":"السعر العادي","defaultTranslation":"Regular Price","en":"Regular Price"},"branchIds":["681ef5ea37ee7e7d336ad3d5"],"items":[{"value":99.99,"currencyCode":"USD","unitId":"681331a147d1f959b77cc5b3"}],"discount":{"value":10.5,"type":"percentage"}}],"flag":"new","vendorId":"507f1f77bcf86cd799439011","id":"68188c4d77b0e2bdb4055849","createdAt":"2025-05-05T10:00:45.159Z","createdBy":"681340e5511becf906f65b99","updatedAt":"2025-05-14T14:19:32.021Z","updatedBy":"681340e5511becf906f65b99","isInWatchListed":false}],"pagination":{"totalPages":1,"perPage":10,"totalCount":1}}
Request
Query Params
lat
number
optional
lng
number
optional
Header Params
x-access-token
string
required
Example:
{{admin-token}}
x-client
string
required
Example:
{{client}}
accept-language
string
required
Example:
{{acceptLanguage}}
Responses
Modified at 2025-05-28 13:28:11