Store
Store API
Access store profile data for the authenticated store. This endpoint returns the store's configuration, contact details, and branding information.
Get Store Info
Retrieve the store profile associated with the current authentication context.
GET /api/apps/v1/store
Authentication
Required. Must include valid app credentials.
Scope
read:store
Example Request
curl -X GET "https://api.selorax.io/api/apps/v1/store" \
-H "Authorization: Bearer <token>"Or using client credentials:
curl -X GET "https://api.selorax.io/api/apps/v1/store" \
-H "X-Client-Id: sx_app_..." \
-H "X-Client-Secret: sx_secret_..." \
-H "X-Store-Id: 22"Response
{
"message": "Store fetched successfully",
"data": {
"store_id": 22,
"name": "FloristBD",
"email": "[email protected]",
"phone": "01700000000",
"currency": "BDT",
"image": "https://pub-xxxx.r2.dev/stores/22/logo.png",
"address": "House 12, Road 5, Dhanmondi, Dhaka",
"domain": "floristbd.com",
"language": "en",
"created_at": "2024-08-01T00:00:00.000Z",
"updated_at": "2025-06-10T12:00:00.000Z"
},
"status": 200
}Response Fields
| Field | Type | Description |
|---|---|---|
store_id | integer | Unique store identifier |
name | string | Store display name |
email | string | Store contact email |
phone | string | Store contact phone number |
currency | string | Store currency code (e.g. BDT, USD) |
image | string or null | URL to the store logo/image |
address | string or null | Store physical address |
domain | string | Primary domain associated with the store |
language | string | Store default language code (e.g. en, bn) |
created_at | string (ISO 8601) | When the store was created |
updated_at | string (ISO 8601) | When the store profile was last updated |
Error Responses
| Code | Status | Meaning |
|---|---|---|
invalid_token | 401 | Token is expired or invalid |
missing_auth | 401 | No authentication credentials provided |
insufficient_scope | 403 | App does not have read:store scope |
invalid_installation | 400 | App installation is inactive or not found for this store |