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
Purchased user plan management service8 matching interfaces

Purchase a plan

buyUserPlan

POST/UserPlanService/buyUserPlan
Original definition
rpc buyUserPlan(BuyUserPlanRequest) returns (BuyUserPlanResponse);

Request message

BuyUserPlanRequest

Add a purchased plan

Request message · Field definitions
message BuyUserPlanRequest{
	int64 userId = 1;
	int64 planId = 2;
	string dayTo = 3;
	string period = 4;
	int32  countPeriod = 5;
	string name = 6;
}

Response message

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

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

Setup guide