Skip to content
Navigation

Événement transactions.recap

POST
Webhook
transactions.recap

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
    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
    string
    required

    Id of the event (body id), the key of deduplication.

    pattern: ^evt_[0-9a-f]{32}$
  • Webhook-Event-Type
    transactions.recap
    required
  • Idempotency-Key
    string
    required

    The event id, as Webhook-Id.

    pattern: ^evt_[0-9a-f]{32}$
  • Webhook-Token
    optional
    string

    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 JSON required

  • id
    string
    required
    pattern: ^evt_[0-9a-f]{32}$
  • type
    transactions.recap
    required
  • apiVersion
    2026-10-22
    required
  • createdAt
    string
    required
    format: date-time
  • testMode
    boolean
    required
  • data
    object
    required
    • object
      object
      required
      • recap
        object
        required
        • period
          hour
          or
          day
          required
        • from
          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))$
        • to
          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))$
        • siteRef
          string | null
          required
        • page
          integer
          required
          maximum: 9007199254740991 · minimum: -9007199254740991
        • pages
          integer
          required
          maximum: 9007199254740991 · minimum: -9007199254740991
        • complete
          boolean
          required
        • nextCursor
          string | null
          required
      • payments
        array of
        object
        required
        • paymentId
          string
          required
        • siteRef
          string
          required
        • orderRef
          string
          required
        • status
          processing
          or
          requires_action
          or
          succeeded
          or
          failed
          or
          voided
          required
        • amount
          object
          required
          • amount
            integer
            required
            maximum: 99999999 · minimum: 0
          • currency
            EUR
            required
        • amountCaptured
          object
          required
          • amount
            integer
            required
            maximum: 99999999 · minimum: 0
          • currency
            EUR
            required
        • amountRefunded
          object
          required
          • amount
            integer
            required
            maximum: 99999999 · minimum: 0
          • currency
            EUR
            required
        • testMode
          boolean
          required
        • version
          integer
          required
          maximum: 9007199254740991 · minimum: -9007199254740991
        • 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))$
        • updatedAt
          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))$

Example request

{
  "id": "string",
  "type": "transactions.recap",
  "apiVersion": "2026-10-22",
  "createdAt": "2019-08-24T14:15:22Z",
  "testMode": true,
  "data": {
    "object": {
      "recap": {
        "period": "hour",
        "from": "2019-08-24T14:15:22Z",
        "to": "2019-08-24T14:15:22Z",
        "siteRef": "string",
        "page": -9007199254740991,
        "pages": -9007199254740991,
        "complete": true,
        "nextCursor": "string"
      },
      "payments": [
        {
          "paymentId": "string",
          "siteRef": "string",
          "orderRef": "string",
          "status": "processing",
          "amount": {
            "amount": 99999999,
            "currency": "EUR"
          },
          "amountCaptured": {
            "amount": 99999999,
            "currency": "EUR"
          },
          "amountRefunded": {
            "amount": 99999999,
            "currency": "EUR"
          },
          "testMode": true,
          "version": -9007199254740991,
          "createdAt": "2019-08-24T14:15:22Z",
          "updatedAt": "2019-08-24T14:15:22Z"
        }
      ]
    }
  }
}

Returns

200

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

Type to search…

↑↓ navigate↵ selectEsc close