WAFGOPreparing your page
Setup guide

API documentation

DEVELOPER RESOURCES · API REFERENCE

Explore WAFGO API services, request paths and message definitions. Browse by permission role to find the parameters and response structures for your integration.

Download JSON documentation
151 services1063 interfaces
User DNS plan service7 matching interfaces

Purchase a user plan using the account balance

buyNSUserPlan

POST/NSUserPlanService/buyNSUserPlan
Original definition
rpc buyNSUserPlan(BuyNSUserPlanRequest) returns (BuyNSUserPlanResponse);

Request message

BuyNSUserPlanRequest

Purchase a user plan using the account balance

Request message · Field definitions
message BuyNSUserPlanRequest{
	int64 userId = 1;
	int64 planId = 2;
	string period = 3;
}

Response message

BuyNSUserPlanResponse
Response message · Field definitions
message BuyNSUserPlanResponse {
	int64 userPlanId = 1;
}

Descriptions and comments follow your language. Request paths, method names, field names and types match the original API definitions.

Setup guide