SHOP DESKDevelopers
shopdeskbd.com

Store

The store behind a key — profile, contact details and checkout options — and the key itself.

Paste a key and every snippet on this page switches from the placeholder to your key — and the Try it panel under each endpoint is ready to send. It is stored in this browser only and goes nowhere except, if you press Send, straight to the API host you pick there.

Describe the calling API key

GET/ext/v1/me

The key (id, label, type, prefix, scopes, expiry), its company, the live stores it can reach and its per-minute rate limits. Needs no scope — any valid key may ask about itself — and returns nothing secret.

Request

export SHOPDESK_API_KEY="shopdesk_sk_YOUR_API_KEY"

curl -sS "https://api.shopdeskbd.com/ext/v1/me" \
  -H "Authorization: Bearer $SHOPDESK_API_KEY"
Try itruns from your browser
GEThttps://api.shopdeskbd.com/ext/v1/me

Stored in this browser only and never sent anywhere except to the API host you picked above — these pages are static files with no server behind them.

Paste a key above to enable Send.

Responses

  • 200The key.
  • 401Missing/invalid API key, revoked or expired key, plan without API access, or a dead store.
  • 403The key's scopes do not cover this endpoint.
  • 422Validation failed — error.fields maps each offending field to its messages.
  • 429Rate limit exceeded for this key. Honor Retry-After and the X-RateLimit-* headers.

Every failure uses the one error envelope — Errors lists each code and what to do with it.

Example 200 response
{
  "key": {
    "id": "5f7d2f60-0d1c-4b3a-9a68-6f4d21f6a001",
    "name": "Call-centre integration",
    "type": "store",
    "prefix": "shopdesk_sk_7f3kq9p2",
    "last4": "a1b2",
    "scopes": [
      "orders:read",
      "store:read"
    ],
    "expires_at": "2026-08-11T10:00:00.000Z",
    "created_at": "2026-08-11T10:00:00.000Z"
  },
  "company": {
    "id": "5f7d2f60-0d1c-4b3a-9a68-6f4d21f6a001",
    "name": "Nukta Fashion"
  },
  "stores": [
    {
      "id": "5f7d2f60-0d1c-4b3a-9a68-6f4d21f6a001",
      "name": "Nukta Fashion"
    }
  ],
  "rate_limits": {
    "reads_per_minute": 120,
    "writes_per_minute": 30
  }
}

Get the store profile

GET/ext/v1/storestore:read

Name, primary domain, currency, business timezone, public contact details, storefront localization and the advance-payment plans offered at checkout — what the storefront already shows shoppers. Company-scoped keys must pass store_id.

Query parameters

NameTypeDescription
store_iduuidRestrict the lookup to one store. Breadth control for company-scoped keys; on a store-scoped key it must match the key's own store.

Request

export SHOPDESK_API_KEY="shopdesk_sk_YOUR_API_KEY"

curl -sS "https://api.shopdeskbd.com/ext/v1/store" \
  -H "Authorization: Bearer $SHOPDESK_API_KEY"
Try itruns from your browser
GEThttps://api.shopdeskbd.com/ext/v1/store

Stored in this browser only and never sent anywhere except to the API host you picked above — these pages are static files with no server behind them.

Query parameters

Blank fields are left out of the request.

Paste a key above to enable Send.

Responses

  • 200The store.
  • 401Missing/invalid API key, revoked or expired key, plan without API access, or a dead store.
  • 403The key's scopes do not cover this endpoint.
  • 404Store not found (a store_id outside this key).
  • 422Validation failed — error.fields maps each offending field to its messages.
  • 429Rate limit exceeded for this key. Honor Retry-After and the X-RateLimit-* headers.

Every failure uses the one error envelope — Errors lists each code and what to do with it.

Example 200 response
{
  "id": "5f7d2f60-0d1c-4b3a-9a68-6f4d21f6a001",
  "name": "Nukta Fashion",
  "slug": "nukta-fashion",
  "domain": "shop.example.com",
  "currency": "BDT",
  "timezone": "Asia/Dhaka",
  "contact": {
    "phone": "01712345678",
    "email": "hello@example.com",
    "whatsapp": "01712345678",
    "address": "House 12, Road 5, Dhaka",
    "map_url": null
  },
  "localization": {
    "currency_code": "BDT",
    "currency_symbol": "৳",
    "symbol_position": "before",
    "timezone": "Asia/Dhaka",
    "date_format": "DD MMM YYYY"
  },
  "advance_payment_plans": [
    {
      "percent": 20,
      "note": null
    }
  ]
}