Corregir y reemitir el DTE de un intent
Changed onActualiza el NIT y nombre fiscal, anula el DTE vigente y emite uno nuevo. Usa el ID unificado in_… que devuelve POST /cash_sales y GET /intents/{id}. Funciona también para cash sales.
Si el proveedor no puede anular el DTE vigente, la operación responde 422 con code: void_failed y conserva el documento y los datos fiscales anteriores. Si la anulación termina pero la nueva emisión falla, responde 422 con code: issue_failed; tax_invoice_url queda en null hasta que repitas la operación y la emisión concluya.
Usa un Idempotency-Key único por corrección. Repetir la misma llave y cuerpo reproduce la respuesta anterior sin anular ni reemitir otra vez.
Esta corrección no genera un webhook adicional. Consulta GET /intents/{id} para obtener el tax_invoice_url vigente. En una cuenta conectada, envía también X-ACCOUNT-ID.
Request
- Base URLhttps://app.recurrente.com/api
- AuthAPI key in header X-SECRET-KEY
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
ID unificado del intent
Request body
Response
DTE corregido y reemitido; devuelve el intent actualizado
Changes
- breaking
added to the
response propertyoneOflist for the response status - breaking
added to the
response propertyoneOflist for the response status - breaking
added to the
response propertyoneOflist for the response status - breaking
the
/response's property type changed fromobjecttoarrayfor status - breaking
the
/response's property type changed fromobjecttoarrayfor status - breaking
the
/response's property type changed fromobjecttoarrayfor status
- breaking
- warning
deleted the
headerrequest parameterX-SECRET-KEY - info
the endpoint scheme security
secretKeywas added to the API
- warning