0% found this document useful (0 votes)
72 views

Web Gift Code: Index

This document provides an overview of an API for web recharge that allows gift codes to be redeemed on a website. The API uses POST requests with parameters like account ID, server ID, role ID, and an MD5 signed key and code. On success, the response will return an error code of 1 and success message, or an error code less than 0 and error description on failure. The document details the API description, request and response formats, and notes that one engineer will support partners during integration.

Uploaded by

Danny VTCM
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
72 views

Web Gift Code: Index

This document provides an overview of an API for web recharge that allows gift codes to be redeemed on a website. The API uses POST requests with parameters like account ID, server ID, role ID, and an MD5 signed key and code. On success, the response will return an error code of 1 and success message, or an error code less than 0 and error description on failure. The document details the API description, request and response formats, and notes that one engineer will support partners during integration.

Uploaded by

Danny VTCM
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

Integration Guide for Web Recharge API

Web Gift Code

Index
1. Overview..............................................................................................................................................4
1.1. Document purpose.......................................................................................................................4
1.2. Basic Abstract Flow.......................................................................................................................4
2. API description.....................................................................................................................................4
3. Supporter.............................................................................................................................................5

Version Date Description Author

4/2020 Creator Danny Pham


Integration Guide for Web Recharge API

1. Overview
1.1. Document purpose
This document describes required to provide a method to use gift code on the web.

1.2. Basic Abstract Flow

2. API description

Description
Url You provide
Method POST
Integration Guide for Web Recharge API

Request
Parameters Name Type Description
accountid Bigint VTC account ID
serverid Int/String Game Server ID

roleid bigInt Role ID


key String Key code string
sign String MD5(secure_secret + accountid.ToString()
+serverid.ToString()+roleid.ToString()
+key.ToString())

Response:
JSON Name Type Description
error_code Int >=0 Success
<0 Fail
error_desc String Error description

Example
{"error_code": 1, "error_desc":"success"}
OR
{"error_code": -1, "error_desc":"fail"}

secure_secret= "3a7b2deafadf38d03468d43186a1a340"

3. Supporter

VTC Mobile will spend 01 engineer to support to partner technical team during integration.

You might also like