Back to Store

Developer & Reseller Public API

v1.0 REST

Automate your Minecraft alts operations. Check stock in real-time, query pricing, and execute instant account orders using your Coins balance. Perfect for Discord bots, reseller storefronts, and automated pipelines.

Base URL:https://onalt.store/api/v1

Authentication Required(x-api-key header)

To execute authenticated requests (such as checking your balance or placing instant orders), you must provide your private API key in the x-api-key request header.

Manage Key in Security & Profile
GET/api/v1/profile
Fetch authenticated account details & coins balance

Returns the account profile associated with the provided x-api-key, including your current Coins balance and total orders count.

cURL Example
curl -X GET "https://onalt.store/api/v1/profile" \
  -H "x-api-key: YOUR_API_KEY"
Response (200 OK)
{
  "success": true,
  "profile": {
    "id": "cly1a2b3c4d5e6f7",
    "email": "customer@example.com",
    "discordTag": "Username#0001",
    "coinsBalance": 520,
    "totalOrders": 14,
    "apiKeyCreatedAt": "2026-10-15T18:22:10.000Z"
  }
}
GET/api/v1/products
List all active products, real-time stock, and coin prices

Returns the full catalog of available products with live inventory counts and price in coins. Authentication is optional for public stock inspection, but recommended with x-api-key for higher rate limits.

cURL Example
curl -X GET "https://onalt.store/api/v1/products" \
  -H "x-api-key: YOUR_API_KEY"
Response (200 OK)
{
  "success": true,
  "products": [
    {
      "id": "prod_hypixel_unbanned",
      "slug": "hypixel-unbanned",
      "title": "Hypixel Unbanned",
      "description": "Clean Minecraft accounts unbanned on Hypixel Network with instant delivery.",
      "priceCoins": 25,
      "priceUsd": 2.50,
      "inStock": 48,
      "minQuantity": 1,
      "maxQuantity": 20
    },
    {
      "id": "prod_unbanned_nfa",
      "slug": "unbanned-nfa",
      "title": "Unbanned NFA",
      "description": "Non-Full Access Minecraft accounts unbanned on major networks.",
      "priceCoins": 10,
      "priceUsd": 1.00,
      "inStock": 120,
      "minQuantity": 1,
      "maxQuantity": 50
    }
  ]
}
GET/api/v1/products/{slug}
Get specific product details & live stock

Query a specific product by its URL slug (e.g. hypixel-unbanned) to verify real-time available stock before initiating a purchase.

cURL Example
curl -X GET "https://onalt.store/api/v1/products/hypixel-unbanned" \
  -H "x-api-key: YOUR_API_KEY"
Response (200 OK)
{
  "success": true,
  "product": {
    "id": "prod_hypixel_unbanned",
    "slug": "hypixel-unbanned",
    "title": "Hypixel Unbanned",
    "description": "Clean Minecraft accounts unbanned on Hypixel Network with instant delivery.",
    "priceCoins": 25,
    "priceUsd": 2.50,
    "inStock": 48,
    "minQuantity": 1,
    "maxQuantity": 20
  }
}
POST/api/v1/orders
Instant Account Delivery using Coins Balance

Creates and instantly fulfills an order using your Coins balance. Stock is allocated dynamically with uniform randomness and the decrypted accounts data (including usernames, UUIDs, session tokens, and credentials) are returned immediately in the HTTP response.

Request JSON Body
FieldTypeRequiredDescription
productSlugstringYesThe slug identifier of the product to purchase.
quantityintegerNo (default: 1)Number of accounts to purchase.
cURL Example
curl -X POST "https://onalt.store/api/v1/orders" \
  -H "Content-Type: application/json" \
  -H "x-api-key: YOUR_API_KEY" \
  -d '{
    "productSlug": "hypixel-unbanned",
    "quantity": 1
  }'
Response (200 OK — Immediate Delivery)
{
  "success": true,
  "order": {
    "orderNumber": "API-A9D412",
    "product": "Hypixel Unbanned",
    "quantity": 1,
    "coinsDeducted": 25,
    "remainingCoins": 495,
    "viewUrl": "https://onalt.store/order/cly98f01b.../?token=sec_f83..."
  },
  "accounts": [
    {
      "username": "MineHero99",
      "uuid": "8e36d4e8-8a8f-4c5b-9d41-3b567fa09a12",
      "token": "eyJhbGciOiJSUzI1NiIs...",
      "account": "minehero@gmail.com:SecretPass123"
    }
  ]
}
GET/api/v1/orders/{orderId}
Retrieve order status and decrypted account data anytime

Lookup any previous order by its order ID or order number (e.g. API-A9D412) to retrieve the delivered Minecraft accounts.

cURL Example
curl -X GET "https://onalt.store/api/v1/orders/API-A9D412" \
  -H "x-api-key: YOUR_API_KEY"
Response (200 OK)
{
  "success": true,
  "order": {
    "orderNumber": "API-A9D412",
    "product": "Hypixel Unbanned",
    "status": "DELIVERED",
    "quantity": 1,
    "createdAt": "2026-10-24T20:15:30.000Z"
  },
  "accounts": [
    {
      "username": "MineHero99",
      "uuid": "8e36d4e8-8a8f-4c5b-9d41-3b567fa09a12",
      "token": "eyJhbGciOiJSUzI1NiIs...",
      "account": "minehero@gmail.com:SecretPass123"
    }
  ]
}

HTTP Status Codes & Error Handling

All error responses follow a consistent JSON format containing '{"success": false, "error": "Reason"}'.

CodeMeaningDescription & Cause
200 OKSuccessThe request was successful and data/accounts are returned.
400 Bad RequestValidation ErrorMissing required fields, invalid quantity, or malformed JSON.
401 UnauthorizedAuthentication FailedMissing or invalid x-api-key HTTP header.
402 Payment RequiredInsufficient CoinsYour account does not have enough Coins to fulfill the order.
404 Not FoundResource Not FoundThe requested product slug or order ID does not exist.
409 ConflictOut of StockNot enough available accounts in stock to fulfill the requested quantity.
429 Too Many RequestsRate LimitedYou exceeded the rate limit (60 requests per minute per API key).

Need custom integration or higher limits?

Open a ticket on our Support portal or join our Discord community for reseller assistance.