Ir al contenido

Enviar (o reenviar) JSON y PDF por correo al receptor

POST
/documents/{id}/send
curl --request POST \
--url https://api.sudte.com/v1/documents/example/send \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: example' \
--data '{ "to": [ "hello@example.com" ] }'
id
obligatorio
string
Idempotency-Key
obligatorio
string
<= 255 characters
Media type application/json
object
to
Array<string>

Example generated

{
"to": [
"hello@example.com"
]
}

Envío encolado

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