PHP SDK Class

Reseller PHP Library

Official PHP SDK Class (JZResellerAPI)

Integrate top-ups, games, balance checks, and player validation in 1 line of PHP code.

Download JZResellerAPI.php
Usage Example Code
<?php
require_once 'JZResellerAPI.php';

// Initialize API Client
$api = new JZResellerAPI(
    baseUrl: 'https://game.api.jzstore.in/v1/',
    apiKey:  'YOUR_RESELLER_API_KEY'
);

// 1. Check Wallet Balance
$balance = $api->getBalance();
print_r($balance);

// 2. List All Active Games & Products
$games = $api->getGames();
$products = $api->getProducts();

// 3. Validate Player Account ID before order
$player = $api->validatePlayer(gameId: 1, userId: '12345678', zoneId: '1234');

// 4. Create Top-Up Order
$order = $api->createOrder(
    productDbId: 5,
    userId: '12345678',
    zoneId: '1234',
    resellerRef: 'MY_ORDER_1001'
);

print_r($order);
?>

Available SDK Methods

Method Parameters Description
getBalance() None Returns reseller wallet balance
getGames($gameId) gameId (Optional) Returns list of supported games
getProducts($gameId, $productDbId) gameId, productDbId (Optional) Returns available packages & rates
validatePlayer($gameId, $userId, $zoneId) gameId, userId, zoneId Checks game player nickname
createOrder($productDbId, $userId, $zoneId, $ref) productDbId, userId, zoneId, ref Submits top-up order
Docs Rates Tester SDK