Checking access…

Skip to main content
Version: v2
Audience: Consumers, CCG Platform Engineers

Disputes — Integration Guide

When to use this page

There's no API to manage disputes — this documents the webhook relay CCG forwards from the processor so you can react to a chargeback event.

Disputes (chargebacks) are initiated by cardholders via their card issuer. CCG acts as a stateless relay — receiving dispute events from the payment processor and forwarding them to your webhook endpoint in real time. There is no CCG API to initiate, query, or close disputes.

For an overview of the dispute lifecycle, business rules, and how to respond, see the Business Disputes Guide.

Integration Details
  • Prerequisites: Configure a webhook endpoint in the CCG platform to receive dispute events. No feature flag or merchant setup is required.
  • No outbound API: Disputes are entirely webhook-driven. CCG relays events from the payment processor — you do not call an API to interact with disputes via CCG.
  • Evidence Submission: Submit evidence directly through the payment processor dashboard (e.g., Stripe Dashboard), not via CCG.
  • Webhook Spec: Dispute Webhook Reference
  • Error Handling: See Payment Error Codes for dispute-related scenarios.

Payment Allocation & Disputes​

In CCG, every payment — whether single-tender or split-tender — is composed of one or more payment allocations. Each allocation represents a single charge to a specific payment method. A dispute is always filed against a specific payment allocation, not the overall payment or transaction.

Key Identifiers​

Every dispute webhook includes three identifiers so you always know exactly what was disputed:

JSON FieldRepresents
paymentAllocationIdThe specific allocation (charge to a single payment method) that is disputed
paymentIdThe parent payment (may contain one or more allocations)
merchantTransactionIdThe merchant's original reference for the transaction

Dispute Scope​

AspectBehavior
Disputed allocationFunds are withdrawn from the merchant's account for this allocation only.
Other allocationsRemain completely unaffected — no holds, no status changes, regardless of whether the payment is single-tender or split-tender.
CCG payment statusNot reversed or changed as a result of the dispute lifecycle.
Single-tender vs. split-tender

For a single-tender payment there is exactly one allocation, so the dispute maps 1:1 to the payment. For a split-tender payment with multiple allocations, only the individual allocation charged to the disputed payment method is affected — the remaining allocations are untouched.



API Request​

Disputes are entirely webhook-driven. CCG does not expose an API endpoint to initiate, query, update, or close disputes — all dispute lifecycle changes originate from the card network and are relayed by the payment processor.

No request is required. To integrate with disputes:

  1. Configure a webhook endpoint in the CCG platform.
  2. Implement a handler for the dispute event types documented in Webhooks.
  3. Submit evidence through the payment processor dashboard before the response deadline.

API Response​

Dispute updates are delivered as outbound webhook payloads, not as synchronous API responses. See Webhooks below for the full payload schema for each event type.

For the complete webhook payload schema, see the Dispute Webhook Reference.


Status Handling​

Disputes do not affect the CCG payment status — the status on your payment object is not changed during the dispute lifecycle. The status field within each dispute webhook payload reflects the dispute's own state at the time of that event. Always treat DISPUTE_CLOSED as the terminal event — DISPUTE_WON is not final.

Full status table

See Disputes — Status, Events & Evidence Reference for every dispute status value and its typical triggering events.


Webhooks​

CCG sends webhooks to notify you of changes in a dispute's status: DISPUTE_INITIATED, DISPUTE_FUNDS_WITHDRAWN, DISPUTE_WON, and DISPUTE_CLOSED (the terminal event — never treat DISPUTE_WON as final). Each webhook payload identifies the specific payment allocation that was disputed, along with the parent payment and the merchant's original transaction reference.

Full event table, evidence fields, and balance transaction schema

See Disputes — Status, Events & Evidence Reference for the complete event table, the evidence object fields by category, and the balance transaction / fee detail structures.


Error Handling​

Disputes are webhook-driven — error scenarios manifest as missing or delayed events rather than API errors. If your endpoint is not receiving expected events:

  • Verify your webhook endpoint is configured and reachable in the CCG platform.
  • Confirm your endpoint returns a 2xx response promptly. Failure to acknowledge may result in missed events.
  • Check for network or firewall issues blocking inbound webhooks.

For general payment and dispute-related error codes, see Payment Error Codes.


FAQ​

Q: How do I know which payment was disputed?

Use the paymentAllocationId in the webhook payload to identify the specific charge. The paymentId gives you the parent payment, and merchantTransactionId is your original reference.

More FAQs

Questions about CCG payment status impact, evidence submission, split-tender scope, and response deadlines are answered in Disputes — Status, Events & Evidence Reference.


Integration Checklist​

  • Webhook endpoint is configured and publicly reachable
  • Webhook handler responds with 2xx promptly on receipt
  • Handler is idempotent — duplicate events are handled safely
  • DISPUTE_CLOSED is used as the definitive final outcome (not DISPUTE_WON)
  • paymentAllocationId is used to correlate disputes with specific charges
  • All four event types are handled: DISPUTE_INITIATED, DISPUTE_FUNDS_WITHDRAWN, DISPUTE_WON, DISPUTE_CLOSED
  • Financial reconciliation logic accounts for non-refundable dispute fees
  • Evidence submission process is in place (via payment processor dashboard)
  • Integration tested with all event types in staging