1. API Endpoint
https://openapi.dns.com//api/product/package/lists/
2. Request Parameters
| Parameter |
Name |
Type |
Description |
| domain |
Domain |
string |
Optional |
| page |
Page |
int |
Page number, default is 1 |
| paginate |
Page Size |
int |
Number of items per page, default is 10 |
3. Response Parameters
| Parameter |
Name |
Type |
Description |
| code |
Status Code |
int |
0 indicates success, non-zero indicates an error (see error codes) |
| message |
Message |
string |
May be empty on success, returns error message on failure |
| data |
Response Data |
array |
Returns an array when data exists, otherwise empty |
4. Response Data (data)
| Parameter |
Name |
Type |
Description |
| total |
Total Count |
int |
Total number of purchased plans |
| data |
Purchased List |
array |
List of purchased items |
| data.flag |
Flag |
string |
- |
| data.id |
ID |
int |
- |
| data.start_time |
Start Time |
string |
- |
| data.end_time |
End Time |
string |
- |
| data.product_id |
Product ID |
string |
- |
| data.name |
Product Name |
string |
- |
| data.domain |
Domain |
string |
- |
| data.domain_id |
Domain ID |
int |
- |