How to adjudicate / settle a dispute in sandbox?

HTMHell
Contributor
Contributor

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.

Login to Me Too
2 REPLIES 2

polarising
Contributor
Contributor

I'm having the same problem, did you find a way to solve it?

Login to Me Too

HTMHell
Contributor
Contributor

Unfortunately, I didn't.

Login to Me Too

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.