- [JSON representation](https://developers.google.com/pay/redirect-fop-v1/google-redirect-fop-api/CompleteRedirectErrorResponse#SCHEMA_REPRESENTATION)
- [ErrorResponseResult](https://developers.google.com/pay/redirect-fop-v1/google-redirect-fop-api/CompleteRedirectErrorResponse#ErrorResponseResult)
  - [JSON representation](https://developers.google.com/pay/redirect-fop-v1/google-redirect-fop-api/CompleteRedirectErrorResponse#ErrorResponseResult.SCHEMA_REPRESENTATION)
- [InvalidApiVersion](https://developers.google.com/pay/redirect-fop-v1/google-redirect-fop-api/CompleteRedirectErrorResponse#InvalidApiVersion)
  - [JSON representation](https://developers.google.com/pay/redirect-fop-v1/google-redirect-fop-api/CompleteRedirectErrorResponse#InvalidApiVersion.SCHEMA_REPRESENTATION)
- [RequestTimestampOutOfRange](https://developers.google.com/pay/redirect-fop-v1/google-redirect-fop-api/CompleteRedirectErrorResponse#RequestTimestampOutOfRange)
  - [JSON representation](https://developers.google.com/pay/redirect-fop-v1/google-redirect-fop-api/CompleteRedirectErrorResponse#RequestTimestampOutOfRange.SCHEMA_REPRESENTATION)
- [InvalidIdentifier](https://developers.google.com/pay/redirect-fop-v1/google-redirect-fop-api/CompleteRedirectErrorResponse#InvalidIdentifier)
  - [JSON representation](https://developers.google.com/pay/redirect-fop-v1/google-redirect-fop-api/CompleteRedirectErrorResponse#InvalidIdentifier.SCHEMA_REPRESENTATION)
- [InvalidFieldValue](https://developers.google.com/pay/redirect-fop-v1/google-redirect-fop-api/CompleteRedirectErrorResponse#InvalidFieldValue)
  - [JSON representation](https://developers.google.com/pay/redirect-fop-v1/google-redirect-fop-api/CompleteRedirectErrorResponse#InvalidFieldValue.SCHEMA_REPRESENTATION)
- [MissingRequiredField](https://developers.google.com/pay/redirect-fop-v1/google-redirect-fop-api/CompleteRedirectErrorResponse#MissingRequiredField)
  - [JSON representation](https://developers.google.com/pay/redirect-fop-v1/google-redirect-fop-api/CompleteRedirectErrorResponse#MissingRequiredField.SCHEMA_REPRESENTATION)

Details about the error that occurred during the redirect payment.

| JSON representation |
|---|
| ``` { "errorDescription": string, "errorResponseResult": { object (`https://developers.google.com/pay/redirect-fop-v1/google-redirect-fop-api/CompleteRedirectErrorResponse#ErrorResponseResult`) } } ``` |

| Fields ||
|---|---|
| `errorDescription` | `string` **OPTIONAL**: Provide a description of this status for support reps to debug errors. Note that this is never shown to users. It can contain descriptive, non-sensitive text used for debugging. Note that some values for errorResponseCode should be accompanied by additional detail in this field. Warning: Do not include any tokens in this message unless they are defined as public. |
| `errorResponseResult` | ``object (`https://developers.google.com/pay/redirect-fop-v1/google-redirect-fop-api/CompleteRedirectErrorResponse#ErrorResponseResult`)`` **REQUIRED**: A code that captures the type of error that occurred. |

## ErrorResponseResult

Error Codes

| JSON representation |
|---|
| ``` { // The following is a list of mutually exclusive fields. At most one of the // fields will be set in a response: "invalidApiVersion": { object (`https://developers.google.com/pay/redirect-fop-v1/google-redirect-fop-api/CompleteRedirectErrorResponse#InvalidApiVersion`) }, "invalidPayloadSignature": { object (https://developers.google.com/pay/redirect-fop-v1/payment-integrator-redirect-fop-api/Empty) }, "invalidPayloadEncryption": { object (https://developers.google.com/pay/redirect-fop-v1/payment-integrator-redirect-fop-api/Empty) }, "requestTimestampOutOfRange": { object (`https://developers.google.com/pay/redirect-fop-v1/google-redirect-fop-api/CompleteRedirectErrorResponse#RequestTimestampOutOfRange`) }, "invalidIdentifier": { object (`https://developers.google.com/pay/redirect-fop-v1/google-redirect-fop-api/CompleteRedirectErrorResponse#InvalidIdentifier`) }, "idempotencyViolation": { object (https://developers.google.com/pay/redirect-fop-v1/payment-integrator-redirect-fop-api/Empty) }, "invalidFieldValue": { object (`https://developers.google.com/pay/redirect-fop-v1/google-redirect-fop-api/CompleteRedirectErrorResponse#InvalidFieldValue`) }, "missingRequiredField": { object (`https://developers.google.com/pay/redirect-fop-v1/google-redirect-fop-api/CompleteRedirectErrorResponse#MissingRequiredField`) }, "preconditionViolation": { object (https://developers.google.com/pay/redirect-fop-v1/payment-integrator-redirect-fop-api/Empty) }, "userActionInProgress": { object (https://developers.google.com/pay/redirect-fop-v1/payment-integrator-redirect-fop-api/Empty) }, "invalidDecryptedRequest": { object (https://developers.google.com/pay/redirect-fop-v1/payment-integrator-redirect-fop-api/Empty) }, "internalError": { object (https://developers.google.com/pay/redirect-fop-v1/payment-integrator-redirect-fop-api/Empty) }, "unimplemented": { object (https://developers.google.com/pay/redirect-fop-v1/payment-integrator-redirect-fop-api/Empty) }, "unavailable": { object (https://developers.google.com/pay/redirect-fop-v1/payment-integrator-redirect-fop-api/Empty) }, "gatewayTimeout": { object (https://developers.google.com/pay/redirect-fop-v1/payment-integrator-redirect-fop-api/Empty) }, "forbidden": { object (https://developers.google.com/pay/redirect-fop-v1/payment-integrator-redirect-fop-api/Empty) } // End of mutually exclusive fields. } ``` |

| Fields ||
|---|---|
| **REQUIRED**: The type of error that occurred. The following is a list of mutually exclusive fields. At most one of the fields will be set in a response: ||
| `invalidApiVersion` | ``object (`https://developers.google.com/pay/redirect-fop-v1/google-redirect-fop-api/CompleteRedirectErrorResponse#InvalidApiVersion`)`` Used if the request's API version is unsupported. |
| `invalidPayloadSignature` | `object (https://developers.google.com/pay/redirect-fop-v1/payment-integrator-redirect-fop-api/Empty)` Used if the signature of the payload is to an unknown or inactive key. |
| `invalidPayloadEncryption` | `object (https://developers.google.com/pay/redirect-fop-v1/payment-integrator-redirect-fop-api/Empty)` Used if the encryption of the payload is to an unknown or inactive key. |
| `requestTimestampOutOfRange` | ``object (`https://developers.google.com/pay/redirect-fop-v1/google-redirect-fop-api/CompleteRedirectErrorResponse#RequestTimestampOutOfRange`)`` Used if the requestTimestamp is not ± 60s of now. |
| `invalidIdentifier` | ``object (`https://developers.google.com/pay/redirect-fop-v1/google-redirect-fop-api/CompleteRedirectErrorResponse#InvalidIdentifier`)`` Used if an identifier sent in the request was invalid or unknown. This may include PIAID, captureRequestId, Google Payment Token, etc. |
| `idempotencyViolation` | `object (https://developers.google.com/pay/redirect-fop-v1/payment-integrator-redirect-fop-api/Empty)` Used if the request violates the idempotency requirements for the request. |
| `invalidFieldValue` | ``object (`https://developers.google.com/pay/redirect-fop-v1/google-redirect-fop-api/CompleteRedirectErrorResponse#InvalidFieldValue`)`` Used if the request contains a value for a field that isn't in the set of supported values. |
| `missingRequiredField` | ``object (`https://developers.google.com/pay/redirect-fop-v1/google-redirect-fop-api/CompleteRedirectErrorResponse#MissingRequiredField`)`` Used if a field that is required is unset in the request. |
| `preconditionViolation` | `object (https://developers.google.com/pay/redirect-fop-v1/payment-integrator-redirect-fop-api/Empty)` Used if a constraint on the operation is violated (e.g. when a request for a refund amount exceeds the amount remaining on the transaction). |
| `userActionInProgress` | `object (https://developers.google.com/pay/redirect-fop-v1/payment-integrator-redirect-fop-api/Empty)` Used if the request cannot be processed at this time because it would interrupt an in-process user action which effectively acts as a system lock. This code must *not* be used to indicate failures due to implementation-specific internal concurrency errors. |
| `invalidDecryptedRequest` | `object (https://developers.google.com/pay/redirect-fop-v1/payment-integrator-redirect-fop-api/Empty)` Used if the request payload could be decrypted, but the resulting message could not be parsed. |
| `internalError` | `object (https://developers.google.com/pay/redirect-fop-v1/payment-integrator-redirect-fop-api/Empty)` Internal errors. This means some invariants expected by underlying system has been broken. Analogous to HTTP error 500. |
| `unimplemented` | `object (https://developers.google.com/pay/redirect-fop-v1/payment-integrator-redirect-fop-api/Empty)` Operation is not implemented, supported or enabled in this service. Analogous to HTTP error 501. |
| `unavailable` | `object (https://developers.google.com/pay/redirect-fop-v1/payment-integrator-redirect-fop-api/Empty)` The service is currently unavailable. This is a most likely a transient condition and may be corrected by retrying. Analogous to HTTP error 503. |
| `gatewayTimeout` | `object (https://developers.google.com/pay/redirect-fop-v1/payment-integrator-redirect-fop-api/Empty)` Deadline expired before operation could complete. For operations that change the state of the system, this error may be returned even if the operation has completed successfully. For example, a successful response from a server could have been delayed long enough for the deadline to expire. Analogous to HTTP error 504. |
| `forbidden` | `object (https://developers.google.com/pay/redirect-fop-v1/payment-integrator-redirect-fop-api/Empty)` Access to the requested resource is forbidden. Analogous to HTTP error 403. |
| End of mutually exclusive fields. ||

## InvalidApiVersion

Used if the request's API version is unsupported.

| JSON representation |
|---|
| ``` { "requestVersion": { object (https://developers.google.com/pay/redirect-fop-v1/payment-integrator-redirect-fop-api/Version) }, "expectedVersion": { object (https://developers.google.com/pay/redirect-fop-v1/payment-integrator-redirect-fop-api/Version) } } ``` |

| Fields ||
|---|---|
| `requestVersion` | `object (https://developers.google.com/pay/redirect-fop-v1/payment-integrator-redirect-fop-api/Version)` **REQUIRED**: The invalid version that was specified on the request. |
| `expectedVersion` | `object (https://developers.google.com/pay/redirect-fop-v1/payment-integrator-redirect-fop-api/Version)` **REQUIRED**: The expected version. |

## RequestTimestampOutOfRange

Used if the requestTimestamp is not ± 60s of now.

| JSON representation |
|---|
| ``` { "requestTimestamp": { object (https://developers.google.com/pay/redirect-fop-v1/payment-integrator-redirect-fop-api/Timestamp) }, "serverTimestampAtReceipt": { object (https://developers.google.com/pay/redirect-fop-v1/payment-integrator-redirect-fop-api/Timestamp) } } ``` |

| Fields ||
|---|---|
| `requestTimestamp` | `object (https://developers.google.com/pay/redirect-fop-v1/payment-integrator-redirect-fop-api/Timestamp)` **REQUIRED**: The timestamp provided in the request |
| `serverTimestampAtReceipt` | `object (https://developers.google.com/pay/redirect-fop-v1/payment-integrator-redirect-fop-api/Timestamp)` **REQUIRED**: The server time at receipt, used for comparison |

## InvalidIdentifier

Used if an identifier sent in the request was invalid or unknown. This may include PIAID, captureRequestId, Google Payment Token, etc.

| JSON representation |
|---|
| ``` { "invalidIdentifierType": string } ``` |

| Fields ||
|---|---|
| `invalidIdentifierType` | `string` **REQUIRED**: The type of identifier that was invalid, e.g. PIAID, captureRequestId, etc. |

## InvalidFieldValue

Used if the request contains a value for a field that isn't in the set of supported values.

| JSON representation |
|---|
| ``` { "invalidFieldName": string } ``` |

| Fields ||
|---|---|
| `invalidFieldName` | `string` **REQUIRED**: The name of the field that was found to be invalid. |

## MissingRequiredField

Used if a field that is required is unset in the request.

| JSON representation |
|---|
| ``` { "missingFieldNames": [ string ] } ``` |

| Fields ||
|---|---|
| `missingFieldNames[]` | `string` **REQUIRED**: The names of the missing fields. |