---
title: "Événement card_import.canceled"
---

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

# Événement card_import.canceled

Path: API de l'orchestrateur de paiement

`POST card_import.canceled`

_Webhook._

Signed with the secret of the endpoint (whsec_…, the current or, for 24 h after a rotation, the previous version). The receiver checks the signature, deduplicates by Webhook-Id, stores the event, answers 2xx within 10 s (5 s for a destination of the merchant), then re-reads the resource by GET before any effect; data.object.version orders the states of a payment.

## Header parameters

- `Webhook-Signature` (`card_import.canceled.header.Webhook-Signature`; string, required) — CMS-HMAC-SHA256 keyId=<whe_id>:<secret version>,ts=<unix>,nonce=<uuid>,sig=<base64(HMAC-SHA256(secret, POST\nPATH\nts\nnonce\nsha256hex(body)))>, PATH being the path and query of the endpoint URL; each attempt is signed again.
  - pattern: `^CMS-HMAC-SHA256 keyId=whe_[0-9a-f]{32}:[1-9][0-9]{0,8},ts=[1-9][0-9]{0,11},nonce=[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12},sig=[A-Za-z0-9+/]{43}=$`
- `Webhook-Id` (`card_import.canceled.header.Webhook-Id`; string, required) — Id of the event (body id), the key of deduplication.
  - pattern: `^evt_[0-9a-f]{32}$`
- `Webhook-Event-Type` (`card_import.canceled.header.Webhook-Event-Type`; string, required)
  - one of `"card_import.canceled"`
- `Idempotency-Key` (`card_import.canceled.header.Idempotency-Key`; string, required) — The event id, as Webhook-Id.
  - pattern: `^evt_[0-9a-f]{32}$`
- `Webhook-Token` (`card_import.canceled.header.Webhook-Token`; string, optional) — Destinations of the merchant only: their header token, as is, besides the signature (docs/marchand-sans-cms.md); compared in constant time by a receiver that cannot check a signature.
  - pattern: `^whtok_[A-Za-z0-9_-]{43}$`

## Request body

_Required._

- `id` (`card_import.canceled.id`; string, required)
  - pattern: `^evt_[0-9a-f]{32}$`
- `type` (`card_import.canceled.type`; string, required)
  - one of `"card_import.canceled"`
- `apiVersion` (`card_import.canceled.apiVersion`; string, required)
  - one of `"2026-10-22"`
- `createdAt` (`card_import.canceled.createdAt`; string, required)
  - format: `date-time`
- `testMode` (`card_import.canceled.testMode`; boolean, required)
- `data` (`card_import.canceled.data`; object, required)
  - `object` (`card_import.canceled.data.object`; object, required) — Counts only; the result of each line is read with the API.
    - `cardImport` (`card_import.canceled.data.object.cardImport`; object, required)
      - `id` (`card_import.canceled.data.object.cardImport.id`; string, required)
      - `status` (`card_import.canceled.data.object.cardImport.status`; string, required)
        - one of `"prepared"`, `"approved"`, `"running"`, `"completed"`, `"failed"`, `"canceled"`
      - `siteRef` (`card_import.canceled.data.object.cardImport.siteRef`; string, required)
      - `testMode` (`card_import.canceled.data.object.cardImport.testMode`; boolean, required)
      - `provider` (`card_import.canceled.data.object.cardImport.provider`; string, required)
      - `lines` (`card_import.canceled.data.object.cardImport.lines`; object, required)
        - `total` (`card_import.canceled.data.object.cardImport.lines.total`; integer, required)
          - maximum: `9007199254740991` · minimum: `-9007199254740991`
        - `imported` (`card_import.canceled.data.object.cardImport.lines.imported`; integer, required)
          - maximum: `9007199254740991` · minimum: `-9007199254740991`
        - `duplicate` (`card_import.canceled.data.object.cardImport.lines.duplicate`; integer, required)
          - maximum: `9007199254740991` · minimum: `-9007199254740991`
        - `rejected` (`card_import.canceled.data.object.cardImport.lines.rejected`; integer, required)
          - maximum: `9007199254740991` · minimum: `-9007199254740991`
      - `failureCode` (`card_import.canceled.data.object.cardImport.failureCode`; string | null, required)
      - `createdAt` (`card_import.canceled.data.object.cardImport.createdAt`; 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))$`
      - `startedAt` (`card_import.canceled.data.object.cardImport.startedAt`; any of, required)
        - any of the following: `string`, `null`
      - `finishedAt` (`card_import.canceled.data.object.cardImport.finishedAt`; any of, required)
        - any of the following: `string`, `null`

## Example request

```json
{
  "id": "string",
  "type": "card_import.canceled",
  "apiVersion": "2026-10-22",
  "createdAt": "2019-08-24T14:15:22Z",
  "testMode": true,
  "data": {
    "object": {
      "cardImport": {
        "id": "string",
        "status": "prepared",
        "siteRef": "string",
        "testMode": true,
        "provider": "string",
        "lines": {
          "total": -9007199254740991,
          "imported": -9007199254740991,
          "duplicate": -9007199254740991,
          "rejected": -9007199254740991
        },
        "failureCode": "string",
        "createdAt": "2019-08-24T14:15:22Z",
        "startedAt": "2019-08-24T14:15:22Z",
        "finishedAt": "2019-08-24T14:15:22Z"
      }
    }
  }
}
```

## Responses

### 200

Received (any 2xx). Any other answer, a timeout or a redirection is retried.


Source: https://docs.recette.maeck.xyz/api/webhooks/card_import.canceled/index.md
