---
title: "Change the events of a destination, pause or resume it, or replace its address or identifiers"
---

> 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.

# Change the events of a destination, pause or resume it, or replace its address or identifiers

Path: API de l'orchestrateur de paiement › notifications

`PATCH /v1/notification-destinations/{destinationId}`

Events that happened before the change are never told afterwards. The address of a Slack channel and the identifiers of an account are sealed at once and never returned, shown nor logged; they are written by a person only: actor of type engine_user, otherwise 403 HUMAN_ACTOR_REQUIRED. The key needs the right to read the events of the destination as they are once changed (payments:read, alerts:read), also to pause, resume or replace its address. A test key only changes a destination added by a test key (403 TEST_KEY_LIVE_REQUEST).

## Authentication

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

## Path parameters

- `destinationId` (`patch/v1/notification-destinations/destinationId.path.destinationId`; string, required)
  - pattern: `^ntd_[0-9a-f]{32}$`

## Header parameters

- `Idempotency-Key` (`patch/v1/notification-destinations/destinationId.header.Idempotency-Key`; string, required) — Mandatory on this write of a secret: a retry after a lost answer is replayed, never written twice. 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` (`patch/v1/notification-destinations/destinationId.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` (`patch/v1/notification-destinations/destinationId.actor`; object, required)
  - `type` (`patch/v1/notification-destinations/destinationId.actor.type`; string, required)
    - one of `"engine_user"`, `"mcp_agent"`, `"system"`
  - `id` (`patch/v1/notification-destinations/destinationId.actor.id`; string, required)
    - pattern: `^[A-Za-z0-9_.:@-]{1,128}$`
  - `label` (`patch/v1/notification-destinations/destinationId.actor.label`; string, optional)
    - maxLength: `200` · minLength: `1` · pattern: `^[^\p{Cc}]*$`
- `eventTypes` (`patch/v1/notification-destinations/destinationId.eventTypes`; array of string, optional)
  - one of `"payment.succeeded"`, `"payment.failed"`, `"payment.refunded"`, `"payment.review_required"`, `"chargeback_alert.received"`
- `status` (`patch/v1/notification-destinations/destinationId.status`; string, optional)
  - one of `"active"`, `"paused"`
- `includeTestEvents` (`patch/v1/notification-destinations/destinationId.includeTestEvents`; boolean, optional)
- `address` (`patch/v1/notification-destinations/destinationId.address`; string, optional)
  - maxLength: `500` · minLength: `1`
- `credentials` (`patch/v1/notification-destinations/destinationId.credentials`; map of string, optional)

## Example request

```json
{
  "eventTypes": [
    "payment.succeeded"
  ],
  "status": "active",
  "includeTestEvents": true,
  "address": "string",
  "credentials": {
    "property1": "string",
    "property2": "string"
  },
  "actor": {
    "type": "engine_user",
    "id": "string",
    "label": "string"
  }
}
```

## Code samples

### cURL

```bash
curl --request PATCH \
  --url '<base-url>/v1/notification-destinations/<destinationId>' \
  --header 'Authorization: <Authorization>' \
  --header 'Content-Type: application/json' \
  --header 'Idempotency-Key: string' \
  --data '
{
  "eventTypes": [
    "payment.succeeded"
  ],
  "status": "active",
  "includeTestEvents": true,
  "address": "string",
  "credentials": {
    "property1": "string",
    "property2": "string"
  },
  "actor": {
    "type": "engine_user",
    "id": "string",
    "label": "string"
  }
}
'
```

### TypeScript

```typescript
const url = '<base-url>/v1/notification-destinations/<destinationId>';
const options = {
  method: 'PATCH',
  headers: {
    'Content-Type': 'application/json',
    'Idempotency-Key': 'string',
    Authorization: '<Authorization>'
  },
  body: JSON.stringify({
    eventTypes: ['payment.succeeded'],
    status: 'active',
    includeTestEvents: true,
    address: 'string',
    credentials: {property1: 'string', property2: 'string'},
    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/notification-destinations/<destinationId>"

payload = {
    "eventTypes": ["payment.succeeded"],
    "status": "active",
    "includeTestEvents": True,
    "address": "string",
    "credentials": {
        "property1": "string",
        "property2": "string"
    },
    "actor": {
        "type": "engine_user",
        "id": "string",
        "label": "string"
    }
}
headers = {
    "Content-Type": "application/json",
    "Idempotency-Key": "string",
    "Authorization": "<Authorization>"
}

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

print(response.text)
```

## Responses

### 200

Default Response

#### Example

```json
{
  "destinationId": "string",
  "app": "slack",
  "siteRef": "string",
  "eventTypes": [
    "payment.succeeded"
  ],
  "status": "active",
  "includeTestEvents": true,
  "testOnly": true,
  "connectedAt": "2019-08-24T14:15:22Z"
}
```

- `destinationId` (`patch/v1/notification-destinations/destinationId.response.200.destinationId`; string, required)
- `app` (`patch/v1/notification-destinations/destinationId.response.200.app`; string, required)
  - one of `"slack"`, `"asana"`, `"jira"`, `"notion"`, `"trello"`
- `siteRef` (`patch/v1/notification-destinations/destinationId.response.200.siteRef`; string, required)
- `eventTypes` (`patch/v1/notification-destinations/destinationId.response.200.eventTypes`; array of string, required)
  - one of `"payment.succeeded"`, `"payment.failed"`, `"payment.refunded"`, `"payment.review_required"`, `"chargeback_alert.received"`
- `status` (`patch/v1/notification-destinations/destinationId.response.200.status`; string, required)
  - one of `"active"`, `"paused"`
- `includeTestEvents` (`patch/v1/notification-destinations/destinationId.response.200.includeTestEvents`; boolean, required)
- `testOnly` (`patch/v1/notification-destinations/destinationId.response.200.testOnly`; boolean, required)
- `connectedAt` (`patch/v1/notification-destinations/destinationId.response.200.connectedAt`; 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))$`

### 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` (`patch/v1/notification-destinations/destinationId.response.default.type`; string, required)
- `title` (`patch/v1/notification-destinations/destinationId.response.default.title`; string, required)
- `status` (`patch/v1/notification-destinations/destinationId.response.default.status`; integer, required)
  - maximum: `599` · minimum: `400`
- `code` (`patch/v1/notification-destinations/destinationId.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` (`patch/v1/notification-destinations/destinationId.response.default.requestId`; string, required)
- `retryable` (`patch/v1/notification-destinations/destinationId.response.default.retryable`; boolean, required)
- `detail` (`patch/v1/notification-destinations/destinationId.response.default.detail`; string, optional)
- `errors` (`patch/v1/notification-destinations/destinationId.response.default.errors`; array of object, optional)
  - `path` (`patch/v1/notification-destinations/destinationId.response.default.errors.path`; string, required)
  - `code` (`patch/v1/notification-destinations/destinationId.response.default.errors.code`; string, required)
  - `message` (`patch/v1/notification-destinations/destinationId.response.default.errors.message`; string, required)


Source: https://docs.recette.maeck.xyz/api/notification-destinations/update/index.md
