Fiat (Rupee) Proxy Pay Order UTR Replenishment
# Code Example
TopPaySignUtil Click to Get Code Example
import com.google.gson.Gson;
import java.util.HashMap;
import java.util.Map;
public class PayOrderQuery {
//MCH_ID: Merchant ID
//Please log in to the merchant background, click Personal Center > Personal Information, and obtain the merchant ID in the basic information.
private static final String MCH_ID = "S820211021094748000001";
private static final String MCH_PRIVATE_KEY = "MIICeAIBADANBgkqhkiG9w0BAQEFAASCAmIwggJeAgEAAoGBAJU8gKFKD0luIYx7X8+JRdCIE0UDBctS6LjXxWLEv/EO7jDBTid6zYP1KmNgpd2DAWWtBFBSQ+gcNwVZZSBHJiSDqVvvJVs2FEbeBvfdv4X93+IYRAXksBasSW5Tpdshbo82pVL4V7wuKCuFLk9UxBHbpQjWAbfyF66RmwIbZD71AgMBAAECgYBjPe7UU2nDDSfmQg0++CyjNjqKRC5QPfxhH6w1uF1kMueXKJWOj42n2RutJpJmsj31nY8m0u4xpsG4HvCu/GGSFhhKZCHLvzp41oY2ubYj9nuFNU//81LycQjulWo2y0UUBY0k2piEt+SwPaiUNbT6nMxNMjlnjRe2okp/3rw+KQJBANG3YlZWoVbCEqzy64bJJLxiPsCA5ErGB0NzRGitq44xkhqGtR8ZZQyVz40pruNa58d73O2xyJSy5+fmZGn4E+sCQQC2LBnguj0CSCKub0mPDcunTTz9V79VXBBZdlB1/YGmRUx2s4sQrJNZS7rL4EqBQ3maIRnG+s+AXCSTfsYrV6CfAkEAxugnVfpelhoGepEAgNuggyivmgfl/2Gpm/jk5l/qOjib+ZrQiQmeBPzGWX4yiSM8eMDrP2sC8r5pJFMp5DRONwJBAJ4n4XuSFJ9jgwCPy3vvzSv9SYLk6E6yM9uHdUlKgoGYzk6Lh6M9QFuY/J49plFdBDiEnj16yCU3WeXXfTJpzB8CQQDMNMR/rIOTE9xGsybS3mlQbt22AUnO6XhupWcckEKW4nPGxATwYBQzCY3i/9FTGN0vA+9ZPC2cwHtNxI2kXf3Vp"; // Merchant Private Key
private static final String REQ_URL = "[https://india-openapi.toppay.asia/pay/supplementOrder](https://india-openapi.toppay.asia/pay/supplementOrder)";
public static void main(String[] args) throws Exception {
supplementOrder();
}
private static void supplementOrder() throws Exception {
// Assemble parameters according to the interface requirements
Map<String, String> requestParams = new HashMap<>();
requestParams.put("merchantCode", MCH_ID);
requestParams.put("orderNum", "T1642593166888");
requestParams.put("timestamp", "1745377181");
requestParams.put("utr", "123456789012");
// Format the parameters, calculate the signature, and add the signature value to the request parameters
String source = TopPaySignUtil.paramFormat(requestParams);
requestParams.put("sign", TopPaySignUtil.sign(MCH_PRIVATE_KEY, source));
// Serialize the parameters into JSON and initiate a POST request
String postJson = new Gson().toJson(requestParams);
System.out.println("Post Json Params:" + postJson);
String responseJson = TopPaySignUtil.doPost(REQ_URL, postJson);
System.out.println("Response Msg:" + responseJson);
}
}
# Request Address
- Request Method : POST
- Request Address : https://india-openapi.toppay.asia/pay/supplementOrder
# Request Parameters
| Parameter | Required | Description | Example |
|---|---|---|---|
| merchantCode | Y | Merchant ID | S820190712000002 |
| orderNum | Y | Merchant Order Number | T1231511321515 |
| utr | Y | UTR | 123456789012 |
| timestamp | Y | Timestamp (seconds), Get the system real-time time stamp | 1745377181 |
| sign | Y | RSA signature | ja6R8eukQ... |
# Request Message Example
{
"merchantCode": "S820211021094748000001",
"orderNum": "11642593166888",
"utr": "123456789012",
"timestamp": "1745377181",
"sign": "16u1010cult@NGaIq44U2u2bFW56d11JUT/66mQMb18T9dmVAJaLwR125emPDXYSdn0tNxja8642VJ1f4eBCg2HevHo1ebvYzay3ukCguJn"
}
# Response Parameters
- Outer Unified Return Structure
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| code | int | Y | Interface response code | 0 represents success, others represent failure |
| message | String | Y | Interface response message | Return specific response information |
| data | Json | Y | Interface response parameters | Interface specific response parameters |
# Response Message Example
{
"code": 0,
"message": "success",
"data": "supplement order success"
}