DEVELOPER API

API Documentation

Secure integration guide for approved reseller accounts. Keep your API key private and use HTTPS for every request.

https://www.buypubg.in/wp-json/ngt/v1/api

1. Authentication

1
Send your API key

Use the X-NGT-API-Key request header. Never place the key in browser-visible HTML, JavaScript, URLs or screenshots.

X-NGT-API-Key: YOUR_API_KEY

2. Ping

curl -H "X-NGT-API-Key: YOUR_API_KEY" https://www.buypubg.in/wp-json/ngt/v1/api/ping

3. Balance

curl -H "X-NGT-API-Key: YOUR_API_KEY" https://www.buypubg.in/wp-json/ngt/v1/api/balance

4. Create Order

Use a server-to-server request. Product and variation IDs must exist on the store.

curl -X POST https://www.buypubg.in/wp-json/ngt/v1/api/order \ -H "X-NGT-API-Key: YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{"product_id":123,"variation_id":456,"quantity":1,"email":"customer@example.com"}'

5. Order Status

curl -H "X-NGT-API-Key: YOUR_API_KEY" https://www.buypubg.in/wp-json/ngt/v1/api/order/ORDER_ID

Security checklist

✓
HTTPS only

Use HTTPS in production. Rotate leaked keys immediately. Restrict reseller IPs from the admin API screen when appropriate. Do not expose API keys in frontend code. Validate order IDs and customer data on your own server.

API access is controlled by the store administrator. Availability of payment, provider fulfilment and reseller balance operations depends on the configured store integrations.

Join Waitlist We will inform you when the product arrives in stock. Please leave your valid email address below.

No fields found, please go to settings & save/reset fields