/issuer/documents/{id}/emailsEnviar por correo
Send request
Use the documented inputs to call this endpoint directly.
Parameters
Values are applied to the request and the example on the right.
Request body
application/jsonrequiredValues: "a4" · "a5" · "ticket80" · "ticket58" · "ticket50"
Responses
Aceptado; SUNAT puede seguir procesando.
{
"attempts": 1.5,
"createdAt": "string",
"errorMessage": "string",
"id": "",
"recipient": "string",
"sentAt": "string",
"status": "string"
}VALIDATION_ERROR: El cuerpo, los parámetros o una regla del comprobante no son válidos. fields indica el campo.
{
"error": {
"code": "string",
"fields": {},
"message": "string",
"requestId": "",
"retryable": true
}
}UNAUTHENTICATED: Falta la clave API o no es válida.
{
"error": {
"code": "string",
"fields": {},
"message": "string",
"requestId": "",
"retryable": true
}
}TRIAL_EXPIRED: La prueba gratuita venció.
TRIAL_EXHAUSTED: La prueba gratuita consumió sus operaciones.
{
"error": {
"code": "string",
"fields": {},
"message": "string",
"requestId": "",
"retryable": true
}
}WORKSPACE_SUSPENDED: El workspace está suspendido.
TEST_KEY_IN_PRODUCTION: La clave no corresponde: un documento emitido con asu_live_ solo se opera con asu_live_ (y uno de prueba con asu_test_).
{
"error": {
"code": "string",
"fields": {},
"message": "string",
"requestId": "",
"retryable": true
}
}NOT_FOUND: El recurso no existe en el workspace.
{
"error": {
"code": "string",
"fields": {},
"message": "string",
"requestId": "",
"retryable": true
}
}FILES_NOT_AVAILABLE: El XML, ZIP o PDF todavía no está disponible.
EMAIL_IN_PROGRESS: Ya hay un envío de correo en curso para el documento.
{
"error": {
"code": "string",
"fields": {},
"message": "string",
"requestId": "",
"retryable": true
}
}INVALID_EMAIL: El destinatario no es un correo válido.
{
"error": {
"code": "string",
"fields": {},
"message": "string",
"requestId": "",
"retryable": true
}
}RATE_LIMITED: Se superó el límite de peticiones. Respeta el header Retry-After.
{
"error": {
"code": "string",
"fields": {},
"message": "string",
"requestId": "",
"retryable": true
}
}INTERNAL_ERROR: Error interno. Reintenta y comparte el requestId con soporte.
{
"error": {
"code": "string",
"fields": {},
"message": "string",
"requestId": "",
"retryable": true
}
}Powered by heyo
