TS
const rawResult = await axios({
url: https://pix-h.api.efipay.com.br/v2/cob/${txid},
method: 'PUT',
headers: {
'Content-Type': 'application/json'
},
auth: {
username: process.env.EFI_CLIENT_ID,
password: process.env.EFI_CLIENT_SECRET
},
httpsAgent: agent,
data: body
})
const rawResult = await axios({
url: https://pix-h.api.efipay.com.br/v2/cob/${txid},
method: 'PUT',
headers: {
'Content-Type': 'application/json'
},
auth: {
username: process.env.EFI_CLIENT_ID,
password: process.env.EFI_CLIENT_SECRET
},
httpsAgent: agent,
data: body
})