刷新会话IP
刷新会话IP。
接口信息
POST /client/ip/dynamics/refreshSession
请求头
| 参数名 | 类型 | 描述 |
|---|---|---|
| x-merchant-token | String | 商户令牌 |
| x-merchant-code | String | 商户代码 |
| Content-Type | String | application/json |
请求参数
| 参数名 | 必选 | 类型 | 描述 |
|---|---|---|---|
| accountCode | 是 | String | 动态账号 |
| sessionCode | 是 | String | 会话代码 |
代码示例
const response = await fetch('/client/ip/dynamics/refreshSession', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'x-merchant-token': 'your-token-here',
'x-merchant-code': 'your-merchant-code'
},
body: JSON.stringify({
"accountCode": "iplt1000",
"sessionCode": "YNW68s"
})
});
响应示例
{
"msg": "刷新成功",
"code": 200
}