Disputes
Open a dispute on a check, add evidence from each party, record a signed finding and remedy, allow one appeal to a different reviewer, and track the remedy to settlement. See Disputes and findings .
# Open a dispute on a check
POST /v1/disputesSecret key · scope disputes:write
Parameters Name In Description Idempotency-Keyheader Repeat a write safely: the same key and body return the first answer.
Request body Field Type Description check required string reason required "no_authority" | "limit_breached" | "wrong_purchase" | "not_as_ordered" | "duplicate_payment" | "price_changed" | "unclear_instruction" description required string raised_by"customer" | "agent_operator" | "merchant" | "payment_participant" | "organisation" independent_reviewboolean Ask TheWavly's independent desk to review the case (a flat fee per live case) amount_paiseinteger Amount in paise (₹1 = 100 paise)min 1 charged_amount_paiseinteger Amount in paise (₹1 = 100 paise)min 1 received_atinteger evidencearray of object
Returns Field Type Description object"dispute" assigneeobject or null assignee.idstring assignee.emailstring or null assignee.namestring or null slaobject or null The next deadline while the dispute needs a decision sla.stage"first_finding" | "appeal_decision" sla.due_atinteger sla.overdueboolean sla.hours_leftnumber idstring checkstring status"open" | "appealed" | "resolved" | "closed" | "withdrawn" caseinteger suggestionobject findingobject or null decisionsarray of object remedyobject or null evidencearray of object respond_byinteger appeal_untilinteger or null
Errors Errors return {"error": {"code", "message", "field", "request_id"}} with a 4xx or 5xx status. See Errors .
curl -X POST https://thewavly.com/v1/disputes \
-H "Authorization: Bearer $WAVLY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"check": "chk_P1iENx01EDRJ",
"reason": "not_as_ordered",
"description": "The order arrived with a substituted item.",
"amount_paise": 184500
}'import { Wavly } from "@thewavly/sdk";
const wavly = new Wavly(process.env.WAVLY_API_KEY);
const result = await wavly.request("POST", "/v1/disputes", {
"check": "chk_P1iENx01EDRJ",
"reason": "not_as_ordered",
"description": "The order arrived with a substituted item.",
"amount_paise": 184500
});from thewavly import Wavly
wavly = Wavly(os.environ["WAVLY_API_KEY"])
result = wavly.request("POST", "/v1/disputes", {
"check": "chk_P1iENx01EDRJ",
"reason": "not_as_ordered",
"description": "The order arrived with a substituted item.",
"amount_paise": 184500
})Response Copy
{
"id": "chk_P1iENx01EDRJ",
"check": "chk_P1iENx01EDRJ",
"status": "paid",
"finding": "merchant"
}
# List disputes
GET /v1/disputesSecret key · scope disputes:read
Parameters Name In Description limitquery starting_afterquery An id from the previous page statusquery one of open, appealed, resolved, closed, withdrawn checkquery assigneequery A member id, me (the signed-in member, in the dashboard) or none for unassigned sortquery due: the work queue, open and appealed disputes with the nearest deadline firstone of due overduequery Only disputes past their deadlineone of true
Returns Field Type Description object required "list" data required array of object has_more required boolean
Errors Errors return {"error": {"code", "message", "field", "request_id"}} with a 4xx or 5xx status. See Errors .
curl https://thewavly.com/v1/disputes \
-H "Authorization: Bearer $WAVLY_API_KEY"import { Wavly } from "@thewavly/sdk";
const wavly = new Wavly(process.env.WAVLY_API_KEY);
const result = await wavly.request("GET", "/v1/disputes");from thewavly import Wavly
wavly = Wavly(os.environ["WAVLY_API_KEY"])
result = wavly.request("GET", "/v1/disputes")Response Copy
{
"object": "list",
"data": [
{
"object": "dispute",
"assignee": {},
"sla": {}
}
],
"has_more": true
}
# Desk figures: the queue, time to a finding, share within the service level, minutes per case, appeals overturned
GET /v1/disputes/statsSecret key · scope disputes:read
Parameters Name In Description daysquery
Returns Field Type Description object"desk_stats" window_daysinteger slaobject sla.first_finding_hoursinteger sla.appeal_decision_hoursinteger queueobject open, appealed, overdue, due_within_24_hours, unassigned, and by_assignee [{assignee, open, overdue}] first_findingsinteger hours_to_first_findingobject hours_to_first_finding.mediannumber or null hours_to_first_finding.p90number or null within_sla_percentnumber or null handling_minutesobject handling_minutes.casesinteger handling_minutes.mediannumber or null handling_minutes.p90number or null handling_minutes.totalinteger appeals_decidedinteger appeals_overturnedinteger
Errors Errors return {"error": {"code", "message", "field", "request_id"}} with a 4xx or 5xx status. See Errors .
curl https://thewavly.com/v1/disputes/stats \
-H "Authorization: Bearer $WAVLY_API_KEY"import { Wavly } from "@thewavly/sdk";
const wavly = new Wavly(process.env.WAVLY_API_KEY);
const result = await wavly.request("GET", "/v1/disputes/stats");from thewavly import Wavly
wavly = Wavly(os.environ["WAVLY_API_KEY"])
result = wavly.request("GET", "/v1/disputes/stats")Response Copy
{
"object": "desk_stats",
"window_days": 1,
"sla": {
"first_finding_hours": 1,
"appeal_decision_hours": 1
}
}
# Ask a party to respond: a link to the case, no account needed
POST /v1/disputes/{id}/partiesSecret key · scope disputes:write
Parameters Name In Description id required path Dispute idpattern ^dsp_[\w-]{6,40}$
Request body Field Type Description party required "merchant" | "agent_operator" | "payment_participant" name required string up to 120 characters emailstring TheWavly emails the link when email is on. The link is returned either way. include_evidenceboolean Also show the evidence other parties gave expires_in_daysinteger min 1, max 30
Returns Field Type Description object"dispute_party" idstring urlstring Shown once. Anyone with it can respond for the party. notifiedboolean expires_atinteger
Errors Errors return {"error": {"code", "message", "field", "request_id"}} with a 4xx or 5xx status. See Errors .
curl -X POST https://thewavly.com/v1/disputes/chk_P1iENx01EDRJ/parties \
-H "Authorization: Bearer $WAVLY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"party": "customer",
"name": "Acme Travel Assistant"
}'import { Wavly } from "@thewavly/sdk";
const wavly = new Wavly(process.env.WAVLY_API_KEY);
const result = await wavly.request("POST", "/v1/disputes/chk_P1iENx01EDRJ/parties", {
"party": "customer",
"name": "Acme Travel Assistant"
});from thewavly import Wavly
wavly = Wavly(os.environ["WAVLY_API_KEY"])
result = wavly.request("POST", "/v1/disputes/chk_P1iENx01EDRJ/parties", {
"party": "customer",
"name": "Acme Travel Assistant"
})Response Copy
{
"id": "chk_P1iENx01EDRJ",
"url": "https://example.in/webhooks/wavly"
}
# List the parties asked to respond, with whether they opened the link and responded
GET /v1/disputes/{id}/partiesSecret key · scope disputes:read
Parameters Name In Description id required path Dispute idpattern ^dsp_[\w-]{6,40}$
Returns Field Type Description object required "list" data required array of object has_more required boolean
Errors Errors return {"error": {"code", "message", "field", "request_id"}} with a 4xx or 5xx status. See Errors .
curl https://thewavly.com/v1/disputes/chk_P1iENx01EDRJ/parties \
-H "Authorization: Bearer $WAVLY_API_KEY"import { Wavly } from "@thewavly/sdk";
const wavly = new Wavly(process.env.WAVLY_API_KEY);
const result = await wavly.request("GET", "/v1/disputes/chk_P1iENx01EDRJ/parties");from thewavly import Wavly
wavly = Wavly(os.environ["WAVLY_API_KEY"])
result = wavly.request("GET", "/v1/disputes/chk_P1iENx01EDRJ/parties")Response Copy
{
"object": "list",
"data": [
{}
],
"has_more": true
}
# Withdraw a party's link
POST /v1/disputes/{id}/parties/{party_id}/revokeSecret key · scope disputes:write
Parameters Name In Description id required path Dispute idpattern ^dsp_[\w-]{6,40}$ party_id required path pattern ^dpt_[\w-]{6,40}$
Returns Field Type Description object required "list" data required array of object has_more required boolean
Errors Errors return {"error": {"code", "message", "field", "request_id"}} with a 4xx or 5xx status. See Errors .
curl -X POST https://thewavly.com/v1/disputes/chk_P1iENx01EDRJ/parties/party-id/revoke \
-H "Authorization: Bearer $WAVLY_API_KEY"import { Wavly } from "@thewavly/sdk";
const wavly = new Wavly(process.env.WAVLY_API_KEY);
const result = await wavly.request("POST", "/v1/disputes/chk_P1iENx01EDRJ/parties/party-id/revoke");from thewavly import Wavly
wavly = Wavly(os.environ["WAVLY_API_KEY"])
result = wavly.request("POST", "/v1/disputes/chk_P1iENx01EDRJ/parties/party-id/revoke")Response Copy
{
"object": "list",
"data": [
{}
],
"has_more": true
}
# Assign a dispute to a member, or unassign it
POST /v1/disputes/{id}/assignSecret key · scope disputes:write
Parameters Name In Description id required path Dispute idpattern ^dsp_[\w-]{6,40}$ Idempotency-Keyheader Repeat a write safely: the same key and body return the first answer.
Request body Field Type Description assignee required string or null A member's id or email, or null to unassign. An appeal cannot be assigned to anyone who decided the finding under appeal.
Returns Field Type Description object"dispute" assigneeobject or null assignee.idstring assignee.emailstring or null assignee.namestring or null slaobject or null The next deadline while the dispute needs a decision sla.stage"first_finding" | "appeal_decision" sla.due_atinteger sla.overdueboolean sla.hours_leftnumber idstring checkstring status"open" | "appealed" | "resolved" | "closed" | "withdrawn" caseinteger suggestionobject findingobject or null decisionsarray of object remedyobject or null evidencearray of object respond_byinteger appeal_untilinteger or null
Errors Errors return {"error": {"code", "message", "field", "request_id"}} with a 4xx or 5xx status. See Errors .
curl -X POST https://thewavly.com/v1/disputes/chk_P1iENx01EDRJ/assign \
-H "Authorization: Bearer $WAVLY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"assignee": "assignee"
}'import { Wavly } from "@thewavly/sdk";
const wavly = new Wavly(process.env.WAVLY_API_KEY);
const result = await wavly.request("POST", "/v1/disputes/chk_P1iENx01EDRJ/assign", {
"assignee": "assignee"
});from thewavly import Wavly
wavly = Wavly(os.environ["WAVLY_API_KEY"])
result = wavly.request("POST", "/v1/disputes/chk_P1iENx01EDRJ/assign", {
"assignee": "assignee"
})Response Copy
{
"id": "chk_P1iENx01EDRJ",
"check": "chk_P1iENx01EDRJ",
"status": "paid",
"finding": "merchant"
}
# Retrieve a dispute
GET /v1/disputes/{id}Secret key · scope disputes:read
Parameters Name In Description id required path Dispute idpattern ^dsp_[\w-]{6,40}$
Returns Field Type Description object"dispute" assigneeobject or null assignee.idstring assignee.emailstring or null assignee.namestring or null slaobject or null The next deadline while the dispute needs a decision sla.stage"first_finding" | "appeal_decision" sla.due_atinteger sla.overdueboolean sla.hours_leftnumber idstring checkstring status"open" | "appealed" | "resolved" | "closed" | "withdrawn" caseinteger suggestionobject findingobject or null decisionsarray of object remedyobject or null evidencearray of object respond_byinteger appeal_untilinteger or null
Errors Errors return {"error": {"code", "message", "field", "request_id"}} with a 4xx or 5xx status. See Errors .
curl https://thewavly.com/v1/disputes/chk_P1iENx01EDRJ \
-H "Authorization: Bearer $WAVLY_API_KEY"import { Wavly } from "@thewavly/sdk";
const wavly = new Wavly(process.env.WAVLY_API_KEY);
const result = await wavly.request("GET", "/v1/disputes/chk_P1iENx01EDRJ");from thewavly import Wavly
wavly = Wavly(os.environ["WAVLY_API_KEY"])
result = wavly.request("GET", "/v1/disputes/chk_P1iENx01EDRJ")Response Copy
{
"id": "chk_P1iENx01EDRJ",
"check": "chk_P1iENx01EDRJ",
"status": "paid",
"finding": "merchant"
}
# Add evidence
POST /v1/disputes/{id}/evidenceSecret key · scope disputes:write
Parameters Name In Description id required path Dispute idpattern ^dsp_[\w-]{6,40}$ Idempotency-Keyheader Repeat a write safely: the same key and body return the first answer.
Request body Field Type Description kind"statement" | "order_confirmation" | "delivery_record" | "payment_record" | "quote" | "screenshot" | "other" party"customer" | "agent_operator" | "merchant" | "payment_participant" | "organisation" text required string up to 4000 characters urlstring
Returns Field Type Description object"dispute" assigneeobject or null assignee.idstring assignee.emailstring or null assignee.namestring or null slaobject or null The next deadline while the dispute needs a decision sla.stage"first_finding" | "appeal_decision" sla.due_atinteger sla.overdueboolean sla.hours_leftnumber idstring checkstring status"open" | "appealed" | "resolved" | "closed" | "withdrawn" caseinteger suggestionobject findingobject or null decisionsarray of object remedyobject or null evidencearray of object respond_byinteger appeal_untilinteger or null
Errors Errors return {"error": {"code", "message", "field", "request_id"}} with a 4xx or 5xx status. See Errors .
curl -X POST https://thewavly.com/v1/disputes/chk_P1iENx01EDRJ/evidence \
-H "Authorization: Bearer $WAVLY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"kind": "statement",
"party": "customer",
"text": "Delivered a different brand of rice.",
"url": "https://example.in/webhooks/wavly"
}'import { Wavly } from "@thewavly/sdk";
const wavly = new Wavly(process.env.WAVLY_API_KEY);
const result = await wavly.request("POST", "/v1/disputes/chk_P1iENx01EDRJ/evidence", {
"kind": "statement",
"party": "customer",
"text": "Delivered a different brand of rice.",
"url": "https://example.in/webhooks/wavly"
});from thewavly import Wavly
wavly = Wavly(os.environ["WAVLY_API_KEY"])
result = wavly.request("POST", "/v1/disputes/chk_P1iENx01EDRJ/evidence", {
"kind": "statement",
"party": "customer",
"text": "Delivered a different brand of rice.",
"url": "https://example.in/webhooks/wavly"
})Response Copy
{
"id": "chk_P1iENx01EDRJ",
"check": "chk_P1iENx01EDRJ",
"status": "paid",
"finding": "merchant"
}
# Record a signed finding and remedy
POST /v1/disputes/{id}/resolveSecret key · scope disputes:write
Parameters Name In Description id required path Dispute idpattern ^dsp_[\w-]{6,40}$ Idempotency-Keyheader Repeat a write safely: the same key and body return the first answer.
Request body Field Type Description reviewer required string The person deciding finding required "agent_operator" | "merchant" | "payment_participant" | "shared" | "no_breach" | "insufficient_evidence" | "settled" note required string handling_minutesinteger Time the reviewer spent on the case, for the desk's figures. Not part of the signed finding.min 1, max 1440 remedyobject remedy.type"none" | "refund" | "compensation" | "correction" | "goodwill" remedy.amount_paiseinteger Amount in paise (₹1 = 100 paise)min 1 remedy.funded_by"agent_operator" | "merchant" | "payment_participant" | "organisation"
Returns Field Type Description object"dispute" assigneeobject or null assignee.idstring assignee.emailstring or null assignee.namestring or null slaobject or null The next deadline while the dispute needs a decision sla.stage"first_finding" | "appeal_decision" sla.due_atinteger sla.overdueboolean sla.hours_leftnumber idstring checkstring status"open" | "appealed" | "resolved" | "closed" | "withdrawn" caseinteger suggestionobject findingobject or null decisionsarray of object remedyobject or null evidencearray of object respond_byinteger appeal_untilinteger or null
Errors Errors return {"error": {"code", "message", "field", "request_id"}} with a 4xx or 5xx status. See Errors .
curl -X POST https://thewavly.com/v1/disputes/chk_P1iENx01EDRJ/resolve \
-H "Authorization: Bearer $WAVLY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"reviewer": "Asha Rao",
"finding": "merchant",
"note": "The merchant substituted an item without consent."
}'import { Wavly } from "@thewavly/sdk";
const wavly = new Wavly(process.env.WAVLY_API_KEY);
const result = await wavly.request("POST", "/v1/disputes/chk_P1iENx01EDRJ/resolve", {
"reviewer": "Asha Rao",
"finding": "merchant",
"note": "The merchant substituted an item without consent."
});from thewavly import Wavly
wavly = Wavly(os.environ["WAVLY_API_KEY"])
result = wavly.request("POST", "/v1/disputes/chk_P1iENx01EDRJ/resolve", {
"reviewer": "Asha Rao",
"finding": "merchant",
"note": "The merchant substituted an item without consent."
})Response Copy
{
"id": "chk_P1iENx01EDRJ",
"check": "chk_P1iENx01EDRJ",
"status": "paid",
"finding": "merchant"
}
# Appeal within 14 days
POST /v1/disputes/{id}/appealSecret key · scope disputes:write
Parameters Name In Description id required path Dispute idpattern ^dsp_[\w-]{6,40}$ Idempotency-Keyheader Repeat a write safely: the same key and body return the first answer.
Request body Field Type Description reason required string party"customer" | "agent_operator" | "merchant" | "payment_participant" | "organisation" evidenceobject or array of object
Returns Field Type Description object"dispute" assigneeobject or null assignee.idstring assignee.emailstring or null assignee.namestring or null slaobject or null The next deadline while the dispute needs a decision sla.stage"first_finding" | "appeal_decision" sla.due_atinteger sla.overdueboolean sla.hours_leftnumber idstring checkstring status"open" | "appealed" | "resolved" | "closed" | "withdrawn" caseinteger suggestionobject findingobject or null decisionsarray of object remedyobject or null evidencearray of object respond_byinteger appeal_untilinteger or null
Errors Errors return {"error": {"code", "message", "field", "request_id"}} with a 4xx or 5xx status. See Errors .
curl -X POST https://thewavly.com/v1/disputes/chk_P1iENx01EDRJ/appeal \
-H "Authorization: Bearer $WAVLY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"reason": "not_as_ordered",
"party": "customer"
}'import { Wavly } from "@thewavly/sdk";
const wavly = new Wavly(process.env.WAVLY_API_KEY);
const result = await wavly.request("POST", "/v1/disputes/chk_P1iENx01EDRJ/appeal", {
"reason": "not_as_ordered",
"party": "customer"
});from thewavly import Wavly
wavly = Wavly(os.environ["WAVLY_API_KEY"])
result = wavly.request("POST", "/v1/disputes/chk_P1iENx01EDRJ/appeal", {
"reason": "not_as_ordered",
"party": "customer"
})Response Copy
{
"id": "chk_P1iENx01EDRJ",
"check": "chk_P1iENx01EDRJ",
"status": "paid",
"finding": "merchant"
}
# Withdraw a dispute
POST /v1/disputes/{id}/withdrawSecret key · scope disputes:write
Parameters Name In Description id required path Dispute idpattern ^dsp_[\w-]{6,40}$ Idempotency-Keyheader Repeat a write safely: the same key and body return the first answer.
Request body Field Type Description reasonstring
Returns Field Type Description object"dispute" assigneeobject or null assignee.idstring assignee.emailstring or null assignee.namestring or null slaobject or null The next deadline while the dispute needs a decision sla.stage"first_finding" | "appeal_decision" sla.due_atinteger sla.overdueboolean sla.hours_leftnumber idstring checkstring status"open" | "appealed" | "resolved" | "closed" | "withdrawn" caseinteger suggestionobject findingobject or null decisionsarray of object remedyobject or null evidencearray of object respond_byinteger appeal_untilinteger or null
Errors Errors return {"error": {"code", "message", "field", "request_id"}} with a 4xx or 5xx status. See Errors .
curl -X POST https://thewavly.com/v1/disputes/chk_P1iENx01EDRJ/withdraw \
-H "Authorization: Bearer $WAVLY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"reason": "not_as_ordered"
}'import { Wavly } from "@thewavly/sdk";
const wavly = new Wavly(process.env.WAVLY_API_KEY);
const result = await wavly.request("POST", "/v1/disputes/chk_P1iENx01EDRJ/withdraw", {
"reason": "not_as_ordered"
});from thewavly import Wavly
wavly = Wavly(os.environ["WAVLY_API_KEY"])
result = wavly.request("POST", "/v1/disputes/chk_P1iENx01EDRJ/withdraw", {
"reason": "not_as_ordered"
})Response Copy
{
"id": "chk_P1iENx01EDRJ",
"check": "chk_P1iENx01EDRJ",
"status": "paid",
"finding": "merchant"
}
# Record a remedy step
POST /v1/disputes/{id}/remedySecret key · scope disputes:write
Parameters Name In Description id required path Dispute idpattern ^dsp_[\w-]{6,40}$ Idempotency-Keyheader Repeat a write safely: the same key and body return the first answer.
Request body Field Type Description status required "promised" | "initiated" | "settled" referencestring
Returns Field Type Description object"dispute" assigneeobject or null assignee.idstring assignee.emailstring or null assignee.namestring or null slaobject or null The next deadline while the dispute needs a decision sla.stage"first_finding" | "appeal_decision" sla.due_atinteger sla.overdueboolean sla.hours_leftnumber idstring checkstring status"open" | "appealed" | "resolved" | "closed" | "withdrawn" caseinteger suggestionobject findingobject or null decisionsarray of object remedyobject or null evidencearray of object respond_byinteger appeal_untilinteger or null
Errors Errors return {"error": {"code", "message", "field", "request_id"}} with a 4xx or 5xx status. See Errors .
curl -X POST https://thewavly.com/v1/disputes/chk_P1iENx01EDRJ/remedy \
-H "Authorization: Bearer $WAVLY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"status": "paid",
"reference": "FC-1001"
}'import { Wavly } from "@thewavly/sdk";
const wavly = new Wavly(process.env.WAVLY_API_KEY);
const result = await wavly.request("POST", "/v1/disputes/chk_P1iENx01EDRJ/remedy", {
"status": "paid",
"reference": "FC-1001"
});from thewavly import Wavly
wavly = Wavly(os.environ["WAVLY_API_KEY"])
result = wavly.request("POST", "/v1/disputes/chk_P1iENx01EDRJ/remedy", {
"status": "paid",
"reference": "FC-1001"
})Response Copy
{
"id": "chk_P1iENx01EDRJ",
"check": "chk_P1iENx01EDRJ",
"status": "paid",
"finding": "merchant"
}