TheWavlyDocs
DocsAPI reference

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

NameInDescription
Idempotency-KeyheaderRepeat a write safely: the same key and body return the first answer.

Request body

FieldTypeDescription
check requiredstring
reason required"no_authority" | "limit_breached" | "wrong_purchase" | "not_as_ordered" | "duplicate_payment" | "price_changed" | "unclear_instruction"
description requiredstring
raised_by"customer" | "agent_operator" | "merchant" | "payment_participant" | "organisation"
independent_reviewbooleanAsk TheWavly's independent desk to review the case (a flat fee per live case)
amount_paiseintegerAmount in paise (₹1 = 100 paise)min 1
charged_amount_paiseintegerAmount in paise (₹1 = 100 paise)min 1
received_atinteger
evidencearray of object

Returns

FieldTypeDescription
object"dispute"
assigneeobject or null
assignee.idstring
assignee.emailstring or null
assignee.namestring or null
slaobject or nullThe 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
}'
Response
{
  "id": "chk_P1iENx01EDRJ",
  "check": "chk_P1iENx01EDRJ",
  "status": "paid",
  "finding": "merchant"
}

List disputes

GET/v1/disputesSecret key · scope disputes:read

Parameters

NameInDescription
limitquery
starting_afterqueryAn id from the previous page
statusqueryone of open, appealed, resolved, closed, withdrawn
checkquery
assigneequeryA member id, me (the signed-in member, in the dashboard) or none for unassigned
sortquerydue: the work queue, open and appealed disputes with the nearest deadline firstone of due
overduequeryOnly disputes past their deadlineone of true

Returns

FieldTypeDescription
object required"list"
data requiredarray of object
has_more requiredboolean

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"
Response
{
  "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

NameInDescription
daysquery

Returns

FieldTypeDescription
object"desk_stats"
window_daysinteger
slaobject
sla.first_finding_hoursinteger
sla.appeal_decision_hoursinteger
queueobjectopen, 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"
Response
{
  "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

NameInDescription
id requiredpathDispute idpattern ^dsp_[\w-]{6,40}$

Request body

FieldTypeDescription
party required"merchant" | "agent_operator" | "payment_participant"
name requiredstringup to 120 characters
emailstringTheWavly emails the link when email is on. The link is returned either way.
include_evidencebooleanAlso show the evidence other parties gave
expires_in_daysintegermin 1, max 30

Returns

FieldTypeDescription
object"dispute_party"
idstring
urlstringShown 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"
}'
Response
{
  "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

NameInDescription
id requiredpathDispute idpattern ^dsp_[\w-]{6,40}$

Returns

FieldTypeDescription
object required"list"
data requiredarray of object
has_more requiredboolean

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"
Response
{
  "object": "list",
  "data": [
    {}
  ],
  "has_more": true
}

Withdraw a party's link

POST/v1/disputes/{id}/parties/{party_id}/revokeSecret key · scope disputes:write

Parameters

NameInDescription
id requiredpathDispute idpattern ^dsp_[\w-]{6,40}$
party_id requiredpathpattern ^dpt_[\w-]{6,40}$

Returns

FieldTypeDescription
object required"list"
data requiredarray of object
has_more requiredboolean

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"
Response
{
  "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

NameInDescription
id requiredpathDispute idpattern ^dsp_[\w-]{6,40}$
Idempotency-KeyheaderRepeat a write safely: the same key and body return the first answer.

Request body

FieldTypeDescription
assignee requiredstring or nullA member's id or email, or null to unassign. An appeal cannot be assigned to anyone who decided the finding under appeal.

Returns

FieldTypeDescription
object"dispute"
assigneeobject or null
assignee.idstring
assignee.emailstring or null
assignee.namestring or null
slaobject or nullThe 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"
}'
Response
{
  "id": "chk_P1iENx01EDRJ",
  "check": "chk_P1iENx01EDRJ",
  "status": "paid",
  "finding": "merchant"
}

Retrieve a dispute

GET/v1/disputes/{id}Secret key · scope disputes:read

Parameters

NameInDescription
id requiredpathDispute idpattern ^dsp_[\w-]{6,40}$

Returns

FieldTypeDescription
object"dispute"
assigneeobject or null
assignee.idstring
assignee.emailstring or null
assignee.namestring or null
slaobject or nullThe 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"
Response
{
  "id": "chk_P1iENx01EDRJ",
  "check": "chk_P1iENx01EDRJ",
  "status": "paid",
  "finding": "merchant"
}

Add evidence

POST/v1/disputes/{id}/evidenceSecret key · scope disputes:write

Parameters

NameInDescription
id requiredpathDispute idpattern ^dsp_[\w-]{6,40}$
Idempotency-KeyheaderRepeat a write safely: the same key and body return the first answer.

Request body

FieldTypeDescription
kind"statement" | "order_confirmation" | "delivery_record" | "payment_record" | "quote" | "screenshot" | "other"
party"customer" | "agent_operator" | "merchant" | "payment_participant" | "organisation"
text requiredstringup to 4000 characters
urlstring

Returns

FieldTypeDescription
object"dispute"
assigneeobject or null
assignee.idstring
assignee.emailstring or null
assignee.namestring or null
slaobject or nullThe 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"
}'
Response
{
  "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

NameInDescription
id requiredpathDispute idpattern ^dsp_[\w-]{6,40}$
Idempotency-KeyheaderRepeat a write safely: the same key and body return the first answer.

Request body

FieldTypeDescription
reviewer requiredstringThe person deciding
finding required"agent_operator" | "merchant" | "payment_participant" | "shared" | "no_breach" | "insufficient_evidence" | "settled"
note requiredstring
handling_minutesintegerTime 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_paiseintegerAmount in paise (₹1 = 100 paise)min 1
remedy.funded_by"agent_operator" | "merchant" | "payment_participant" | "organisation"

Returns

FieldTypeDescription
object"dispute"
assigneeobject or null
assignee.idstring
assignee.emailstring or null
assignee.namestring or null
slaobject or nullThe 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."
}'
Response
{
  "id": "chk_P1iENx01EDRJ",
  "check": "chk_P1iENx01EDRJ",
  "status": "paid",
  "finding": "merchant"
}

Appeal within 14 days

POST/v1/disputes/{id}/appealSecret key · scope disputes:write

Parameters

NameInDescription
id requiredpathDispute idpattern ^dsp_[\w-]{6,40}$
Idempotency-KeyheaderRepeat a write safely: the same key and body return the first answer.

Request body

FieldTypeDescription
reason requiredstring
party"customer" | "agent_operator" | "merchant" | "payment_participant" | "organisation"
evidenceobject or array of object

Returns

FieldTypeDescription
object"dispute"
assigneeobject or null
assignee.idstring
assignee.emailstring or null
assignee.namestring or null
slaobject or nullThe 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"
}'
Response
{
  "id": "chk_P1iENx01EDRJ",
  "check": "chk_P1iENx01EDRJ",
  "status": "paid",
  "finding": "merchant"
}

Withdraw a dispute

POST/v1/disputes/{id}/withdrawSecret key · scope disputes:write

Parameters

NameInDescription
id requiredpathDispute idpattern ^dsp_[\w-]{6,40}$
Idempotency-KeyheaderRepeat a write safely: the same key and body return the first answer.

Request body

FieldTypeDescription
reasonstring

Returns

FieldTypeDescription
object"dispute"
assigneeobject or null
assignee.idstring
assignee.emailstring or null
assignee.namestring or null
slaobject or nullThe 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"
}'
Response
{
  "id": "chk_P1iENx01EDRJ",
  "check": "chk_P1iENx01EDRJ",
  "status": "paid",
  "finding": "merchant"
}

Record a remedy step

POST/v1/disputes/{id}/remedySecret key · scope disputes:write

Parameters

NameInDescription
id requiredpathDispute idpattern ^dsp_[\w-]{6,40}$
Idempotency-KeyheaderRepeat a write safely: the same key and body return the first answer.

Request body

FieldTypeDescription
status required"promised" | "initiated" | "settled"
referencestring

Returns

FieldTypeDescription
object"dispute"
assigneeobject or null
assignee.idstring
assignee.emailstring or null
assignee.namestring or null
slaobject or nullThe 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"
}'
Response
{
  "id": "chk_P1iENx01EDRJ",
  "check": "chk_P1iENx01EDRJ",
  "status": "paid",
  "finding": "merchant"
}