🛍️ Your trusted Microsoft accounts marketplace

📚 API Documentation

Complete guide to integrating with ZerAcc API. Learn how to check balances, create orders and programmatically manage your account.

Authentication

All API requests require authentication using your unique API key. Include your API key as a query parameter in all requests.

Response Format

All API responses follow a consistent JSON structure:

{
  "status": true,
  "message": "Success message",
  "data": {
    // Response data
  }
}

Get a list of all active products with basic information. This endpoint is public and does not require authentication.

Parameters:

No parameters required

Response:

{
  "status": true,
  "message": "Products data retrieved successfully",
  "data": [
    {
      "id": 1,
      "name": "Premium Account",
      "price": 99.99,
      "in_stock": 150
    },
    {
      "id": 2,
      "name": "Basic Account", 
      "price": 49.99,
      "in_stock": 300
    }
  ]
}

Example:

Get your current account balance in USD.

Parameters:

api_key required string - Your API key

Response:

{
  "status": true,
  "message": "Success",
  "data": {
    "balance": "$123.45"
  }
}

Example:

Create a new product order. The order will be processed automatically if you have sufficient funds.

Parameters:

api_key required string - Your API key
product_id required integer - Product ID to order
quantity required integer - Number of items to order
discount_code optional string - Optional discount code

Response:

{
  "status": true,
  "message": "Success",
  "data": {
    "order_id": "ORD123456"
  }
}

Example:

Get order details and download purchased items.

Parameters:

api_key required string - Your API key
order_id required string - Unique order identifier

Response:

{
  "status": true,
  "message": "Success",
  "data": {
    "order_id": "ORD123456",
    "product_id": 1,
    "quantity": 1,
    "amount": 1,
    "status": "completed",
    "description": "",
    "format": "username:password",
    "created_at": "2023-12-01T10:30:00Z",
    "updated_at": "2023-12-01T10:35:00Z",
    "items": []
  }
}

Example: