Ir al contenido

Etiquetas fiscales de un DTE emitido (códigos de renta, zona franca, excluir de libros…)

PATCH
/documents/{id}/fiscal
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" }'
id
obligatorio
string
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"
}

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"
}

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"
]
}
}