Accept dispute
POST
/v2/disputes/{dispute_id}/accept
Accepts the loss on a dispute.
Square returns the disputed amount to the cardholder and updates the dispute state to ACCEPTED.
Square debits the disputed amount from the seller’s Square account. If the Square account does not have sufficient funds, Square debits the associated bank account.
Name | Description |
---|---|
dispute_
Required
|
The ID of the dispute you want to accept. |
Response Fields
Name | Description |
---|---|
errors
|
Information about errors encountered during the request. |
dispute
|
Details about the accepted dispute. |
Examples
POST
/v2/disputes/{dispute_id}/accept
cURL
- cURL
- Ruby
- Python
- C#
- Java
- PHP
- Node.js
curl https://connect.squareup.com/v2/disputes/XDgyFu7yo1E2S5lQGGpYn/accept \
-X POST \
-H 'Square-Version: 2022-06-16' \
-H 'Authorization: Bearer ACCESS_TOKEN' \
-H 'Content-Type: application/json'
Response JSON
{
"dispute": {
"id": "XDgyFu7yo1E2S5lQGGpYn",
"amount_money": {
"amount": 2000,
"currency": "USD"
},
"reason": "NO_KNOWLEDGE",
"state": "LOST",
"due_at": "2018-11-01T00:00:00.000Z",
"disputed_payments": [
{
"payment_id": "6Ee10wvqhfipStz297mtUhBXvaB"
}
],
"card_brand": "VISA",
"created_at": "2018-10-18T15:59:13.613Z",
"updated_at": "2018-10-18T15:59:13.613Z",
"brand_dispute_id": "100000282394"
}
}