Eliminar documentos pendientes
curl --request DELETE \
--url https://api.cobrix.co/api/v1/invoices \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"reason": "DELETE_FROM_PROVIDER"
}
'const options = {
method: 'DELETE',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({reason: 'DELETE_FROM_PROVIDER'})
};
fetch('https://api.cobrix.co/api/v1/invoices', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.cobrix.co/api/v1/invoices"
payload = { "reason": "DELETE_FROM_PROVIDER" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.delete(url, json=payload, headers=headers)
print(response.text)nullAPI pública de documentos de cobro
Eliminar documentos pendientes
Encola la eliminación asíncrona de documentos pendientes del partner. Omite documentos pagados o conciliados. Requiere public_invoices:write.
DELETE
/
v1
/
invoices
Eliminar documentos pendientes
curl --request DELETE \
--url https://api.cobrix.co/api/v1/invoices \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"reason": "DELETE_FROM_PROVIDER"
}
'const options = {
method: 'DELETE',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({reason: 'DELETE_FROM_PROVIDER'})
};
fetch('https://api.cobrix.co/api/v1/invoices', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.cobrix.co/api/v1/invoices"
payload = { "reason": "DELETE_FROM_PROVIDER" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.delete(url, json=payload, headers=headers)
print(response.text)nullAuthorizations
Llave cbx_live con scope de documentos públicos.
Body
application/json
Response
Eliminación encolada

