Dailystore Logodev
Get API Key

DailyStore API Reference

Welcome to the DailyStore API documentation. Our REST API allows you to integrate your store directly into your custom applications, Discord bots, or personal dashboards. You can query products, check stock in real-time, and make programmatic purchases using your account balance.

Base URL

https://www.dailystore.me/api/v1

Rate Limits

To ensure stability, the API enforces the following rate limits:

  • Public endpoints (GET): 100 requests per minute per IP.
  • Purchase endpoints (POST/GET Auth): 20 requests per minute per API key.

Response Statuses & Errors

The API uses conventional HTTP response codes to indicate success or failure.

  • 2xx codes indicate success (200 OK, 201 Created).
  • 4xx codes indicate an error (e.g., inadequate balance, missing parameters).
  • 5xx codes indicate a server error.

Error Format

{
  "error": "ERROR_CODE_STRING",
  "message": "Human readable error explanation."
}

Common error codes include: UNAUTHORIZED, INSUFFICIENT_BALANCE, PRODUCT_NOT_FOUND, PRODUCT_UNAVAILABLE, INVALID_REQUEST, RATE_LIMITED, INTERNAL_ERROR.

Authentication

Authentication is required for endpoints that modify data or access private account information (like making purchases or viewing balance). You can manage your API keys in your daily store user panel.

Warning: Keep your API keys secret! If a key is compromised, you can delete and revoke it immediately from your dashboard.

Pass your API key using the standard bearer token specification in the Authorization header.

HTTP Header
Authorization: Bearer dsk_live_YourSecretKeyHere

List Products

GET/products

Returns a list of all products in the store. Includes SKU, price, real-time stock, category, and availability. Cached for 60 seconds.

Auth Required:No
Example Request
curl -X GET https://www.dailystore.me/api/v1/products
Expected Success Response (200 OK)
[
  {
    "sku": "EpicGames100-200",
    "name": "EpicGames [100-200 Games] [NFA]",
    "description": "...",
    "price": 0.4,
    "stock": 11,
    "isAvailable": true,
    "category": "epic-games"
  }
]

Get Product Details

GET/products/:sku

Returns detailed information about a specific product by its SKU. Cached for 5 seconds.

Auth Required:No
Example Request
curl -X GET https://www.dailystore.me/api/v1/products/EpicGames100-200

Check Stock

GET/stock/:sku

A fast, lightweight endpoint specifically designed to check the real-time stock of a product without returning the full description and metadata. Cached for 5 seconds.

Auth Required:No
Example Request
curl -X GET https://www.dailystore.me/api/v1/stock/EpicGames100-200
Expected Success Response (200 OK)
{
  "sku": "EpicGames100-200",
  "name": "EpicGames [100-200 Games] [NFA]",
  "stock": 11,
  "isAvailable": true
}

Get Balance

GET/balance

Returns the current balance available on your account. Best used to verify if a user has sufficient funds before attempting a purchase.

Auth Required:Yes
Example Request
curl -X GET https://www.dailystore.me/api/v1/balance \
  -H "Authorization: Bearer dsk_live_..."
Expected Success Response (200 OK)
{
  "balance": 26.6,
  "email": "user@email.com"
}

Purchase Items

POST/purchase

Creates a new order and instantly purchases items using your account balance. The credentials (purchased items) are returned immediately in the response, and an email summary is dispatched.

Auth Required:Yes

Properties

itemsRequired
array

Array of objects containing sku and quantity.

couponCode
string

Discount code to apply.

Example Request
curl -X POST https://www.dailystore.me/api/v1/purchase \
  -H "Authorization: Bearer dsk_live_..." \
  -H "Content-Type: application/json" \
  -d '{
    "items": [
      {
        "sku": "EpicGames100-200",
        "quantity": 1
      }
    ]
  }'
Expected Success Response (201 Created)
{
  "orderId": "cmmqgpojm000...",
  "items": [
    {
      "sku": "EpicGames100-200",
      "name": "EpicGames [100-200 Games] [NFA]",
      "quantity": 1,
      "delivered": 1,
      "credentials": [
        "email@example.com:password123"
      ],
      "unitPrice": 0.4
    }
  ],
  "subtotal": 0.4,
  "totalCharged": 0.4,
  "remainingBalance": 26.2
}

List Orders

GET/orders

Returns a paginated list of your past orders. Does not include the actual credentials inside the orders.

Auth Required:Yes
Example Request
curl -X GET https://www.dailystore.me/api/v1/orders \
  -H "Authorization: Bearer dsk_live_..."
Expected Success Response (200 OK)
{
  "items": [
    {
      "id": "cmmqgpojm000...",
      "total": 0.4,
      "status": "PAID"
    }
  ],
  "pagination": {
    "page": 1,
    "limit": 20,
    "total": 1,
    "totalPages": 1
  }
}

Get Order Details

GET/orders/:orderId

Returns the full details of a specific order, including the purchased credentials.

Auth Required:Yes
Example Request
curl -X GET https://www.dailystore.me/api/v1/orders/cmmqgpojm000... \
  -H "Authorization: Bearer dsk_live_..."
Expected Success Response (200 OK)
{
  "orderId": "cmmqgpojm000...",
  "status": "PAID",
  "total": 0.4,
  "paymentMethod": "api_balance",
  "items": [
    {
      "sku": "EpicGames100-200",
      "name": "EpicGames [100-200 Games] [NFA]",
      "quantity": 1,
      "unitPrice": 0.4,
      "credentials": [
        "email@example.com:password123"
      ],
      "delivered": 1
    }
  ],
  "createdAt": "2026-03-14T12:00:00.000Z"
}