有人知道我如何使用或使用此测试服务发送XML签名(发票交叉控制财政部)
== STAGING / SANDBOX ==
URL API RECEPTION =
https://api.comprobanteselectronicos.go.cr/recepcion-sandbox/v1/
OAUTH 2.0 ACCESS TOKEN URL =
https://idp.comprobanteselectronicos.go.cr/auth/realms/rut-stag/protocol/openid-connect/token
CLIENT ID = api-stag
CLIENT SECRET = [VACIO]
SCOPE = [VACIO]
Language traduction:
VACIO = EMPTY
答案 0 :(得分:0)
非常好, 在url post和get方法中传递json数据。 是这样的。!
https://api.comprobanteselectronicos.go.cr/recepcion-sandbox/v1/{
"id": "50601011600310112345600100010100000000011999999999",
"date": "2016-01-01T00:00:00-0600",
"transmitter": {
"idType": "02",
"idNumber": "003101123456"
},
"receiver": {
"idType": "02",
"idNumber": "003101123456"
},
"xmlInvoice": "PD94bWwgdmVyc2lvbj0iMS4wIiA/Pg0KDQo8ZG9tYWluIHhtbG5zPSJ1cm46amJvc3M6ZG9tYWluOjQuMCI+DQogICAgPGV4dGVuc2lvbnM+DQogICAgICAgIDxleHRlbnNpb24gbW9kdWxlPSJvcmcuamJvc3MuYXMuY2x1c3RlcmluZy5pbmZpbmlzcGFuIi8+DQogICAgICAgIDxleHRlbnNpb24gbW9kdWxlPSJvcmcuamJvc3MuYXMuY2x1c3RlcmluZy5qZ3JvdXBzIi8+DQogICAgICAgIDxleHRlbnNpb24gbW9kdWxlPSJvcmcuamJvc3MuYXMuY29ubmVjdG9yIi8+DQogICAgICAgIDxleHRlbnNpb24gbW..."
}
“xmlInvoice”:{ “description”:“由纳税人使用XAdES-EPES签署的XML电子发票。必须将XML文本转换为字节数组并在Base64中编码。用于XML和Base64编码的字符映射是UTF8。”, “type”:“string” }