Chargewood API reference
Chargewood reads your disputes and takes supporting records from the tools you already run. The API exists so those tools can reach it without us building an integration for each one — which is also why the officially supported client is our Zapier integration: it already speaks to thousands of applications, so you build a Zap instead of writing code.
Overview
Nothing sent to this API becomes evidence on its own. A record you push is matched to a dispute and then held as a proposed fact, which somebody at your company confirms in the console before it can be argued from.
There is no endpoint that edits a dispute, changes your response, or submits anything, and there is no setting that turns the confirmation step off. An automation that could put an unread sentence in front of a card network is not something we are willing to ship.
Everything lives under https://chargewood.com/api/v1. The version is in the path because the consumers are other people's automations: when we change something, your Zap keeps working and you find out on your schedule rather than ours.
Requests and responses are JSON. Timestamps are ISO 8601 in UTC. Every object you can address by id uses an opaque identifier that is stable for the life of the record; nothing in the API takes an account id, because the token is the account.
GET /api/v1/me HTTP/1.1
Host: chargewood.com
Authorization: Bearer <access_token>
Accept: application/json
Authentication
OAuth 2.0, authorization code grant (RFC 6749 §4.1). There is no API key, no password grant and no client-credentials grant — every token belongs to a specific merchant who approved a specific consent screen, and it can be cut off from Connections in their console at any moment.
The consent screen. A signed-out merchant signs in and lands back here; a signed-in one approves the scopes and is redirected to redirect_uri with code and state.
client_id
string
required
redirect_uri
url
required
response_type
string
required
code.scope
string
state
string
Exchanges a code for tokens, or renews an access token. Client credentials go in an HTTP Basic header or as client_id / client_secret form fields — both forms the RFC allows, neither less safe over TLS.
grant_type
string
required
authorization_code or refresh_token. Anything else answers unsupported_grant_type.code
string
redirect_uri
url
refresh_token
string
grant_type=refresh_token.POST /oauth/token
Authorization: Basic base64(client_id:client_secret)
Content-Type: application/x-www-form-urlencoded
grant_type=authorization_code
&code=<code>
&redirect_uri=https://example.com/oauth/callback
{
"access_token": "<access_token>",
"refresh_token": "<refresh_token>",
"token_type": "bearer",
"expires_in": 7200,
"scope": "disputes:read evidence:write activity:write"
}
RFC 7009. Takes token of either type and always answers 200, including for a token that was never ours — the alternative is an oracle for testing whether a stolen value is live.
Token lifetime
Access tokens live 2 hours. Refresh tokens do not expire and are not rotated, so a client that fails to store a replacement is never stranded. Send the access token as Authorization: Bearer <token> on every request.
Re-approving the consent screen replaces whatever the client was holding. That is deliberate — a merchant who reconnects because they think a credential leaked has to actually gain something — but it means an account holds one live grant per client, and reconnecting invalidates the previous tokens immediately.
Scopes
Ask for less and you get less. There is no scope that writes to a dispute, because no such capability exists.
| Scope | Grants | Used by |
|---|---|---|
| disputes:read | Read your disputes, their deadlines and their status | /api/v1/disputes, /api/v1/hooks |
| evidence:write | Attach supporting records from your other tools | /api/v1/external_records |
| activity:write | Add customer activity to the evidence you already collect | /api/v1/activity_events |
A request missing the scope it needs answers 403 with "error": "insufficient_scope". GET /api/v1/me needs no scope beyond a valid token.
Disputes
Read-only, and that isn't a phase-one limitation. Nothing outside the console may change a dispute's evidence.
Who this token belongs to. The connection test, and the source of the label a client shows for the connection — a merchant running three Chargewood accounts through one Zapier login has to be able to tell them apart in a dropdown.
{
"id": 1042,
"label": "Northwind Supplies",
"company_name": "Northwind Supplies",
"scopes": ["disputes:read", "evidence:write", "activity:write"],
"connected_at": "2026-08-18T14:30:00Z"
}
Newest first, because that is what a polling trigger wants: it reads the top of the list, dedupes on id, and never looks further back.
Query parameters
since
timestamp
status
string
status value returned in the dispute object.limit
integer
50, maximum 100.include_test
boolean
{
"data": [ { dispute }, { dispute }, … ]
}
One dispute by its id. A dispute that isn't on your account is a 404, whether or not it exists elsewhere.
Finds the dispute a record belongs to — the step that makes a chain work in the other direction: a ticket was solved in the helpdesk, is there a dispute for this customer, attach the thread to it. Uses the same matcher as POST /api/v1/external_records, so a search finds exactly what a push would attach to. Returns at most one, and returns none rather than guessing between two.
Query parameters · send one
transaction_reference
string
order_reference
string
customer_email
string
{
"data": [ { dispute } ] // or [] when nothing matched unambiguously
}
The dispute object
Every dispute is returned in the same shape, whether it came from a poll, a lookup or a webhook delivery. A client samples one and maps against it, then is fed the others; a field that existed in one and not another would be an automation that works in testing and breaks in production.
{
"id": "9b1d7c2e-4f3a-4c8e-9a62-0f5e3b7d1c44",
"provider": "stripe",
"provider_dispute_id": "dp_1Pq…",
"kind": "chargeback",
"status": "evidence_drafted",
"reason": "product_not_received",
"reason_label": "Product not received",
"amount": 149.00,
"amount_cents": 14900,
"currency": "usd",
"opened_at": "2026-08-18T14:30:00Z",
"evidence_due_by": "2026-08-25T23:59:59Z",
"submitted_at": null,
"livemode": true,
"customer_email": "[email protected]",
"customer_name": "A. Shopper",
"transaction_reference": "ch_3Pq…",
"order_reference": "1001",
"url": "https://chargewood.com/app/disputes/9b1d7c2e-…"
}
id
string
provider
string
status
string
status filters on.amount, amount_cents, currency
number · integer · string
currency is a lowercase ISO 4217 code.opened_at, evidence_due_by, submitted_at
timestamp · nullable
null until it happens.customer_email, transaction_reference, order_reference
string · nullable
url
url
Raw processor payloads are deliberately not included. They are unbounded, their meaning changes without notice, and they carry more of your customer's personal data than a workflow tool has any reason to hold.
Supporting records
The endpoint this API exists for. A helpdesk thread, a delivery scan, a licence check, a signed policy: whatever your other tools hold that would help answer a dispute.
Stores one record and matches it to a dispute. Matching tries the keys below in order of strength and stops at the first that resolves to exactly one dispute. A record that matches nothing is kept and attaches itself if a dispute it fits opens later.
Body · JSON or form-encoded
title
string
required
body
string
kind
enum
One of customer_communication, delivery, access_activity, policy_disclosure, purchase_confirmation, refund_outcome, other. Decides which part of the response it strengthens. An unrecognised value becomes other rather than an error — the taxonomy is ours, the automation is yours.
occurred_at
timestamp
422, never a silent default.source_app
string
dispute_id
string
dispute.opened webhook that handed it the id. The strongest match; skips the heuristics below. Unknown id: 404.transaction_reference
string
order_reference
string
customer_email
string
external_id
string
external_url
url
metadata
object
POST /api/v1/external_records
Authorization: Bearer <access_token>
Content-Type: application/json
{
"title": "Ticket #4821 — delivery confirmed",
"body": "Customer wrote on 19 Aug: 'Got it, thanks…'",
"kind": "customer_communication",
"occurred_at": "2026-08-19T09:12:00Z",
"source_app": "Zendesk",
"transaction_reference": "ch_3Pq…",
"external_id": "zd-4821",
"external_url": "https://example.zendesk.com/tickets/4821"
}
{
"id": "c71e…",
"kind": "customer_communication",
"title": "Ticket #4821 — delivery confirmed",
"occurred_at": "2026-08-19T09:12:00Z",
"matched": true,
"match_confidence": "transaction",
"dispute_id": "9b1d7c2e-…",
"order_reference": "1001",
"status": "awaiting_your_confirmation"
}
Response fields
matched
boolean
match_confidence
enum · nullable
explicit, transaction, order or email — which key resolved it.status
enum
awaiting_your_confirmation or stored_unmatched. Said outright because it is the one thing about this API a merchant must not misunderstand: nothing sent here argues anything until a person at their company has confirmed it.A replayed external_id answers 200 instead of 201, with the same shape.
Customer activity
For systems that aren't a browser and so can't run our tracker — a licence server, a desktop app, a game backend, your own admin. The activity joins the same history our tracker collects, which is what answers a customer who says they never used what they're disputing.
Records one event. One request per event; batching would be a false economy for the clients this is built for.
Body
name
string
required
login, licence_check, content_viewed. Normalised before storing.customer_email
string
customer_email or customer_id is required.customer_id
string
occurred_at
timestamp
event_id
string
url
url
properties
object
{
"name": "licence_check",
"occurred_at": "2026-08-19T09:12:00Z",
"recorded": true // false, with 200, when the event_id was already stored
}
We record no IP address or user agent from these calls. The address would be your automation's server, not your customer's, and an IP in that table is read as the customer's when we match a disputed transaction against their earlier ones.
Webhooks
REST hooks: subscribe a URL to an event and we POST the dispute to it when the event happens.
Subscribes target_url to one event. Subscribing the same URL to the same event twice returns the existing subscription.
Body
event
enum
required
dispute.opened, dispute.submitted, dispute.closed.target_url
url
required
{
"id": "5e0a…",
"event": "dispute.opened"
}
Unsubscribes. Answers 204. Scoped to the grant that created it, not just the account — one merchant's two connections cannot unsubscribe each other's hooks.
Events
| Event | Fires when |
|---|---|
dispute.opened | A dispute arrived from the processor. |
dispute.submitted | Evidence has gone to the processor. |
dispute.closed | The issuer decided. |
Delivery
Each delivery is the dispute object above plus an event field, sent with User-Agent: Chargewood-Hooks/1. Answer any 2xx. A target that answers 410 is dropped immediately; one that fails 5 times in a row is dropped too, and the merchant turns the automation back on to resubscribe.
POST <target_url>
Content-Type: application/json
User-Agent: Chargewood-Hooks/1
{
"event": "dispute.opened",
"id": "9b1d7c2e-4f3a-4c8e-9a62-0f5e3b7d1c44",
… the dispute object
}
Errors
Every failure answers with one shape. The message is written for the person building the automation, not for a log — it is what somebody sees at 11pm when their evidence isn't arriving.
{
"error": "insufficient_scope",
"message": "This connection was approved without the evidence:write permission. Reconnect it to grant that."
}
| Status | error | Meaning | Retry |
|---|---|---|---|
| 401 | unauthorized | The token is missing, expired or revoked. | Renew the token, then retry. |
| 403 | insufficient_scope | The grant lacks the scope this endpoint needs. | No. Reconnect with the scope. |
| 404 | not_found | Not on your account, whether or not it exists elsewhere. | No. |
| 422 | invalid_request | A parameter you can fix: a date we can't read, a missing required field, an unknown event. | No — deliberately 422 rather than 400, so a retrying client stops and says so instead of coming back three more times. |
The OAuth endpoints answer the RFC 6749 §5.2 codes in the same shape: invalid_client, invalid_grant, invalid_request, unsupported_grant_type.
Limits
There is no published quota. Polling every few minutes and pushing records as they happen is well inside what we expect; if you're planning something larger, tell us first at [email protected] and we'll say yes or say why not.
| Limit | Value |
|---|---|
| Access token lifetime | 7200 seconds |
| Disputes per page | 50 default, 100 maximum |
| Record title / body | 200 / 20,000 characters |
| Record metadata | 25 keys, 500 characters per value |
| Webhook failures before drop | 5 consecutive, or one 410 |
Questions: [email protected]. See our Privacy Policy for how data reaching this API is handled, and Security for how it's protected.