---
title: "Decline a chargeback alert that waits for an answer"
---

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

# Decline a chargeback alert that waits for an answer

Path: API de l'orchestrateur de paiement › disputes

`POST /v1/chargeback-alerts/{alertId}/decline`

Told to the network; a dispute may follow. Asked again: the same alert. An alert answered otherwise, or whose payment is refunded or being refunded: 409 CONFLICT.

## Authentication

- `cmsHmac`, apiKey, in header, header `Authorization`

## Path parameters

- `alertId` (`post/v1/chargeback-alerts/alertId/decline.path.alertId`; string, required)
  - pattern: `^alr_[0-9a-f]{32}$`

## Header parameters

- `Idempotency-Key` (`post/v1/chargeback-alerts/alertId/decline.header.Idempotency-Key`; string, required) — Mandatory on every POST. Same key and same request: the stored answer is replayed (Idempotent-Replayed: true); another request: IDEMPOTENCY_KEY_REUSED; still running: IDEMPOTENCY_IN_PROGRESS (409, Retry-After).
  - pattern: `^(?!alert:|external:)[A-Za-z0-9_.:-]{8,255}$`
- `Api-Version` (`post/v1/chargeback-alerts/alertId/decline.header.Api-Version`; string, optional) — Version of the API: absent, the current version answers; an unknown value is refused (API_VERSION_UNSUPPORTED, 400). Every other answer gives the version that produced it.
  - one of `"2026-11-18"` · default: `"2026-11-18"`

## Request body

_Required._

- `actor` (`post/v1/chargeback-alerts/alertId/decline.actor`; object, required)
  - `type` (`post/v1/chargeback-alerts/alertId/decline.actor.type`; string, required)
    - one of `"engine_user"`, `"mcp_agent"`, `"system"`
  - `id` (`post/v1/chargeback-alerts/alertId/decline.actor.id`; string, required)
    - pattern: `^[A-Za-z0-9_.:@-]{1,128}$`
  - `label` (`post/v1/chargeback-alerts/alertId/decline.actor.label`; string, optional)
    - maxLength: `200` · minLength: `1` · pattern: `^[^\p{Cc}]*$`

## Example request

```json
{
  "actor": {
    "type": "engine_user",
    "id": "string",
    "label": "string"
  }
}
```

## Code samples

### cURL

```bash
curl --request POST \
  --url '<base-url>/v1/chargeback-alerts/<alertId>/decline' \
  --header 'Authorization: <Authorization>' \
  --header 'Content-Type: application/json' \
  --header 'Idempotency-Key: string' \
  --data '
{
  "actor": {
    "type": "engine_user",
    "id": "string",
    "label": "string"
  }
}
'
```

### TypeScript

```typescript
const url = '<base-url>/v1/chargeback-alerts/<alertId>/decline';
const options = {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json',
    'Idempotency-Key': 'string',
    Authorization: '<Authorization>'
  },
  body: JSON.stringify({actor: {type: 'engine_user', id: 'string', label: 'string'}})
};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "<base-url>/v1/chargeback-alerts/<alertId>/decline"

payload = { "actor": {
        "type": "engine_user",
        "id": "string",
        "label": "string"
    } }
headers = {
    "Content-Type": "application/json",
    "Idempotency-Key": "string",
    "Authorization": "<Authorization>"
}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
```

## Responses

### 200

Default Response

#### Example

```json
{
  "alertId": "string",
  "provider": "sandbox",
  "network": "visa_rdr",
  "alertType": "dispute",
  "status": "received",
  "testMode": true,
  "amount": {
    "amount": 1,
    "currency": "string"
  },
  "cardBrand": "string",
  "cardLast4": "string",
  "descriptor": "string",
  "transactionAt": "2019-08-24T14:15:22Z",
  "receivedAt": "2019-08-24T14:15:22Z",
  "respondBy": "2019-08-24T14:15:22Z",
  "decidedVia": "rule",
  "decidedAt": "2019-08-24T14:15:22Z",
  "outcome": "refunded",
  "closedAt": "2019-08-24T14:15:22Z",
  "paymentId": "string",
  "orderRef": "string",
  "siteRef": "string",
  "refundId": "string",
  "version": -9007199254740991
}
```

- `alertId` (`post/v1/chargeback-alerts/alertId/decline.response.200.alertId`; string, required)
- `provider` (`post/v1/chargeback-alerts/alertId/decline.response.200.provider`; string, required)
  - one of `"sandbox"`, `"verifi"`, `"ethoca"`
- `network` (`post/v1/chargeback-alerts/alertId/decline.response.200.network`; string, required)
  - one of `"visa_rdr"`, `"visa_cdrn"`, `"ethoca"`
- `alertType` (`post/v1/chargeback-alerts/alertId/decline.response.200.alertType`; string, required)
  - one of `"dispute"`, `"fraud"`
- `status` (`post/v1/chargeback-alerts/alertId/decline.response.200.status`; string, required)
  - one of `"received"`, `"pending_decision"`, `"refunding"`, `"refunded"`, `"declined"`, `"unmatched"`, `"network_resolved"`, `"refund_failed"`
- `testMode` (`post/v1/chargeback-alerts/alertId/decline.response.200.testMode`; boolean, required)
- `amount` (`post/v1/chargeback-alerts/alertId/decline.response.200.amount`; object, required)
  - `amount` (`post/v1/chargeback-alerts/alertId/decline.response.200.amount.amount`; integer, required)
    - maximum: `9007199254740991` · minimum: `1`
  - `currency` (`post/v1/chargeback-alerts/alertId/decline.response.200.amount.currency`; string, required)
    - pattern: `^[A-Z]{3}$`
- `cardBrand` (`post/v1/chargeback-alerts/alertId/decline.response.200.cardBrand`; string, required)
- `cardLast4` (`post/v1/chargeback-alerts/alertId/decline.response.200.cardLast4`; string | null, required)
- `descriptor` (`post/v1/chargeback-alerts/alertId/decline.response.200.descriptor`; string, required)
- `transactionAt` (`post/v1/chargeback-alerts/alertId/decline.response.200.transactionAt`; string, required)
  - format: `date-time` · pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$`
- `receivedAt` (`post/v1/chargeback-alerts/alertId/decline.response.200.receivedAt`; string, required)
  - format: `date-time` · pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$`
- `respondBy` (`post/v1/chargeback-alerts/alertId/decline.response.200.respondBy`; any of, required)
  - any of the following: `string`, `null`
- `decidedVia` (`post/v1/chargeback-alerts/alertId/decline.response.200.decidedVia`; any of, required)
  - any of the following:
    - `string`: one of `"rule"`, `"merchant"`, `"network"`
    - `null`
- `decidedAt` (`post/v1/chargeback-alerts/alertId/decline.response.200.decidedAt`; any of, required)
  - any of the following: `string`, `null`
- `outcome` (`post/v1/chargeback-alerts/alertId/decline.response.200.outcome`; any of, required)
  - any of the following:
    - `string`: one of `"refunded"`, `"previously_refunded"`, `"declined"`, `"not_found"`
    - `null`
- `closedAt` (`post/v1/chargeback-alerts/alertId/decline.response.200.closedAt`; any of, required)
  - any of the following: `string`, `null`
- `paymentId` (`post/v1/chargeback-alerts/alertId/decline.response.200.paymentId`; string | null, required)
- `orderRef` (`post/v1/chargeback-alerts/alertId/decline.response.200.orderRef`; string | null, required)
- `siteRef` (`post/v1/chargeback-alerts/alertId/decline.response.200.siteRef`; string | null, required)
- `refundId` (`post/v1/chargeback-alerts/alertId/decline.response.200.refundId`; string | null, required)
- `version` (`post/v1/chargeback-alerts/alertId/decline.response.200.version`; integer, required)
  - maximum: `9007199254740991` · minimum: `-9007199254740991`

### default

Problem: the stable code is in code, see x-error-catalog.

#### Example

```json
{
  "type": "string",
  "title": "string",
  "status": 400,
  "code": "AMOUNT_LIMIT_EXCEEDED",
  "detail": "string",
  "requestId": "string",
  "retryable": true,
  "errors": [
    {
      "path": "string",
      "code": "string",
      "message": "string"
    }
  ]
}
```

- `type` (`post/v1/chargeback-alerts/alertId/decline.response.default.type`; string, required)
- `title` (`post/v1/chargeback-alerts/alertId/decline.response.default.title`; string, required)
- `status` (`post/v1/chargeback-alerts/alertId/decline.response.default.status`; integer, required)
  - maximum: `599` · minimum: `400`
- `code` (`post/v1/chargeback-alerts/alertId/decline.response.default.code`; string, required)
  - one of `"AMOUNT_LIMIT_EXCEEDED"`, `"AMOUNT_MISMATCH"`, `"API_VERSION_UNSUPPORTED"`, `"AUTH_IP_NOT_ALLOWED"`, `"AUTH_KEY_INVALID"`, `"AUTH_MALFORMED"`, `"AUTH_NONCE_REPLAYED"`, `"AUTH_SCOPE_FORBIDDEN"`, `"AUTH_SIGNATURE_INVALID"`, `"AUTH_TIMESTAMP_OUT_OF_WINDOW"`, `"BAD_REQUEST"`, `"CAMPAIGN_MISMATCH"`, `"CARD_BRAND_UNSUPPORTED"`, `"CARD_CVC_INVALID"`, `"CARD_EXPIRED"`, `"CARD_EXPIRY_INVALID"`, `"CARD_HOLDER_INVALID"`, `"CARD_NOT_ACCEPTED"`, `"CARD_NUMBER_INVALID"`, `"CARD_REF_INVALID"`, `"CARD_REF_USED"`, `"CARD_TOKEN_REVOKED"`, `"CARD_VERIFICATION_NOT_AVAILABLE"`, `"CONFLICT"`, `"CONNECTOR_ACCOUNT_MISMATCH"`, `"CONNECTOR_AUTH_FAILED"`, `"CONNECTOR_CAPABILITY_MISSING"`, `"CONNECTOR_DISABLED"`, `"CONNECTOR_ERROR"`, `"CONNECTOR_UNAVAILABLE"`, `"CUSTOMER_DATA_REQUIRED"`, `"IDEMPOTENCY_IN_PROGRESS"`, `"IDEMPOTENCY_KEY_INVALID"`, `"IDEMPOTENCY_KEY_MISSING"`, `"IDEMPOTENCY_KEY_REUSED"`, `"INTERNAL_ERROR"`, `"LIVE_MODE_DISABLED"`, `"METHOD_NOT_ALLOWED"`, `"MID_PAUSED"`, `"MID_TRANSFER_NOT_POSSIBLE"`, `"NOT_FOUND"`, `"ORIGIN_NOT_ALLOWED"`, `"PAGE_CARD_ENTRY_DISABLED"`, `"PAYLOAD_TOO_LARGE"`, `"PAYMENT_INVALID_STATE"`, `"PAYMENT_IN_PROGRESS"`, `"PAYMENT_METHOD_NOT_ALLOWED"`, `"POST_PURCHASE_LIMIT_REACHED"`, `"POST_PURCHASE_STEP_DONE"`, `"POST_PURCHASE_TOKEN_INVALID"`, `"POST_PURCHASE_WINDOW_CLOSED"`, `"PROCESSOR_NOT_ENABLED"`, `"RATE_LIMITED"`, `"REFUND_EXCEEDS_CAPTURED"`, `"REFUND_NOT_SUPPORTED"`, `"RENEWAL_ALREADY_PAID"`, `"RENEWAL_RETRY_NOT_ALLOWED"`, `"RENEWAL_RETRY_TOO_EARLY"`, `"REQUEST_ORIGIN_FORBIDDEN"`, `"RISK_VELOCITY_LIMIT"`, `"SANDBOX_ONLY"`, `"SERVER_CARD_ENTRY_DISABLED"`, `"SERVICE_UNAVAILABLE"`, `"SESSION_EXPIRED"`, `"SESSION_INVALID_STATE"`, `"SESSION_LIMIT_REACHED"`, `"SESSION_SECRET_INVALID"`, `"SITE_DISABLED"`, `"SITE_UNKNOWN"`, `"TEST_CARD_REQUIRED"`, `"TEST_KEY_LIVE_REQUEST"`, `"UNSUPPORTED_CURRENCY"`, `"UNSUPPORTED_MEDIA_TYPE"`, `"VALIDATION_FAILED"`, `"VOID_NOT_SUPPORTED"`, `"WALLET_AMOUNT_MISMATCH"`, `"WALLET_MERCHANT_VALIDATION_FAILED"`, `"WALLET_NOT_AVAILABLE"`, `"WALLET_TOKEN_INVALID"`, `"WEBHOOK_URL_NOT_ALLOWED"`, `"ZERO_AMOUNT_REQUIRES_AUTHORIZE_ONLY"`
- `requestId` (`post/v1/chargeback-alerts/alertId/decline.response.default.requestId`; string, required)
- `retryable` (`post/v1/chargeback-alerts/alertId/decline.response.default.retryable`; boolean, required)
- `detail` (`post/v1/chargeback-alerts/alertId/decline.response.default.detail`; string, optional)
- `errors` (`post/v1/chargeback-alerts/alertId/decline.response.default.errors`; array of object, optional)
  - `path` (`post/v1/chargeback-alerts/alertId/decline.response.default.errors.path`; string, required)
  - `code` (`post/v1/chargeback-alerts/alertId/decline.response.default.errors.code`; string, required)
  - `message` (`post/v1/chargeback-alerts/alertId/decline.response.default.errors.message`; string, required)


Source: https://docs.recette.maeck.xyz/api/post-v1-chargeback-alerts-alert-id-decline/index.md
