HomeGuidesAPI Reference
HomeGuidesAPI Reference
  • Reference
    • Introduction
LogoLogo
ReferenceDisputes

GET
/v2/disputes/:dispute_id/accept
GET
/v2/disputes/:dispute_id/accept
1import requests
2
3url = "https://global-api-sandbox.afterpay.com/v2/disputes/dispute_id/accept"
4
5headers = {
6 "User-Agent": "User-Agent",
7 "Authorization": "Basic <username>:<password>"
8}
9
10response = requests.get(url, headers=headers)
11
12print(response.json())
Try it
1{
2 "id": "dp_N64jYg4RC4ZBUsXjLzE3W5",
3 "order": "123456789",
4 "amount": "48.46",
5 "reason": "product_not_received",
6 "status": "needs_response",
7 "open": true,
8 "responseDueBy": "1691884800",
9 "createdAt": "1691880800",
10 "openingNote": "Customer has no knowledge of the payment",
11 "closingReason": "merchant_accepted",
12 "merchantOrderId": "order54321",
13 "transactionDate": "1691882800",
14 "settlementAmount": "48.46",
15 "openingNoteAttachments": "[“fi_48vmw3sXdVqvtJGXbgKbAZ”]",
16 "updatedAt": "1691884000",
17 "closingNote": "Merchant accepted the dispute",
18 "meta": {
19 "transactionAmount": "48.46",
20 "orderType": "ONLINE",
21 "network": "Visa",
22 "networkReferenceId": "string"
23 }
24}
Was this page helpful?
Previous

Upload File

Next
Merchants can call this endpoint to accept a dispute case. The endpoint only works if the dispute is in a non-terminal state (the status is not `won` or `lost`). <Note>Calling the API changes the dispute status to lost.</Note>
Accept Dispute

Merchants can call this endpoint to accept a dispute case. The endpoint only works if the dispute is in a non-terminal state (the status is not won or lost).

Calling the API changes the dispute status to lost.