# Testing
source: https://developer.mastercard.com/ethoca-alerts-for-merchants/documentation/testing/index.md

This article provides test case data that shows the merchant detail responses you can expect to receive from some example requests sent to the Alerts for Merchants API.

## Test Data {#test-data}

Following are the types of test data provided in this article:

* [TD1: Maximum allowed outcomes sent](https://developer.mastercard.com/ethoca-alerts-for-merchants/documentation/testing/index.md#td1-maximum-allowed-outcomes-sent)
* [TD2: Request sent with valid refundStatus](https://developer.mastercard.com/ethoca-alerts-for-merchants/documentation/testing/index.md#td2-request-sent-with-valid-refundstatus)
* [TD3: Request sent with valid refundtype](https://developer.mastercard.com/ethoca-alerts-for-merchants/documentation/testing/index.md#td3-request-sent-with-valid-refundtype)
* [TD4: Request sent for customer dispute alert](https://developer.mastercard.com/ethoca-alerts-for-merchants/documentation/testing/index.md#td4-request-sent-for-customer-dispute-alert)
* [TD5: Request sent for confirmed fraud alert](https://developer.mastercard.com/ethoca-alerts-for-merchants/documentation/testing/index.md#td5-request-sent-for-confirmed-fraud-alert)
* [TD6: Request includes only mandatory fields](https://developer.mastercard.com/ethoca-alerts-for-merchants/documentation/testing/index.md#td6-request-includes-only-mandatory-fields)
* [TD7: Request contains partially valid values](https://developer.mastercard.com/ethoca-alerts-for-merchants/documentation/testing/index.md#td7-request-contains-partially-valid-values)
* [TD8: Request contains duplicate values in two different requests](https://developer.mastercard.com/ethoca-alerts-for-merchants/documentation/testing/index.md#td8-request-contains-duplicate-values-in-two-different-requests)

### TD1: Maximum allowed outcomes sent {#td1-maximum-allowed-outcomes-sent}

For this test case, a merchant partner sends a batch of 25 outcomes to the **Alerts Outcome** service with a request payload in which all fields have valid values.

#### Request {#request}

```JSON
{
    "outcomes": [
        {
            "alertId": "C17XF5HIGYBM883ASUL7VFGCN",
            "outcome": "STOPPED",
            "refundStatus": "REFUNDED",
            "refund": {
                "amount": {
                    "value": "234.56",
                    "currencyCode": "USD"
                },
                "type": "POINTS",
                "timestamp": "2021-01-06T10:30:00.000Z",
                "transactionId": "dhdgjhkhjkhj",
                "acquirerReferenceNumber": "gfgsdfs"
            },
            "amountStopped": {
                "value": "234.56",
                "currencyCode": "USD"
            },
            "comments": "Refunded via transactionId XXX on YYY",
            "actionTimestamp": "2021-01-06T10:30:00.000Z"
        },
        {
            "alertId": "C14XF5HIGYBM883ASUL7VFGCN",
            "outcome": "STOPPED",
            "refundStatus": "REFUNDED",
            "refund": {
                "amount": {
                    "value": "234.56",
                    "currencyCode": "USD"
                },
                "type": "POINTS",
                "timestamp": "2021-01-06T10:30:00.000Z",
                "transactionId": "dhdgjhkhjkhj",
                "acquirerReferenceNumber": "gfgsdfs"
            },
            "amountStopped": {
                "value": "234.56",
                "currencyCode": "USD"
            },
            "comments": "Refunded via transactionId XXX on YYY",
            "actionTimestamp": "2021-01-06T10:30:00.000Z"
        },
        {
            "alertId": "C02XF5HIGYBM883ASUL7VFGCN",
            "outcome": "STOPPED",
            "refundStatus": "REFUNDED",
            "refund": {
                "amount": {
                    "value": "234.56",
                    "currencyCode": "USD"
                },
                "type": "POINTS",
                "timestamp": "2021-01-06T10:30:00.000Z",
                "transactionId": "dhdgjhkhjkhj",
                "acquirerReferenceNumber": "gfgsdfs"
            },
            "amountStopped": {
                "value": "234.56",
                "currencyCode": "USD"
            },
            "comments": "Refunded via transactionId XXX on YYY",
            "actionTimestamp": "2021-01-06T10:30:00.000Z"
        },
        {
            "alertId": "C07XF5HIGYBM883ASUL7VFGCN",
            "outcome": "STOPPED",
            "refundStatus": "REFUNDED",
            "refund": {
                "amount": {
                    "value": "234.56",
                    "currencyCode": "USD"
                },
                "type": "POINTS",
                "timestamp": "2021-01-06T10:30:00.000Z",
                "transactionId": "dhdgjhkhjkhj",
                "acquirerReferenceNumber": "gfgsdfs"
            },
            "amountStopped": {
                "value": "234.56",
                "currencyCode": "USD"
            },
            "comments": "Refunded via transactionId XXX on YYY",
            "actionTimestamp": "2021-01-06T10:30:00.000Z"
        },
        {
            "alertId": "C05XF5HIGYBM883ASUL7VFGCN",
            "outcome": "RESOLVED",
            "refundStatus": "REFUNDED",
            "refund": {
                "amount": {
                    "value": "234.56",
                    "currencyCode": "USD"
                },
                "type": "POINTS",
                "timestamp": "2021-01-06T10:30:00.000Z",
                "transactionId": "dhdgjhkhjkhj",
                "acquirerReferenceNumber": "gfgsdfs"
            },
            "amountStopped": {
                "value": "234.56",
                "currencyCode": "USD"
            },
            "comments": "Refunded via transactionId XXX on YYY",
            "actionTimestamp": "2021-01-06T10:30:00.000Z"
        },
        {
            "alertId": "C09XF5HIGYBM883ASUL7VFGCN",
            "outcome": "STOPPED",
            "refundStatus": "REFUNDED",
            "refund": {
                "amount": {
                    "value": "234.56",
                    "currencyCode": "USD"
                },
                "type": "POINTS",
                "timestamp": "2021-01-06T10:30:00.000Z",
                "transactionId": "dhdgjhkhjkhj",
                "acquirerReferenceNumber": "gfgsdfs"
            },
            "amountStopped": {
                "value": "234.56",
                "currencyCode": "USD"
            },
            "comments": "Refunded via transactionId XXX on YYY",
            "actionTimestamp": "2021-01-06T10:30:00.000Z"
        },
        {
            "alertId": "C08XF5HIGYBM883ASUL7VFGCN",
            "outcome": "STOPPED",
            "refundStatus": "REFUNDED",
            "refund": {
                "amount": {
                    "value": "234.56",
                    "currencyCode": "USD"
                },
                "type": "POINTS",
                "timestamp": "2021-01-06T10:30:00.000Z",
                "transactionId": "dhdgjhkhjkhj",
                "acquirerReferenceNumber": "gfgsdfs"
            },
            "amountStopped": {
                "value": "234.56",
                "currencyCode": "USD"
            },
            "comments": "Refunded via transactionId XXX on YYY",
            "actionTimestamp": "2021-01-06T10:30:00.000Z"
        },
        {
            "alertId": "C12XF5HIGYBM883ASUL7VFGCN",
            "outcome": "STOPPED",
            "refundStatus": "REFUNDED",
            "refund": {
                "amount": {
                    "value": "234.56",
                    "currencyCode": "USD"
                },
                "type": "POINTS",
                "timestamp": "2021-01-06T10:30:00.000Z",
                "transactionId": "dhdgjhkhjkhj",
                "acquirerReferenceNumber": "gfgsdfs"
            },
            "amountStopped": {
                "value": "234.56",
                "currencyCode": "USD"
            },
            "comments": "Refunded via transactionId XXX on YYY",
            "actionTimestamp": "2021-01-06T10:30:00.000Z"
        },
        {
            "alertId": "C13XF5HIGYBM883ASUL7VFGCN",
            "outcome": "STOPPED",
            "refundStatus": "REFUNDED",
            "refund": {
                "amount": {
                    "value": "234.56",
                    "currencyCode": "USD"
                },
                "type": "POINTS",
                "timestamp": "2021-01-06T10:30:00.000Z",
                "transactionId": "dhdgjhkhjkhj",
                "acquirerReferenceNumber": "gfgsdfs"
            },
            "amountStopped": {
                "value": "234.56",
                "currencyCode": "USD"
            },
            "comments": "Refunded via transactionId XXX on YYY",
            "actionTimestamp": "2021-01-06T10:30:00.000Z"
        },
        {
            "alertId": "C16XF5HIGYBM883ASUL7VFGCN",
            "outcome": "STOPPED",
            "refundStatus": "REFUNDED",
            "refund": {
                "amount": {
                    "value": "234.56",
                    "currencyCode": "USD"
                },
                "type": "POINTS",
                "timestamp": "2021-01-06T10:30:00.000Z",
                "transactionId": "dhdgjhkhjkhj",
                "acquirerReferenceNumber": "gfgsdfs"
            },
            "amountStopped": {
                "value": "234.56",
                "currencyCode": "USD"
            },
            "comments": "Refunded via transactionId XXX on YYY",
            "actionTimestamp": "2021-01-06T10:30:00.000Z"
        },
        {
            "alertId": "C19XF5HIGYBM883ASUL7VFGCN",
            "outcome": "STOPPED",
            "refundStatus": "REFUNDED",
            "refund": {
                "amount": {
                    "value": "234.56",
                    "currencyCode": "USD"
                },
                "type": "POINTS",
                "timestamp": "2021-01-06T10:30:00.000Z",
                "transactionId": "dhdgjhkhjkhj",
                "acquirerReferenceNumber": "gfgsdfs"
            },
            "amountStopped": {
                "value": "234.56",
                "currencyCode": "USD"
            },
            "comments": "Refunded via transactionId XXX on YYY",
            "actionTimestamp": "2021-01-06T10:30:00.000Z"
        },
        {
            "alertId": "C10XF5HIGYBM883ASUL7VFGCN",
            "outcome": "RESOLVED",
            "refundStatus": "REFUNDED",
            "refund": {
                "amount": {
                    "value": "234.56",
                    "currencyCode": "USD"
                },
                "type": "POINTS",
                "timestamp": "2021-01-06T10:30:00.000Z",
                "transactionId": "dhdgjhkhjkhj",
                "acquirerReferenceNumber": "gfgsdfs"
            },
            "amountStopped": {
                "value": "234.56",
                "currencyCode": "USD"
            },
            "comments": "Refunded via transactionId XXX on YYY",
            "actionTimestamp": "2021-01-06T10:30:00.000Z"
        },
        {
            "alertId": "C01XF5HIGYBM883ASUL7VFGCN",
            "outcome": "STOPPED",
            "refundStatus": "REFUNDED",
            "refund": {
                "amount": {
                    "value": "234.56",
                    "currencyCode": "USD"
                },
                "type": "POINTS",
                "timestamp": "2021-01-06T10:30:00.000Z",
                "transactionId": "dhdgjhkhjkhj",
                "acquirerReferenceNumber": "gfgsdfs"
            },
            "amountStopped": {
                "value": "234.56",
                "currencyCode": "USD"
            },
            "comments": "Refunded via transactionId XXX on YYY",
            "actionTimestamp": "2021-01-06T10:30:00.000Z"
        },
        {
            "alertId": "C20XF5HIGYBM883ASUL7VFGCN",
            "outcome": "RESOLVED",
            "refundStatus": "REFUNDED",
            "refund": {
                "amount": {
                    "value": "234.56",
                    "currencyCode": "USD"
                },
                "type": "POINTS",
                "timestamp": "2021-01-06T10:30:00.000Z",
                "transactionId": "dhdgjhkhjkhj",
                "acquirerReferenceNumber": "gfgsdfs"
            },
            "amountStopped": {
                "value": "234.56",
                "currencyCode": "USD"
            },
            "comments": "Refunded via transactionId XXX on YYY",
            "actionTimestamp": "2021-01-06T10:30:00.000Z"
        },
        {
            "alertId": "C15XF5HIGYBM883ASUL7VFGCN",
            "outcome": "RESOLVED",
            "refundStatus": "REFUNDED",
            "refund": {
                "amount": {
                    "value": "234.56",
                    "currencyCode": "USD"
                },
                "type": "POINTS",
                "timestamp": "2021-01-06T10:30:00.000Z",
                "transactionId": "dhdgjhkhjkhj",
                "acquirerReferenceNumber": "gfgsdfs"
            },
            "amountStopped": {
                "value": "234.56",
                "currencyCode": "USD"
            },
            "comments": "Refunded via transactionId XXX on YYY",
            "actionTimestamp": "2021-01-06T10:30:00.000Z"
        },
        {
            "alertId": "C06XF5HIGYBM883ASUL7VFGCN",
            "outcome": "STOPPED",
            "refundStatus": "REFUNDED",
            "refund": {
                "amount": {
                    "value": "234.56",
                    "currencyCode": "USD"
                },
                "type": "POINTS",
                "timestamp": "2021-01-06T10:30:00.000Z",
                "transactionId": "dhdgjhkhjkhj",
                "acquirerReferenceNumber": "gfgsdfs"
            },
            "amountStopped": {
                "value": "234.56",
                "currencyCode": "USD"
            },
            "comments": "Refunded via transactionId XXX on YYY",
            "actionTimestamp": "2021-01-06T10:30:00.000Z"
        }
    ]
}
```

#### Expected response {#expected-response}

```JSON
{
    "outcomeResponses": [
        {
            "alertId": "C17XF5HIGYBM883ASUL7VFGCN",
            "status": "SUCCESS"
        },
        {
            "alertId": "C14XF5HIGYBM883ASUL7VFGCN",
            "status": "SUCCESS"
        },
        {
            "alertId": "C02XF5HIGYBM883ASUL7VFGCN",
            "status": "SUCCESS"
        },
        {
            "alertId": "C07XF5HIGYBM883ASUL7VFGCN",
            "status": "SUCCESS"
        },
        {
            "alertId": "C05XF5HIGYBM883ASUL7VFGCN",
            "status": "SUCCESS"
        },
        {
            "alertId": "C09XF5HIGYBM883ASUL7VFGCN",
            "status": "SUCCESS"
        },
        {
            "alertId": "C08XF5HIGYBM883ASUL7VFGCN",
            "status": "SUCCESS"
        },
        {
            "alertId": "C12XF5HIGYBM883ASUL7VFGCN",
            "status": "SUCCESS"
        },
        {
            "alertId": "C13XF5HIGYBM883ASUL7VFGCN",
            "status": "SUCCESS"
        },
        {
            "alertId": "C16XF5HIGYBM883ASUL7VFGCN",
            "status": "SUCCESS"
        },
        {
            "alertId": "C19XF5HIGYBM883ASUL7VFGCN",
            "status": "SUCCESS"
        },
        {
            "alertId": "C10XF5HIGYBM883ASUL7VFGCN",
            "status": "SUCCESS"
        },
        {
            "alertId": "C01XF5HIGYBM883ASUL7VFGCN",
            "status": "SUCCESS"
        },
        {
            "alertId": "C20XF5HIGYBM883ASUL7VFGCN",
            "status": "SUCCESS"
        },
        {
            "alertId": "C15XF5HIGYBM883ASUL7VFGCN",
            "status": "SUCCESS"
        },
        {
            "alertId": "C06XF5HIGYBM883ASUL7VFGCN",
            "status": "SUCCESS"
        }
    ]
}
```

[Back to top](https://developer.mastercard.com/ethoca-alerts-for-merchants/documentation/testing/index.md#test-data)

### TD2: Request sent with valid refundStatus {#td2-request-sent-with-valid-refundstatus}

In this scenario, a merchant partner sends a valid outcome with the *REFUNDED* value for the `refundStatus` fields. Valid values are *REFUNDED* , *NOT REFUNDED* , and *NOT SETTLED*.

#### Request {#request-1}

```JSON
{
    "outcomes": [
        {
            "alertId": "C06XF5HIGYBM883ASUL7VFGCN",
            "outcome": "PARTIALLY_STOPPED",
            "refundStatus": "REFUNDED",
            "refund": {
                "amount": {
                    "value": "234.56",
                    "currencyCode": "USD"
                },
                "type": "POINTS",
                "timestamp": "2021-01-06T10:30:00.000Z",
                "transactionId": "dhdgjhkhjkhj",
                "acquirerReferenceNumber": "gfgsdfs"
            },
            "amountStopped": {
                "value": "234.56",
                "currencyCode": "USD"
            },
            "comments": "Refunded via transactionId XXX on YYY",
            "actionTimestamp": "2021-01-06T10:30:00.000Z"
        }
    ]
}
```

#### Expected response {#expected-response-1}

```JSON
{
    "outcomeResponses": [
        {
            "alertId": "C06XF5HIGYBM883ASUL7VFGCN",
            "status": "SUCCESS"
        }
    ]
}
```

[Back to top](https://developer.mastercard.com/ethoca-alerts-for-merchants/documentation/testing/index.md#test-data)

### TD3: Request sent with valid refundtype {#td3-request-sent-with-valid-refundtype}

Here, a merchant partner sends a valid outcome with the *REFUND* value for the `refundtype` fields. Valid values are *REFUND* , *POINTS* , *GIFT_CARD* , or *VOUCHER*.

#### Request {#request-2}

```JSON
{
    "outcomes": [
        {
            "alertId": "C08XF5HIGYBM883ASUL7VFGCN",
            "outcome": "STOPPED",
            "refundStatus": "REFUNDED",
            "refund": {
                "amount": {
                    "value": "234.56",
                    "currencyCode": "USD"
                },
                "type": "REFUND",
                "timestamp": "2021-01-06T10:30:00.000Z",
                "transactionId": "dhdgjhkhjkhj",
                "acquirerReferenceNumber": "gfgsdfs"
            },
            "amountStopped": {
                "value": "234.56",
                "currencyCode": "USD"
            },
            "comments": "Refunded via transactionId XXX on YYY",
            "actionTimestamp": "2021-01-06T10:30:00.000Z"
        }
    ]
}
```

#### Expected response {#expected-response-2}

```JSON
{
    "outcomeResponses": [
        {
            "alertId": "C08XF5HIGYBM883ASUL7VFGCN",
            "status": "SUCCESS"
        }
    ]
}
```

[Back to top](https://developer.mastercard.com/ethoca-alerts-for-merchants/documentation/testing/index.md#test-data)

### TD4: Request sent for customer dispute alert {#td4-request-sent-for-customer-dispute-alert}

In this scenario, a merchant partner sends a valid outcome for a customer dispute alert with valid combinations of the fields `outcome` and `refundStatus`.

#### Request {#request-3}

```JSON
{
    "outcomes": [
        {
            "alertId": "C05XF5HIGYBM883ASUL7VFGCN",
            "outcome": "RESOLVED",
            "refundStatus": "NOT_REFUNDED",
            "refund": {
                "amount": {
                    "value": "234.56",
                    "currencyCode": "USD"
                },
                "type": "POINTS",
                "timestamp": "2021-01-06T10:30:00.000Z",
                "transactionId": "dhdgjhkhjkhj",
                "acquirerReferenceNumber": "gfgsdfs"
            },
            "amountStopped": {
                "value": "234.56",
                "currencyCode": "USD"
            },
            "comments": "Refunded via transactionId XXX on YYY",
            "actionTimestamp": "2021-01-06T10:30:00.000Z"
        }
    ]
}
```

#### Expected response {#expected-response-3}

```JSON
{
    "outcomeResponses": [
        {
            "alertId": "C05XF5HIGYBM883ASUL7VFGCN",
            "status": "SUCCESS"
        }
    ]
}
```

[Back to top](https://developer.mastercard.com/ethoca-alerts-for-merchants/documentation/testing/index.md#test-data)

### TD5: Request sent for confirmed fraud alert {#td5-request-sent-for-confirmed-fraud-alert}

For this test case, a merchant partner sends a valid outcome for a confirmed fraud alert with valid combinations of fields `outcome` and `refundStatus`.

#### Request {#request-4}

```JSON
{
    "outcomes": [
        {
            "alertId": "C02XF5HIGYBM883ASUL7VFGCN",
            "outcome": "NOT_FOUND",
            "refundStatus": "NOT_REFUNDED",
            "refund": {
                "amount": {
                    "value": "234.56",
                    "currencyCode": "USD"
                },
                "type": "POINTS",
                "timestamp": "2021-01-06T10:30:00.000Z",
                "transactionId": "dhdgjhkhjkhj",
                "acquirerReferenceNumber": "gfgsdfs"
            },
            "amountStopped": {
                "value": "234.56",
                "currencyCode": "USD"
            },
            "comments": "Refunded via transactionId XXX on YYY",
            "actionTimestamp": "2021-01-06T10:30:00.000Z"
        }
    ]
}
```

#### Expected response {#expected-response-4}

```JSON
{
    "outcomeResponses": [
        {
            "alertId": "C02XF5HIGYBM883ASUL7VFGCN",
            "status": "SUCCESS"
        }
    ]
}
```

[Back to top](https://developer.mastercard.com/ethoca-alerts-for-merchants/documentation/testing/index.md#test-data)

### TD6: Request includes only mandatory fields {#td6-request-includes-only-mandatory-fields}

Here, a merchant partner sends a batch of outcomes to the **Alerts Outcome** service with a request payload that contains only the mandatory fields with valid values.

#### Request {#request-5}

```JSON
{
    "outcomes": [
        {
            "alertId": "C12XF5HIGYBM883ASUL7VFGCN",
            "outcome": "STOPPED",
            "refundStatus": "REFUNDED",
            "refund": {
                "amount": {
                    "value": "234.56",
                    "currencyCode": "USD"
                },
                "type": null,
                "timestamp": "2021-01-06T10:30:00.000Z",
                "transactionId": null,
                "acquirerReferenceNumber": null
            },
            "amountStopped": {
                "value": "234.56",
                "currencyCode": "USD"
            },
            "comments": null,
            "actionTimestamp": "2021-01-06T10:30:00.000Z"
        }
    ]
}
```

#### Expected response {#expected-response-5}

```JSON
{
    "outcomeResponses": [
        {
            "alertId": "C12XF5HIGYBM883ASUL7VFGCN",
            "status": "SUCCESS"
        }
    ]
}
```

[Back to top](https://developer.mastercard.com/ethoca-alerts-for-merchants/documentation/testing/index.md#test-data)

### TD7: Request contains partially valid values {#td7-request-contains-partially-valid-values}

In this test case, a merchant partner sends a batch of outcomes to the **Alerts Outcome** service with a request payload that contains partially valid values.

#### Request {#request-6}

```JSON
{
    "outcomes": [
        {
            "alertId": "C03XF5HIGYBM883ASUL7VFGCN",
            "outcome": null,
            "refundStatus": "REFUNDED",
            "refund": {
                "amount": {
                    "value": "234.56",
                    "currencyCode": "USD"
                },
                "type": "POINTS",
                "timestamp": "2021-01-06T10:30:00.000Z",
                "transactionId": "dhdgjhkhjkhj",
                "acquirerReferenceNumber": "gfgsdfs"
            },
            "amountStopped": {
                "value": "234.56",
                "currencyCode": "USD"
            },
            "comments": "Refunded via transactionId XXX on YYY",
            "actionTimestamp": "2021-01-06T10:30:00.000Z"
        },
        {
            "alertId": "C01XF5HIGYBM883ASUL7VFGCN",
            "outcome": "STOPPED",
            "refundStatus": "REFUNDED",
            "refund": {
                "amount": {
                    "value": "234.56",
                    "currencyCode": "USD"
                },
                "type": "POINTS",
                "timestamp": "2021-01-06T10:30:00.000Z",
                "transactionId": "dhdgjhkhjkhj",
                "acquirerReferenceNumber": "gfgsdfs"
            },
            "amountStopped": {
                "value": "234.56",
                "currencyCode": "USD"
            },
            "comments": "Refunded via transactionId XXX on YYY",
            "actionTimestamp": "2021-01-06T10:30:00.000Z"
        }
    ]
}
```

#### Expected response {#expected-response-6}

```JSON
{
    "outcomeResponses": [
        {
            "alertId": "C03XF5HIGYBM883ASUL7VFGCN",
            "status": "FAILED",
            "errorList": [
                {
                    "Source": "alerts-outcome",
                    "ReasonCode": "REQUEST_VALIDATION_FAILURE",
                    "Description": "outcome is mandatory",
                    "Recoverable": true,
                    "Details": "Invalid outcome value 'null' - outcome is mandatory"
                }
            ]
        },
        {
            "alertId": "C01XF5HIGYBM883ASUL7VFGCN",
            "status": "SUCCESS"
        }
    ]
}
```

[Back to top](https://developer.mastercard.com/ethoca-alerts-for-merchants/documentation/testing/index.md#test-data)

### TD8: Request contains duplicate values in two different requests {#td8-request-contains-duplicate-values-in-two-different-requests}

For this scenario, a merchant partner sends a batch of outcomes to the **Alerts Outcome** service with a request payload that includes duplicate values in two different requests.

#### Request 1 {#request-1-1}

```JSON
{
    "outcomes": [
        {
            "alertId": "C01XF5HIGYBM883ASUL7VFGCN",
            "outcome": "PARTIALLY_STOPPED",
            "refundStatus": "REFUNDED",
            "refund": {
                "amount": {
                    "value": "234.56",
                    "currencyCode": "USD"
                },
                "type": "POINTS",
                "timestamp": "2021-01-06T10:30:00.000Z",
                "transactionId": "dhdgjhkhjkhj",
                "acquirerReferenceNumber": "gfgsdfs"
            },
            "amountStopped": {
                "value": "234.56",
                "currencyCode": "USD"
            },
            "comments": "Refunded via transactionId XXX on YYY",
            "actionTimestamp": "2021-01-06T10:30:00.000Z"
        },
        {
            "alertId": "C03XF5HIGYBM883ASUL7VFGCN",
            "outcome": "PARTIALLY_STOPPED",
            "refundStatus": "REFUNDED",
            "refund": {
                "amount": {
                    "value": "234.56",
                    "currencyCode": "USD"
                },
                "type": "POINTS",
                "timestamp": "2021-01-06T10:30:00.000Z",
                "transactionId": "dhdgjhkhjkhj",
                "acquirerReferenceNumber": "gfgsdfs"
            },
            "amountStopped": {
                "value": "234.56",
                "currencyCode": "USD"
            },
            "comments": "Refunded via transactionId XXX on YYY",
            "actionTimestamp": "2021-01-06T10:30:00.000Z"
        }
    ]
}
```

#### Request 2 {#request-2-1}

```JSON
{
    "outcomes": [
        {
            "alertId": "C01XF5HIGYBM883ASUL7VFGCN",
            "outcome": "STOPPED",
            "refundStatus": "REFUNDED",
            "refund": {
                "amount": {
                    "value": "234.56",
                    "currencyCode": "USD"
                },
                "type": "POINTS",
                "timestamp": "2021-01-06T10:30:00.000Z",
                "transactionId": "dhdgjhkhjkhj",
                "acquirerReferenceNumber": "gfgsdfs"
            },
            "amountStopped": {
                "value": "234.56",
                "currencyCode": "USD"
            },
            "comments": "Refunded via transactionId XXX on YYY",
            "actionTimestamp": "2021-01-06T10:30:00.000Z"
        },
        {
            "alertId": "C03XF5HIGYBM883ASUL7VFGCN",
            "outcome": "STOPPED",
            "refundStatus": "REFUNDED",
            "refund": {
                "amount": {
                    "value": "234.56",
                    "currencyCode": "USD"
                },
                "type": "POINTS",
                "timestamp": "2021-01-06T10:30:00.000Z",
                "transactionId": "dhdgjhkhjkhj",
                "acquirerReferenceNumber": "gfgsdfs"
            },
            "amountStopped": {
                "value": "234.56",
                "currencyCode": "USD"
            },
            "comments": "Refunded via transactionId XXX on YYY",
            "actionTimestamp": "2021-01-06T10:30:00.000Z"
        }
    ]
}
```

#### Expected response {#expected-response-7}

```JSON
{
    "outcomeResponses": [
        {
            "alertId": "C01XF5HIGYBM883ASUL7VFGCN",
            "status": "SUCCESS"
        },
        {
            "alertId": "C03XF5HIGYBM883ASUL7VFGCN",
            "status": "SUCCESS"
        }
    ]
}
```

[Back to top](https://developer.mastercard.com/ethoca-alerts-for-merchants/documentation/testing/index.md#test-data)

## Next Steps {#next-steps}

* [API Reference](https://developer.mastercard.com/ethoca-alerts-for-merchants/documentation/api-reference/index.md#apis) provides details about all of the fields and values in the Alerts for Merchants API.
* See [Code and Formats](https://developer.mastercard.com/ethoca-alerts-for-merchants/documentation/code-and-formats/index.md) for detailed information about error response handling.
