Ir al contenido

Reabrir periodo con motivo (crea versión nueva; requiere scope fiscal:close)

POST
/emitters/{id}/fiscal/periods/{period}/reopen
curl --request POST \
--url https://api.sudte.com/v1/emitters/example/fiscal/periods/example/reopen \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: example' \
--data '{ "reason": "example" }'
id
obligatorio
string
period
obligatorio
string
/^\d{4}-\d{2}$/
Idempotency-Key
obligatorio
string
<= 255 characters
Media type application/json
object
reason
obligatorio
string
>= 10 characters

Example generated

{
"reason": "example"
}

Reabierto

Media type application/json
object
period
string
status
string
Allowed values: open closing closed
version
integer
closed_at
string format: date-time
drift
boolean

Example

{
"status": "open"
}

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