Use these endpoints to check available top-up packages, initiate a payment to add quota to your account, redeem a top-up code, and review your top-up transaction history.Documentation Index
Fetch the complete documentation index at: https://doc.hitopen.com/llms.txt
Use this file to discover all available pages before exploring further.
All payment endpoints require User permission. Authenticate with a system access token from Personal Settings → Security Settings → System Access Tokens. Payment availability depends on how your Newapi instance is configured — not all instances enable payments.
Endpoints
| Method | Path | Description |
|---|---|---|
GET | /api/user/topup/info | Get available top-up packages and pricing |
POST | /api/user/pay | Initiate a payment |
POST | /api/user/topup | Redeem a top-up code |
GET | /api/user/topup/self | Get your top-up transaction history |
Get top-up packages
Example
Response fields
Whether the request succeeded.
Top-up configuration for this instance.
Initiate a payment
The payment flow depends on the payment provider configured by your instance administrator. After the payment is completed on the provider’s side, Newapi automatically credits the purchased quota to your account.
Example
Response fields
Whether the payment session was created successfully.
The payment URL or session identifier. Redirect your user to this URL to complete the payment.
Redeem a top-up code
Request body
The top-up redemption code to redeem.
Example
Response fields
Whether the code was redeemed successfully.
A message describing the result, including the quota amount credited if successful.
Get your top-up history
Example
Response fields
Whether the request succeeded.
List of top-up transactions.