Skip to content

Top-up Package Control Query API ​

Interface Address ​

https://xxx.gamepartner.com/product

*Note: The URL is defined by the original manufacturer, and no rules have been set. Both parties need to agree upon them when connecting.*


Request Parameters ​

Field NameTypeRequiredDescription
roleidstringYesCharacter ID
servercodestringYesServer code
timestamplongYesTimestamp
signaturestringYesVerification code, md5(roleid + servercode + timestamp + "key") ; key=R$o)L3e##^b (e.g., 8–32 characters consisting of uppercase and lowercase letters or digits, with no special characters)

Request Method ​

The request URL must support both POST and GET methods. POST is recommended. The default content type is application/x-www-form-urlencoded.

Request Example ​

https://xxx.gamepartner.com/product?roleid=testroleid&servercode=s1&timestamp=1875432234567&signature=babw74wt4b6q2if27oquh38qvwehfof


Response Result ​

*Note: Returns in JSON format. If there are other types of codes, please define and provide an explanation.*

Field NameTypeDescription
codestringStatus code for receiving push request, specific codes are as follows: ; 1000 = Gift pack query successful, see productList for specific gift pack information ; 9999 or others = Query failed or system exception
messagestringSuccess or error message description
productListjsonarrayList of gift packs that the specific character ID can purchase

Default Method Response Example ​

json
{"code":"1000","message":"Success","productList":["A50","A100","A200"]}

Method with Transmission Parameters Response Example ​

proItemId: Item ID name: Item name arg: Transmission parameter

json
{"code":"1000","message":"Success","productList":[{"proItemId":"A50","name":"Jade Ingots 50","arg":"xxxxxxxxxxxxxxx1"},{"proItemId":"A100","name":"Jade Ingots 100","arg":"xxxxxxxxxxxxxxx2"}]}