How to adjudicate / settle a dispute in sandbox?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I've created a dispute in the sandbox account. Unfortunately, when I close the dispute through the sandbox account, (for example: I mark it as resolved in the client sandbox account) I don't get any webhook that notifies about it. (all webhooks are checked)
So I've figured I might have to do it via an API request.
So I try to send the following request:
curl -v -X POST https://api.sandbox.paypal.com/v1/customer/disputes/PP-D-123/adjudicate \
-H "Content-Type: application/json" \
-H "Authorization: Bearer 123" \
-d '{
"adjudication_outcome": "BUYER_FAVOR"
}'
With the correct id & token of course.
The error response I get is: ACTION_NOT_ALLOWED_IN_CURRENT_DISPUTE_STATE.
Full response:
{
"name": "VALIDATION_ERROR",
"message": "Invalid request - see details",
"debug_id": "bf9b51888a37",
"information_link": "https://developer.paypal.com/docs/api/customer-disputes/#errors",
"details": [
{
"issue": "ACTION_NOT_ALLOWED_IN_CURRENT_DISPUTE_STATE"
}
],
"links": []
}
In the API docs, it says "To make this call, the dispute status must be UNDER_REVIEW."
So I sent the following request:
curl -v -X GET https://api.sandbox.paypal.com/v1/customer/disputes/PP-D-123 \
-H "Content-Type: application/json" \
-H "Authorization: Bearer 123"
And received the following response:
{
"dispute_id": "PP-D-...",
"create_time": "2020-06-15T16:51:20.000Z",
"update_time": "2020-06-15T16:57:46.000Z",
"disputed_transactions": [
...
],
"reason": "MERCHANDISE_OR_SERVICE_NOT_RECEIVED",
"status": "UNDER_REVIEW",
...
}
As you can see, the status is UNDER_REVIEW.
What am I missing?
thanks.
- Labels:
-
Payments REST APIs
-
Webhooks REST APIs
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
- Error 403 on endpoint GET v1/customer/disputes/:dispute_id in REST APIs
- Using the PayPal Show Dispute Details API responses are missing a reason from adjudications. in REST APIs
- Disputes Webhook does not works on Sandbox (23/04/24) in Sandbox Environment
- Unable to download dispute related attachment via Rest Api in REST APIs
- Creating a dispute in Sandbox environment in Sandbox Environment