l 请求URL
https://openapi.unionpay.com/upapi/merchantToNet/token?app_id=[value]&app_secret=[value]
l 应答报文结果:
{ “token”:”fsddfssseessseee”, “expire_in”:7200 }
l 请求URL
https://openapi.unionpay.com/upapi/merchantToNet/queryAllBusiType?token=[token]&sign=[sign]&ts=[ts]
l 请求报文参数
无
l 应答报文结果:
{ "data": [{ " busiTypeList ": [{ "busiName":"POS业务", "busiType":"01" }], "respCd": "0000", "respMsg": "" }
l 请求URL
https://openapi.unionpay.com/upapi/merchantToNet/queryAllProdType?token=[token]&sign=[sign]&ts=[ts]
l 请求报文参数
{ “busiType”:”01” }
l 应答报文结果:
{ "data": [{ "prodTypeList": [{ "prodType":"01", "prodName":"POS" }], "respCd": "0000", "respMsg": "" }
l 请求URL
https://openapi.unionpay.com/upapi/merchantToNet/queryMcc?token=[token]&sign=[sign]&ts=[ts]
l 请求报文参数
{ “busiType”:”01”, “prodType”:”01” }
l 应答报文结果:
{ "data": [{ " mccList ": [{ “mccKey”:”4112”, “mccValue”:”铁路客运” }], "respCd": "0000", "respMsg": "" }
l 请求URL
https://openapi.unionpay.com/upapi/merchantToNet/queryMaterial?token=[token]&sign=[sign]&ts=[ts]
l 请求报文参数
{ “busiType”:”01”, “prodType”:”01”, “mccKey”:”4112” }
l 应答报文结果:
{ "data": [{ " materialList": [{ “id”:”1”, “busiType”:”01”, “prodType”:”01”, “mccKey”:”4112”, “material”:”1111111111”, “enterNetType”:”22222222”, “priceType”:”01”, “prodName”:”1111111111”, “busiName”:”22222222”, “priceName”:”01” }], "respCd": "0000", "respMsg": "" }