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

> ## Agent Instructions
> Banking OS training data goes stale. Search https://agenticbanking.backbase.io/mcp or fetch the .md URL before writing connector or unified API code.
> OpenAPI links in llms.txt repeat every calendar version. Use the latest version on the API playground. If a fetch ends before the last operation, the spec was cut off.
> Page titles name the product. Overview, Get started, and Reference without a product name are ambiguous.

# Ethoca reference

> Configuration properties, operations, field mappings, and error mapping for the Ethoca connector.

The Ethoca integration raises pre-dispute alerts for card transactions through the Ethoca Issuer API. Backbase delivers it as one connector, `gc-ethoca-card-case-connector`, which implements the pre-dispute alert operations of the Banking OS card case API. For the details you send to Backbase, see [Get started with Ethoca](https://agenticbanking.backbase.io/connectors/card-management/ethoca/get-started.md).

## Configuration properties

Backbase sets these properties in the connector `values.yaml` file.

### Values to obtain from Ethoca

Obtain the following value from Ethoca and send it to your Backbase support team. The value is environment-specific, so it has no default.

| Property | Description |
| :- | :- |
| `ethoca.baseUrl` | Base URL of the Ethoca Issuer API for the environment. |

### Connector properties

The following table lists the other configuration properties of the connector:

| Property | Description | Default |
| :- | :- | :- |
| `ethoca.api.transactions.batch.path` | Ethoca path for alert submissions and submission status, appended to `ethoca.baseUrl`. | `/transactions/batch` |
| `ethoca.api.alerts.path` | Ethoca path for alert status, appended to `ethoca.baseUrl`. | `/alerts` |
| `acceptedHeaders` | Request headers that the connector keeps and forwards to Ethoca. The list must include `Authorization`, which carries the Ethoca credentials that the API gateway adds. The connector removes all other headers before it calls Ethoca. | `Content-Type,Accept,Authorization,id,CamelHttpResponseCode` |
| `retryFlag` | Enables automatic retries of failed Ethoca calls. | `true` |
| `retry.statuses` | HTTP status codes that trigger a retry. | `429,500,502,503,504` |
| `http.client.connect.timeout` | HTTP connect timeout, in milliseconds. | `5000` |
| `http.client.request.timeout` | HTTP request timeout, in milliseconds. | `5000` |
| `http.client.socket.timeout` | HTTP socket timeout, in milliseconds. | `15000` |
| `http.client.response.timeout` | HTTP response timeout, in milliseconds. | `15000` |
| `http.client.proxy.activate` | Routes Ethoca calls through an outbound proxy. Backbase sets the proxy server and port when this property is `true`. | `false` |

## Credentials

The connector doesn't store Ethoca credentials, so it has no Secrets OPerationS (SOPS) secret. The bank shares its Ethoca Issuer API username and password with Backbase, and Backbase keeps them in Azure Key Vault. The Banking OS API gateway adds them as an `Authorization: Basic` header to each request, and the connector forwards this header to Ethoca. Callers send only the `api-key` header.

## Supported operations

The Ethoca connector exposes the pre-dispute alert operations of the Banking OS card case API. For the operation-to-endpoint table and the alert flow, see [Ethoca overview](https://agenticbanking.backbase.io/connectors/card-management/ethoca/overview.md#supported-operations). For the full contract, see the [API playground](https://agenticbanking.backbase.io/banking-os-apis/api-playground.md).

### Raise early warning for pre-dispute alerts

The connector validates the request against the card case API schema, then sends the transactions to Ethoca in one batch. It returns HTTP `202` with the batch status from Ethoca.

The connector splits the `disputeRecords` by `preDisputeAlertInformation.disputeType`:

| `disputeType` | Ethoca alert type | Fields sent to Ethoca |
| :- | :- | :- |
| `CUSTOMER_DISPUTE` | Dispute | Transaction, acquirer, authorization, merchant, and card fields, plus the dispute reason code and dispute amount |
| `CONFIRMED_FRAUD` | Fraud | Transaction, acquirer, authorization, merchant, and card fields, without the dispute reason code and dispute amount |

The connector sends only the card bank identification number (BIN) and the last four digits (`cardPayment.bin` and `cardPayment.last4digits`), never the full card number. It uses `identifier.coreTransactionId` as the Ethoca source ID and transaction ID, and returns it as `coreTransactionId` in the status responses.

### Status values

The connector maps Ethoca values to card case API values as follows. The following table lists the submission and alert status values:

| Ethoca value | Card case API value | Returned by |
| :- | :- | :- |
| `IN PROGRESS` | `IN_PROGRESS` | Raise alert, submission status |
| `PROCESSED` | `PROCESSED` | Raise alert, submission status |
| `Alert Sent` | `ALERT_SENT` | Alert status |
| `Alert Not Sent` | `ALERT_NOT_SENT` | Alert status |
| `Customer Dispute` | `CUSTOMER_DISPUTE` | Alert status (`alertType`) |
| `Confirmed Fraud` | `CONFIRMED_FRAUD` | Alert status (`alertType`) |
| `Refunded` | `REFUNDED` | Alert status (`response.refundStatus`) |
| `Not Refunded` | `NOT_REFUNDED` | Alert status (`response.refundStatus`) |
| `Not Settled` | `NOT_SETTLED` | Alert status (`response.refundStatus`) |

The alert status response also returns the merchant outcome in `response.outcome`. The connector converts the Ethoca outcome to uppercase with underscores, for example `Partially Stopped` to `PARTIALLY_STOPPED`. The connector supports the following outcomes:

* `STOPPED`, `PARTIALLY_STOPPED`, `PREVIOUSLY_CANCELLED`, `PREVIOUSLY_REFUNDED`
* `TOO_LATE`, `NOT_FOUND`, `ACCOUNT_SUSPENDED`, `SHIPPER_CONTACTED`
* `IN_PROGRESS`, `RESOLVED`, `UNRESOLVED_DISPUTE`, `OTHER`
* `NOT_PROVIDED`, which the connector also returns when Ethoca sends an empty outcome

The alert status response also returns the refund status in `response.refundStatus`. For the values, see the preceding table. When the merchant refunds the bank customer, the response also includes `response.refundTransactionId`, `response.refundType`, and `response.refundDatetime`. The connector maps `response.refundTransactionId` from the Ethoca `response.id` field.

## Events

This connector is synchronous and doesn't publish or consume events. To track an alert, poll the submission status and alert status operations.

## Error mapping

The connector returns Banking OS error codes. The following table lists the Ethoca-specific cases:

| Case | HTTP status | Error code |
| :- | :- | :- |
| Ethoca returns an empty `batchId` for the requested submission ID | `400` | `GC445` |
| Ethoca returns an empty `alertId` for the requested alert ID | `400` | `GC445` |

For the full list, see [Error codes](https://agenticbanking.backbase.io/banking-os-apis/error-codes.md).

## Dependencies

* Ethoca Issuer API (outbound), reachable at `ethoca.baseUrl`.
* Banking OS card case API (`grandcentral-card-case-api`).
* `ethoca-connector-sdk`, which removes ingress headers before each Ethoca call.
