Ir al contenido

Cerrar periodo (snapshots inmutables con hash de todos los reportes)

POST
/emitters/{id}/fiscal/periods/{period}/close
curl --request POST \
--url https://api.sudte.com/v1/emitters/example/fiscal/periods/example/close \
--header 'Authorization: Bearer <token>' \
--header 'Idempotency-Key: example'
id
obligatorio
string
period
obligatorio
string
/^\d{4}-\d{2}$/
Idempotency-Key
obligatorio
string
<= 255 characters

Cierre en proceso

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