> For the complete documentation index, see [llms.txt](https://docs.moderncollections.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.moderncollections.io/rest-api-explorer/disputes.md).

# Disputes

Open, review, and resolve disputes. Outreach is automatically paused while a dispute is open.

## Open a dispute

> Open a dispute on behalf of a debtor. Outreach on the placement pauses immediately. The dispute window defaults to 30 days.<br>

```json
{"openapi":"3.1.0","info":{"title":"Modern Collections API","version":"1.0.0"},"tags":[{"name":"disputes","description":"Open, review, and resolve disputes. Outreach is automatically paused while a dispute is open."}],"servers":[{"url":"https://api.moderncollections.io/v1","description":"Production"},{"url":"https://sandbox.api.moderncollections.io/v1","description":"Sandbox"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","description":"Pass your API key as a Bearer token in the `Authorization` header."}},"schemas":{"NewDispute":{"type":"object","required":["placement_id","reason"],"properties":{"placement_id":{"type":"string","format":"uuid"},"reason":{"type":"string","enum":["goods_not_received","services_not_rendered","billing_error","bankruptcy","identity_theft","paid_already","other"]},"description":{"type":"string"},"evidence_urls":{"type":"array","items":{"type":"string","format":"uri"}}}},"Dispute":{"type":"object","properties":{"dispute_id":{"type":"string","format":"uuid"},"placement_id":{"type":"string","format":"uuid"},"reason":{"type":"string"},"description":{"type":"string"},"status":{"type":"string","enum":["open","resolved"]},"resolution":{"type":"string","enum":["accepted_by_creditor","rejected","withdrawn"],"nullable":true},"opened_at":{"type":"string","format":"date-time"},"resolved_at":{"type":"string","format":"date-time","nullable":true}}},"ErrorEnvelope":{"type":"object","properties":{"error":{"$ref":"#/components/schemas/Error"}}},"Error":{"type":"object","required":["code","category","message"],"properties":{"code":{"type":"string"},"category":{"type":"string","enum":["invalid_request","authentication","authorization","not_found","conflict","compliance_refusal","rate_limit","server_error"]},"message":{"type":"string"},"request_id":{"type":"string"}}}},"responses":{"BadRequest":{"description":"The request was malformed or failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"Unauthorized":{"description":"Missing or invalid API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"paths":{"/disputes":{"post":{"summary":"Open a dispute","description":"Open a dispute on behalf of a debtor. Outreach on the placement pauses immediately. The dispute window defaults to 30 days.\n","tags":["disputes"],"operationId":"openDispute","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewDispute"}}}},"responses":{"201":{"description":"Dispute opened.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Dispute"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"}}}}}}
```

## Resolve a dispute

> Resolve an open dispute. Setting \`resolution\` to \`accepted\_by\_creditor\` moves the placement to \`closed\_uncollected\`. Setting it to \`rejected\` returns the placement to \`in\_outreach\`.<br>

```json
{"openapi":"3.1.0","info":{"title":"Modern Collections API","version":"1.0.0"},"tags":[{"name":"disputes","description":"Open, review, and resolve disputes. Outreach is automatically paused while a dispute is open."}],"servers":[{"url":"https://api.moderncollections.io/v1","description":"Production"},{"url":"https://sandbox.api.moderncollections.io/v1","description":"Sandbox"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","description":"Pass your API key as a Bearer token in the `Authorization` header."}},"schemas":{"Dispute":{"type":"object","properties":{"dispute_id":{"type":"string","format":"uuid"},"placement_id":{"type":"string","format":"uuid"},"reason":{"type":"string"},"description":{"type":"string"},"status":{"type":"string","enum":["open","resolved"]},"resolution":{"type":"string","enum":["accepted_by_creditor","rejected","withdrawn"],"nullable":true},"opened_at":{"type":"string","format":"date-time"},"resolved_at":{"type":"string","format":"date-time","nullable":true}}},"ErrorEnvelope":{"type":"object","properties":{"error":{"$ref":"#/components/schemas/Error"}}},"Error":{"type":"object","required":["code","category","message"],"properties":{"code":{"type":"string"},"category":{"type":"string","enum":["invalid_request","authentication","authorization","not_found","conflict","compliance_refusal","rate_limit","server_error"]},"message":{"type":"string"},"request_id":{"type":"string"}}}},"responses":{"BadRequest":{"description":"The request was malformed or failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"Unauthorized":{"description":"Missing or invalid API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"NotFound":{"description":"The requested resource could not be found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"paths":{"/disputes/{dispute_id}":{"patch":{"summary":"Resolve a dispute","description":"Resolve an open dispute. Setting `resolution` to `accepted_by_creditor` moves the placement to `closed_uncollected`. Setting it to `rejected` returns the placement to `in_outreach`.\n","tags":["disputes"],"operationId":"resolveDispute","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["resolution"],"properties":{"resolution":{"type":"string","enum":["accepted_by_creditor","rejected","withdrawn"]},"notes":{"type":"string"}}}}}},"responses":{"200":{"description":"Dispute resolved.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Dispute"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"}}}}}}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.moderncollections.io/rest-api-explorer/disputes.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
