Comunidade
Erro 500 na geração de boletos no ambiente sandbox
10 months ago by TIAGO BAPTISTA ASSIS SALGADO(edited)
Status: 500
Response data: {"fault":{"faultstring":"Execution of JS-SetTaxIdVariable failed with error: Javascript runtime error: "TypeError: Cannot call method "split" of null. (SetTaxIdVariable.js:2)"","detail":{"errorcode":"steps.javascript.ScriptExecutionFailed"}}}
Estou tendo esse problema ao enviar o seguinte body:
"POST /v1/bank-slips HTTP/1.1\r\nAccept: application/json, text/plain, /\r\nContent-Type: application/json\r\nAuthorization: Bearer [TOKEN]\r\nUser-Agent: axios/1.6.2\r\nContent-Length: 219\r\nAccept-Encoding: gzip, compress, deflate, br\r\nHost: api.sandbox.empresas.btgpactual.com\r\nConnection: keep-alive\r\n\r\n"
currentUrl: "https://api.sandbox.empresas.btgpactual.com/v1/bank-slips"
Body: