DEVELOPER API
API Documentation
Base URL: https://meegold.in/wp-json/ngt/v1/api
Authentication
Send your assigned key in the X-NGT-API-Key header. Keys are issued from the admin API Management screen and can be restricted by IP.
Endpoints
GET /ping
Validate credentials and return the registered API user.
curl -H "X-NGT-API-Key: YOUR_KEY" https://meegold.in/wp-json/ngt/v1/api/pingGET /balance
Return the reseller balance.
curl -H "X-NGT-API-Key: YOUR_KEY" https://meegold.in/wp-json/ngt/v1/api/balancePOST /order
Create an order from a product or variation.
Content-Type: application/json
X-NGT-API-Key: YOUR_KEY
{"product_id":123,"variation_id":456,"quantity":1,"email":"customer@example.com"}GET /order/{id}
Read the status of an order created by the authenticated API account.