Etiquetas fiscales de un DTE emitido (códigos de renta, zona franca, excluir de libros…)
PATCH
/documents/{id}/fiscal
const url = 'https://api.sudte.com/v1/documents/example/fiscal';const options = { method: 'PATCH', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"income_codes":{"operation_type":"example","income_type":"example"},"free_zone":true,"exempt_non_proportional":true,"exclude_from_books":true,"external_ref":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url https://api.sudte.com/v1/documents/example/fiscal \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "income_codes": { "operation_type": "example", "income_type": "example" }, "free_zone": true, "exempt_non_proportional": true, "exclude_from_books": true, "external_ref": "example" }'Autorización
Sección titulada « Autorización »Parámetros
Sección titulada « Parámetros »Parámetros de ruta
Sección titulada « Parámetros de ruta » id
obligatorio
string
Cuerpo de la solicitudobligatorio
Sección titulada « Cuerpo de la solicitudobligatorio » Media type application/json
object
income_codes
object
operation_type
string
income_type
string
free_zone
boolean
exempt_non_proportional
boolean
exclude_from_books
boolean
external_ref
string
Example generated
{ "income_codes": { "operation_type": "example", "income_type": "example" }, "free_zone": true, "exempt_non_proportional": true, "exclude_from_books": true, "external_ref": "example"}Respuestas
Sección titulada « Respuestas »Actualizado
Media type application/json
object
income_codes
object
operation_type
string
income_type
string
free_zone
boolean
exempt_non_proportional
boolean
exclude_from_books
boolean
external_ref
string
Example generated
{ "income_codes": { "operation_type": "example", "income_type": "example" }, "free_zone": true, "exempt_non_proportional": true, "exclude_from_books": true, "external_ref": "example"}default
Sección titulada « default »Error (RFC 9457)
Media type application/problem+json
object
type
string format: uri
title
string
status
integer
detail
string
instance
string
request_id
string
errors
Array<object>
object
path
string
message
string
mh
object
codigoMsg
string
descripcionMsg
string
observaciones
Array<string>
Example generated
{ "type": "https://example.com", "title": "example", "status": 1, "detail": "example", "instance": "example", "request_id": "example", "errors": [ { "path": "example", "message": "example" } ], "mh": { "codigoMsg": "example", "descripcionMsg": "example", "observaciones": [ "example" ] }}