Skip to content
Navigation

Événement payment.voided

POST
Webhook
payment.voided

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
    payment.voided
    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
    payment.voided
    required
  • apiVersion
    2026-10-22
    required
  • createdAt
    string
    required
    format: date-time
  • testMode
    boolean
    required
  • data
    object
    required
    • object
      object
      required
      • paymentId
        string
        required
      • status
        processing
        or
        requires_action
        or
        succeeded
        or
        failed
        or
        voided
        required
      • statusDetail
        string
        ·
        one of 8 values
        required
        Allowed values: authorizing, requires_action, verifying, outcome_unknown, review_required, succeeded, failed, voided
      • testMode
        boolean
        required
      • siteRef
        string
        required
      • campaignRef
        string
        required
      • orderRef
        string
        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
      • captureMode
        sale
        or
        authorize_only
        required
      • routing
        object
        required
        • mode
          mids
          or
          profile
          or
          none
          required
        • profileRef
          optional
          string
        • transfer
          optional
          object
          • fromMidId
            string | null
            required
          • reason
            requested
            or
            moved
            or
            replacement
            or
            imported
            required
      • mid
        required

        Any of the following:

        • object
          • midId
            string
            required
          • merchantRef
            string
            required
          • descriptor
            optional
            string
        • null
      • card
        object
        required
        • brand
          string
          required
        • last4
          string
          required
        • expMonth
          integer
          required
          maximum: 9007199254740991 · minimum: -9007199254740991
        • expYear
          integer
          required
          maximum: 9007199254740991 · minimum: -9007199254740991
        • funding
          credit
          or
          debit
          or
          prepaid
          or
          unknown
          required
        • wallet
          optional
          apple_pay
          or
          google_pay
        • first6
          optional
          string
          pattern: ^[0-9]{6}$
      • connectorRefs
        object
        required
        • connector
          sandbox
          required
        • orderId
          optional
          string
        • customerId
          optional
          string
        • transactionIds
          optional
          array of
          string
        • purchaseIds
          optional
          array of
          string
      • riskAnalysis
        required

        Any of the following:

        • object
          • cvc
            match
            or
            no_match
            or
            not_checked
            or
            unavailable
            required
          • avs
            object
            required
            • address
              match
              or
              no_match
              or
              not_checked
              or
              unavailable
              required
            • postalCode
              match
              or
              no_match
              or
              not_checked
              or
              unavailable
              required
          • threeDs
            authenticated
            or
            failed
            or
            abandoned
            or
            not_required
            or
            unknown
            required
          • riskLevel
            low
            or
            elevated
            or
            high
            required
          • riskReasons
            array of
            string
            required
          • ipCountry
            required

            Any of the following:

            • string
            • null
          • cardCountry
            required

            Any of the following:

            • string
            • null
          • checkedAt
            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))$
        • null
      • postPurchases
        array of
        object
        required
        • postPurchaseId
          string
          required
        • paymentId
          string
          required
        • step
          integer
          required
          maximum: 9007199254740991 · minimum: -9007199254740991
        • status
          succeeded
          or
          requires_action
          or
          processing
          or
          failed
          required
        • statusDetail
          string
          ·
          one of 8 values
          required
          Allowed values: authorizing, requires_action, verifying, outcome_unknown, review_required, succeeded, failed, voided
        • nextAction
          required

          Any of the following:

          • object
            • type
              redirect
              required
            • url
              string
              required
          • null
        • amount
          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
        • connectorRefs
          object
          required
          • connector
            sandbox
            required
          • orderId
            optional
            string
          • transactionIds
            optional
            array of
            string
        • metadata
          map of
          string
          required
        • 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))$
        • failure
          optional
          object
          • code
            string
            required
          • category
            soft
            or
            hard
            or
            technical
            required
          • retryable
            boolean
            required
        • succeededAt
          optional
          string
          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))$
      • refunds
        array of
        object
        required
        • refundId
          string
          required
        • paymentId
          string
          required
        • amount
          object
          required
          • amount
            integer
            required
            maximum: 99999999 · minimum: 0
          • currency
            EUR
            required
        • amountVoided
          object
          required
          • amount
            integer
            required
            maximum: 99999999 · minimum: 0
          • currency
            EUR
            required
        • status
          pending
          or
          succeeded
          or
          failed
          or
          requires_manual
          required
        • reason
          requested_by_customer
          or
          duplicate
          or
          fraudulent
          or
          withdrawal
          or
          subscription_cancellation
          or
          other
          required
        • source
          api
          or
          external
          required
        • subscriptionCancelled
          boolean
          required
        • 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))$
        • postPurchaseId
          optional
          string
        • failure
          optional
          object
          • code
            string
            required
        • finalizedAt
          optional
          string
          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))$
      • metadata
        map of
        string
        required
      • sourcePaymentId
        string | null
        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))$
      • cardToken
        optional
        object
        • id
          string
          required
        • customerRef
          string | null
          required
      • cardVerification
        optional
        object
        • mode
          zero_amount
          or
          one_unit
          required
        • release
          none
          or
          pending
          or
          released
          or
          manual
          required
      • authorizationCode
        optional
        string
        pattern: ^[A-Za-z0-9]{1,6}$
      • chargebackAlerts
        optional
        array of
        object
        • alertId
          string
          required
        • provider
          sandbox
          or
          verifi
          or
          ethoca
          required
        • alertType
          dispute
          or
          fraud
          required
        • status
          string
          ·
          one of 8 values
          required
          Allowed values: received, pending_decision, refunding, refunded, declined, unmatched, network_resolved, refund_failed
        • amount
          object
          required
          • amount
            integer
            required
            maximum: 99999999 · minimum: 0
          • currency
            EUR
            required
        • 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))$
      • nextAction
        optional
        object
        • type
          redirect
          required
        • url
          string
          required
      • failure
        optional
        object
        • code
          string
          required
        • category
          soft
          or
          hard
          or
          technical
          required
        • retryable
          boolean
          required
        • declineReason
          optional
          string
          ·
          one of 7 values
          Allowed values: insufficient_funds, do_not_honor, try_again_later, lost_or_stolen_card, suspected_fraud, do_not_retry, other
        • providerCode
          optional
          string
          maxLength: 64
        • providerMessage
          optional
          string
          maxLength: 200
      • threeDs
        optional
        object
        • required
          boolean
          required
        • outcome
          optional
          authenticated
          or
          failed
          or
          abandoned
          or
          unknown
      • verification
        optional
        object
        • rule
          string
          required
        • verifiedAt
          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))$
        • evidence
          map of
          string | number | boolean
          required
      • postPurchase
        optional
        object
        • token
          string
          required
        • expiresAt
          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))$
        • remainingSteps
          integer
          required
          maximum: 9007199254740991 · minimum: -9007199254740991
      • cardTokenId
        optional
        string
      • renewalRetry
        optional
        object
        • billingCycleRef
          string
          required
        • attempt
          integer
          required
          maximum: 9007199254740991 · minimum: -9007199254740991
        • mode
          optional
          orchestrator
          or
          merchant
        • nextAttemptAt
          optional

          Any of the following:

          • string
          • null
        • nextAttempt
          optional
          object
          • number
            integer
            required
            maximum: 9007199254740991 · minimum: -9007199254740991
          • amount
            object
            required
            • amount
              integer
              required
              maximum: 99999999 · minimum: 0
            • currency
              EUR
              required
        • holdReducedPrice
          optional
          boolean
      • succeededAt
        optional
        string
        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))$
      • customerData
        optional

        Customer data of this payment, as sent at its date. Null once erased (retention of the company, or erasure on request) or when none was kept. Only in the response of GET /v1/payments/{id}, with include=customerData and the scope customers:read.

        Any of the following:

        • object
          • customer
            object
            required
            • email
              string
              required

              E-mail of the customer, as sent with the payment.

            • firstName
              string
              required
              maxLength: 64 · minLength: 1 · pattern: ^[^\p{Cc}]*$
            • lastName
              string
              required
              maxLength: 64 · minLength: 1 · pattern: ^[^\p{Cc}]*$
            • phone
              optional
              string
              pattern: ^\+[1-9][0-9]{6,14}$
          • billingAddress
            object
            required
            • line1
              string
              required
              maxLength: 100 · minLength: 1 · pattern: ^[^\p{Cc}]*$
            • postalCode
              string
              required
              maxLength: 16 · minLength: 1 · pattern: ^[^\p{Cc}]*$
            • city
              string
              required
              maxLength: 64 · minLength: 1 · pattern: ^[^\p{Cc}]*$
            • country
              string
              required
              pattern: ^[A-Z]{2}$
            • line2
              optional
              string
              maxLength: 100 · minLength: 0 · pattern: ^[^\p{Cc}]*$
          • shippingAddress
            required

            Any of the following:

            • object
              • line1
                string
                required
                maxLength: 100 · minLength: 1 · pattern: ^[^\p{Cc}]*$
              • postalCode
                string
                required
                maxLength: 16 · minLength: 1 · pattern: ^[^\p{Cc}]*$
              • city
                string
                required
                maxLength: 64 · minLength: 1 · pattern: ^[^\p{Cc}]*$
              • country
                string
                required
                pattern: ^[A-Z]{2}$
              • firstName
                string
                required
                maxLength: 64 · minLength: 1 · pattern: ^[^\p{Cc}]*$
              • lastName
                string
                required
                maxLength: 64 · minLength: 1 · pattern: ^[^\p{Cc}]*$
              • line2
                optional
                string
                maxLength: 100 · minLength: 0 · pattern: ^[^\p{Cc}]*$
            • null
        • null

Example request

{
  "id": "string",
  "type": "payment.voided",
  "apiVersion": "2026-10-22",
  "createdAt": "2019-08-24T14:15:22Z",
  "testMode": true,
  "data": {
    "object": {
      "paymentId": "string",
      "cardToken": {
        "id": "string",
        "customerRef": "string"
      },
      "status": "processing",
      "statusDetail": "authorizing",
      "testMode": true,
      "siteRef": "string",
      "campaignRef": "string",
      "orderRef": "string",
      "amount": {
        "amount": 99999999,
        "currency": "EUR"
      },
      "amountCaptured": {
        "amount": 99999999,
        "currency": "EUR"
      },
      "amountRefunded": {
        "amount": 99999999,
        "currency": "EUR"
      },
      "captureMode": "sale",
      "cardVerification": {
        "mode": "zero_amount",
        "release": "none"
      },
      "routing": {
        "mode": "mids",
        "profileRef": "string",
        "transfer": {
          "fromMidId": "string",
          "reason": "requested"
        }
      },
      "mid": {
        "midId": "string",
        "merchantRef": "string",
        "descriptor": "string"
      },
      "card": {
        "brand": "string",
        "last4": "string",
        "expMonth": -9007199254740991,
        "expYear": -9007199254740991,
        "wallet": "apple_pay",
        "first6": "string",
        "funding": "credit"
      },
      "authorizationCode": "string",
      "chargebackAlerts": [
        {
          "alertId": "string",
          "provider": "sandbox",
          "alertType": "dispute",
          "status": "received",
          "amount": {
            "amount": 99999999,
            "currency": "EUR"
          },
          "receivedAt": "2019-08-24T14:15:22Z"
        }
      ],
      "connectorRefs": {
        "connector": "sandbox",
        "orderId": "string",
        "customerId": "string",
        "transactionIds": [
          "string"
        ],
        "purchaseIds": [
          "string"
        ]
      },
      "nextAction": {
        "type": "redirect",
        "url": "string"
      },
      "failure": {
        "code": "string",
        "category": "soft",
        "retryable": true,
        "declineReason": "insufficient_funds",
        "providerCode": "string",
        "providerMessage": "string"
      },
      "threeDs": {
        "required": true,
        "outcome": "authenticated"
      },
      "verification": {
        "rule": "string",
        "verifiedAt": "2019-08-24T14:15:22Z",
        "evidence": {
          "property1": "string",
          "property2": "string"
        }
      },
      "riskAnalysis": {
        "cvc": "match",
        "avs": {
          "address": "match",
          "postalCode": "match"
        },
        "threeDs": "authenticated",
        "riskLevel": "low",
        "riskReasons": [
          "string"
        ],
        "ipCountry": "string",
        "cardCountry": "string",
        "checkedAt": "2019-08-24T14:15:22Z"
      },
      "postPurchase": {
        "token": "string",
        "expiresAt": "2019-08-24T14:15:22Z",
        "remainingSteps": -9007199254740991
      },
      "postPurchases": [
        {
          "postPurchaseId": "string",
          "paymentId": "string",
          "step": -9007199254740991,
          "status": "succeeded",
          "statusDetail": "authorizing",
          "nextAction": {
            "type": "redirect",
            "url": "string"
          },
          "amount": {
            "amount": 99999999,
            "currency": "EUR"
          },
          "amountRefunded": {
            "amount": 99999999,
            "currency": "EUR"
          },
          "connectorRefs": {
            "connector": "sandbox",
            "orderId": "string",
            "transactionIds": [
              "string"
            ]
          },
          "failure": {
            "code": "string",
            "category": "soft",
            "retryable": true
          },
          "metadata": {
            "property1": "string",
            "property2": "string"
          },
          "createdAt": "2019-08-24T14:15:22Z",
          "updatedAt": "2019-08-24T14:15:22Z",
          "succeededAt": "2019-08-24T14:15:22Z"
        }
      ],
      "refunds": [
        {
          "refundId": "string",
          "paymentId": "string",
          "postPurchaseId": "string",
          "amount": {
            "amount": 99999999,
            "currency": "EUR"
          },
          "amountVoided": {
            "amount": 99999999,
            "currency": "EUR"
          },
          "status": "pending",
          "reason": "requested_by_customer",
          "source": "api",
          "subscriptionCancelled": true,
          "failure": {
            "code": "string"
          },
          "createdAt": "2019-08-24T14:15:22Z",
          "finalizedAt": "2019-08-24T14:15:22Z"
        }
      ],
      "metadata": {
        "property1": "string",
        "property2": "string"
      },
      "sourcePaymentId": "string",
      "cardTokenId": "string",
      "renewalRetry": {
        "billingCycleRef": "string",
        "attempt": -9007199254740991,
        "mode": "orchestrator",
        "nextAttemptAt": "2019-08-24T14:15:22Z",
        "nextAttempt": {
          "number": -9007199254740991,
          "amount": {
            "amount": 99999999,
            "currency": "EUR"
          }
        },
        "holdReducedPrice": true
      },
      "version": -9007199254740991,
      "createdAt": "2019-08-24T14:15:22Z",
      "updatedAt": "2019-08-24T14:15:22Z",
      "succeededAt": "2019-08-24T14:15:22Z",
      "customerData": {
        "customer": {
          "email": "string",
          "firstName": "string",
          "lastName": "string",
          "phone": "string"
        },
        "billingAddress": {
          "line1": "string",
          "line2": "string",
          "postalCode": "string",
          "city": "string",
          "country": "string"
        },
        "shippingAddress": {
          "line1": "string",
          "line2": "string",
          "postalCode": "string",
          "city": "string",
          "country": "string",
          "firstName": "string",
          "lastName": "string"
        }
      }
    }
  }
}

Returns

200

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

Type to search…

↑↓ navigate↵ selectEsc close