JZ
API Docs & Tools
OpenAPI 3.0 Ready & Interactive Tools

MooGold API Gateway Reference

Supports direct MooGold proxy requests and RESTful OpenAPI routes with high-speed proxy signing.

Authentication & Architecture

JZGateway allows you to submit requests using your Gateway API Key. The gateway automatically generates upstream HMAC-SHA256 signatures, manages timestamps, and signs requests directly to MooGold:

Direct MooGold Proxy Endpoints

POST /api/v1/user/balance

POST /api/v1/order/create_order

POST /api/v1/order/order_detail

POST /api/v1/product/list_product

RESTful OpenAPI Routes

GET /v1/balance

POST /v1/order/create

GET /v1/order/:id

GET /v1/products

Accepted Auth Headers

x-api-key: mgk_167a9143bb35565f...
OR
Authorization: Bearer mgk_167a9143bb35565f...

Orders

Manage top-up purchases, inspect orders, and query history.

POST/api/v1/order/create_order

Submits a new order to MooGold. The endpoint acts as a proxy, signing the payload with your credentials and storing a transaction reference in the gateway database.

Request Body Parameters

FieldTypeRequiredDescription
categoryintegerYesUse 1 for Direct Top Up, 2 for eVouchers.
product-idintegerYesMooGold Variation ID (e.g. 215570).
quantityintegerYesNumber of items (e.g., 1).
User IDstringConditionalThe player ID required by game or service.
ServerstringConditionalThe game server ID (if required).
partner_order_idstringNoUnique reference ID from your system. Generated automatically if omitted.
POST/api/v1/order/order_detail

Retrieves details of an order using the MooGold order ID.

POST/api/v1/order/order_detail_partner_id

Retrieves details of an order using your partner order ID.

POST/api/v1/order/transaction_history

Fetches past order history for a date range (max 30 days).

Products & Packages

Query available products, variations, prices, validation fields, and server lists.

POST/api/v1/product/list_product

Returns list of products for a category.

Category IDs Reference:

50 = Direct Top-Up, 51 = Gift Cards, 538 = Google Play, 766 = Garena Shells, 993 = Steam.

POST/api/v1/product/product_detail

Get information for a single product, including dynamic input fields and variation IDs.

POST/api/v1/product/server_list

Retrieves the server list for a specific product ID (e.g. for games like Free Fire).

POST/api/v1/product/validate

Validates target player account details before submitting order.

GET/api/v1/user/balance

Queries the wallet balance of the MooGold account configured for this client key.

Error Codes

The gateway forwards MooGold error codes directly to your application:

CodeMeaning
111Insufficient balance in your MooGold account
113Product ID missing
114Product out of stock
117Quantity exceeds maximum (10)
401Invalid or missing platform API key
403MooGold account not authorized for this resource
419Missing required arguments

Callbacks & Automated Fulfillment

When you create a top-up or eVoucher order, MooGold processes it asynchronously. When completed, refunded, or fulfilled with voucher codes, MooGold sends a real-time HTTP POST callback.

How to Register your Callback URL in MooGold:

  1. Log in to your MooGold Account Portal (moogold.com/my-account).
  2. Navigate to API Settings → Callback URL / Webhook URL.
  3. Copy your personalized callback URL from your Dashboard Settings or format it with your User ID:
    https://jzpay.shop/api/callback/{your_user_id}
  4. Paste and save the URL in MooGold.