SeloraXDEVELOPERS

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

FieldTypeDescription
store_idintegerUnique store identifier
namestringStore display name
emailstringStore contact email
phonestringStore contact phone number
currencystringStore currency code (e.g. BDT, USD)
imagestring or nullURL to the store logo/image
addressstring or nullStore physical address
domainstringPrimary domain associated with the store
languagestringStore default language code (e.g. en, bn)
created_atstring (ISO 8601)When the store was created
updated_atstring (ISO 8601)When the store profile was last updated

Error Responses

CodeStatusMeaning
invalid_token401Token is expired or invalid
missing_auth401No authentication credentials provided
insufficient_scope403App does not have read:store scope
invalid_installation400App installation is inactive or not found for this store