> ## Documentation Index
> Fetch the complete documentation index at: https://docs.tesouro.com/llms.txt
> Use this file to discover all available pages before exploring further.

# RuleInViolationError

> This occurs when an internal Tesouro business rule is in violation.

`OBJECT`

This occurs when an internal Tesouro business rule is in violation.

## Fields

<ResponseField name="message" type="String!" required>
  A human readable description of the error.
</ResponseField>

<ResponseField name="advice" type="String!" required>
  Advice on how to overcome the rule in the future.
</ResponseField>

<ResponseField name="explanationOfRule" type="String!" required>
  An explanation of why the rule exists.
</ResponseField>

<ResponseField name="ruleName" type="RuleName!" required>
  The name of the rule in violation

  <Expandable title="Possible enum values">
    <ResponseField name="ACCEPTOR_ID_MISMATCH" type="enum">
      Acceptor IDs between follow up and original transactions must match.
    </ResponseField>

    <ResponseField name="ORIGINAL_NOT_APPROVED" type="enum">
      The referenced transaction must have been approved to follow up.
    </ResponseField>

    <ResponseField name="FULLY_REVERSED" type="enum">
      A payment that has been fully reversed cannot be referenced.
    </ResponseField>

    <ResponseField name="FULLY_CAPTURED" type="enum">
      The payment is already fully captured.
    </ResponseField>

    <ResponseField name="CAPTURE_EXCEEDS_AUTHORIZED_AMOUNT" type="enum">
      The requested capture amount exceeds the original authorized amount of the payment.
    </ResponseField>

    ...and 12 more values. See [RuleName](/acquiring/reference/graphql/types/rule-name) for the full list.
  </Expandable>
</ResponseField>

<ResponseField name="processorResponseCode" type="ProcessorResponseCode!" required>
  Tesouro response code indicating the error.

  <Expandable title="Possible enum values">
    <ResponseField name="A0000" type="enum">
      Full amount approved.
    </ResponseField>

    <ResponseField name="A0001" type="enum">
      Partially approved. The transaction was approved for an amount less than the original request because the cardholder's account balance was insufficient to cover the full amount.
    </ResponseField>

    <ResponseField name="A0002" type="enum">
      Purchase amount approved, not cash.
    </ResponseField>

    <ResponseField name="A0003" type="enum">
      Point-to-Point Encryption (P2PE) success.
    </ResponseField>

    <ResponseField name="A0004" type="enum">
      Account Validated.
    </ResponseField>

    ...and 90 more values. See [ProcessorResponseCode](/acquiring/reference/graphql/types/processor-response-code) for the full list.
  </Expandable>
</ResponseField>

<ResponseField name="dateTimeUtc" type="DateTime!" required deprecated>
  The date and time, in UTC, that the error occured. Formatted as 2024-03-27T02:40:00Z.

  **Deprecated:** Use errorDateTime instead.
</ResponseField>

<ResponseField name="errorDateTime" type="DateTime!" required>
  The date and time, in UTC, that the error occured. Formatted as 2024-03-27T02:40:00Z.
</ResponseField>

<ResponseField name="transactionId" type="UUID!" required>
  Unique ID for the transaction assigned by Tesouro.
</ResponseField>
