支持通道
请求
API URL: /merchant/v2/{GUID}/support-channel
| 标头 | 内容 | 说明 |
|---|---|---|
| Content-Type | text/plain | |
| X-Transaction-Signature | {transaction_signature} | 请参阅 交易签名 |
| 参数 | 类型 | 必填 | 签名 | 描述 |
|---|---|---|---|---|
| user_id | 字符串 | ✅ | ✅ | 商户标识码 |
| currency | 字符串 | ✅ | ✅ | 支持币别:PHP |
| timestamp | 整数 | ✅ | ✅ | 请求时间戳(10位数字),允许时间差为5秒,超过则失败 |
| sign | 字符串 | ✅ | ❌ | 签名字符串。请参阅 数据签名与验证 |
响应
| 参数 | 类型 | 必填 | 签名 | 描述 |
|---|---|---|---|---|
| user_id | 字符串 | ✅ | ✅ | 商户标识码 |
| items | 数组<Item> | ✅ | ❌ | 通道 |
| sign | 字符串 | ✅ | ❌ | 签名字符串。请参阅 数据签名与验证 |
Item Object
| 参数 | 类型 | 说明 |
|---|---|---|
| transaction_channel | 字符串 | 交易通道 |
| transaction_channel_subject | 字符串 | 交易通道对象 |
| transaction_channel_subject_name | 字符串 | 交易通道对象名称。 |
| transaction_type | 字符串 | 交易类别 |
| currency | 字符串 | 交易通道币别 |
响应示例
{
"code": "1000",
"message": "Accepted",
"data": {
"user_id": "1",
"items": [
{
"transaction_channel": "QRPH",
"transaction_subject": null,
"transaction_subject_name": null,
"transaction_type": "payment",
"currency": "PHP"
},
{
"transaction_channel": "QRPH_INSTAPAY",
"transaction_subject": null,
"transaction_subject_name": null,
"transaction_type": "payment",
"currency": "PHP"
},
{
"transaction_channel": "QRPH_INSTAPAY",
"transaction_subject": "UNO",
"transaction_subject_name": "UNOBank",
"transaction_type": "withdraw",
"currency": "PHP"
}
],
"sign": "GOs5avoyt6xiOuo1YclV37LWSS6vZemiTL//3iID8JGcD6HXskqpWrkqlkMgU8tnmT5rlZBVFEZXt8KflwfJSEd+Y2WxG6KgUE2UsxwAdXZzGkAh0G3Xpmw9R5IfMvP9434tP7HvNKPhuIb7fFmfMIj+SPhjy/QcQWqyXvmElWGnMD6LKoG..."
}
}