/issuer/documents/{id}/query-sunatConsultar el ticket en SUNAT
Send request
Use the documented inputs to call this endpoint directly.
Parameters
Values are applied to the request and the example on the right.
Responses
Correcto.
{
"createdAt": "string",
"currency": "string",
"customer": {
"documentNumber": "string",
"documentType": "string",
"name": "string"
},
"environment": "string",
"fullNumber": "string",
"id": "",
"issueDate": "string",
"issuerRuc": "string",
"links": {
"cdr": "string",
"pdf": "string",
"self": "string",
"xml": "string",
"zip": "string"
},
"number": "string",
"series": "string",
"status": "string",
"sunat": {
"attempts": 1.5,
"description": "string",
"errorCode": "string",
"errorMessage": "string",
"responseCode": "string",
"ticket": "string"
},
"test": true,
"total": "string",
"type": "string",
"updatedAt": "string"
}Serie y número, por ejemplo F001-123.
Identificador del documento en API SUNAT (UUID).
true si se emitió con una clave asu_test_ (sandbox en SUNAT beta).
Tipo SUNAT: 01, 03, 07, 08, 09, 20 o 40.
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
}
}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
