Códigos de erro — RocketPVA

All domain errors return HTTP 400 with a standardized error envelope. The code field identifies the specific error.

All domain errors return HTTP 400 with a standardized error envelope. The code field identifies the specific error.

{
  "success": false,
  "data": null,
  "errors": [
    {
      "code": "BOOKKEEPING_NOT_FOUND",
      "message": "Bookkeeping not found for the given filter."
    }
  ]
}

Certificate Errors

CodeDescription
CERTIFICATE_NOT_VALIDCertificate is expired or invalid
CERTIFICATE_EXCLUSION_ERRORCertificate cannot be deleted (in use)
DUPLICATE_CERTIFICATE_ERRORCertificate already exists for this customer
BYTE_CONVERSION_ERRORFailed to read certificate file bytes
ERROR_EXTRACTING_CERTIFICATE_DATAFailed to parse certificate data
EXPIRATION_NOT_FOUNDCould not determine certificate expiration date
COMPANY_AND_TAX_ID_NOT_FOUNDCould not find company and tax ID in certificate
TAX_ID_NOT_FOUNDCould not extract tax ID from certificate
COMPANY_ISSUER_NOT_FOUNDCould not find certificate issuer information

Bookkeeping Errors

CodeDescription
BOOKKEEPING_NOT_FOUNDBookkeeping not found for the given ID or filter
BOOKKEEPING_INVALID_STATUSOperation not allowed for the current bookkeeping status
BOOKKEEPING_INVALID_SPED_TYPEInvalid SPED type specified
INVALID_FILE_STATUSInvalid file status for the requested operation
BOOKKEEPING_EXPIRED_VALIDATION_FILEValidation file has expired and needs to be re-uploaded
BOOKKEEPING_TRANSMISSION_NOT_FOUNDTransmission record not found for the bookkeeping
BOOKKEEPING_CANNOT_DELETE_DUE_TO_TRANSMISSIONCannot delete bookkeeping that has been transmitted
BOOKKEEPING_ORIGINAL_WITH_TRANSMISSIONSOriginal bookkeeping has transmission records
BOOKKEEPING_NOT_FOUND_FOR_FILTERNo bookkeeping matches the provided filter criteria

Bookkeeping File Errors

CodeDescription
BOOKKEEPING_FILE_HISTORY_NOT_FOUNDFile history record not found
BOOKKEEPING_RESULTS_FILE_NOT_FOUNDValidation results file not found in storage
BOOKKEEPING_GENERATE_EDITED_FILE_NOT_FOUNDEdited file not found for generation
BOOKKEEPING_COPIA_SEGURANCA_FILE_NOT_FOUNDBackup file not found

Bulk Operation Errors

CodeDescription
BULK_BOOKKEEPING_DATE_RANGE_EXCEEDS_LIMITBulk operation date range exceeds the allowed limit
BOOKKEEPING_ALREADY_IN_BULK_PROCESSBookkeeping is already part of a bulk process
USER_ALREADY_HAS_BULK_OPERATION_IN_PROGRESSUser already has a bulk operation running
BULK_OPERATION_NOT_FOUNDBulk operation not found
BULK_OPERATION_FILE_NOT_FOUNDBulk operation file not found

Signatory Errors

CodeDescription
SIGNATURE_WITH_CERTIFICATE_ERRORError signing with the assigned certificate
SIGNATURE_NOT_FOUNDSignatory not found
SIGNATURE_EXPIREDSignatory's certificate has expired
UNQUALIFIED_SIGNATORYSignatory does not have a valid qualification
INVALID_CERTIFICATE_TYPE_FOR_ECD_SIGNATORYCertificate type is incompatible with ECD signatory requirements

Billing Errors

CodeDescription
CUSTOMER_NOT_ACTIVECustomer account is not active
PRODUCT_NOT_ACTIVEProduct subscription is not active
TRIAL_EXPIREDCustomer trial period has expired

HTTP Status Code Mapping

HTTP StatusError Category
400Domain/business rule violations (codes listed above)
401Missing or invalid authentication token
403Insufficient permissions (missing required role)
404Resource not found
500Unexpected server error

Nesta página