Skip to main content
Prefix the paths below with your service URL. Obtain an access token first, then send it in the Authorization header when calling other endpoints. Keep your credentials and token secure. Obtaining a new token invalidates the previous one. POST /wapi/cdk/create/
FieldDescription
cdk_typeRequired: 1 Dynamic traffic, 2 IP count, 3 Mobile traffic
flowRequired for types 1 and 3; traffic per code in GB, from 1 to 10000
ipRequired for type 2; IP count per code, from 1 to 10000
dayValidity period in days for types 1 and 3
numRequired; number of codes to create, from 1 to 10000
Example for Dynamic traffic codes:
On success, results lists the generated codes. Cdk is the redemption code, Type is its type, Flow is in bytes, Ip is the IP count, and Days is the validity period:
Ensure your account has enough of the corresponding resource. If it does not, the entire batch fails. Do not submit identical creation requests concurrently. This endpoint is rate-limited; retry later if you receive HTTP 429.