/issuer/establishmentsCrear o actualizar un establecimiento
Send request
Use the documented inputs to call this endpoint directly.
Request body
application/jsonrequiredCódigo de 4 dígitos del local anexo (no puede ser 0000).
Ubigeo INEI de 6 dígitos.
Responses
Correcto.
{
"active": true,
"address": "string",
"code": "string",
"email": "string",
"isDefault": true,
"name": "string",
"phone": "string",
"series": [
{
"active": true,
"documentType": "string",
"establishmentCode": "string",
"mode": "string",
"nextNumber": 1.5,
"series": "string"
}
],
"ubigeo": "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.
ISSUER_FORBIDDEN: El RUC no pertenece al workspace de la clave.
{
"error": {
"code": "string",
"fields": {},
"message": "string",
"requestId": "",
"retryable": true
}
}SERIES_DUPLICATED: La serie ya existe en el RUC.
{
"error": {
"code": "string",
"fields": {},
"message": "string",
"requestId": "",
"retryable": true
}
}SERIES_ESTABLISHMENT_MISMATCH: La serie pertenece a otro establecimiento.
{
"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
