- Authorization
- Orders
- Payments
- Invoices
- Subscriptions
- Payouts
- Webhooks
- Shipment Tracking
- Transaction Search
- Disputes
- List disputesGET
- Show dispute detailsGET
- Accept claimPOST
- Appeal disputePOST
- Settle disputePOST
- Update dispute statusPOST
- Make offer to resolve disputePOST
- Provide evidencePOST
- Acknowledge returned itemPOST
- Provide supporting information for disputePOST
- Escalate dispute to claimPOST
- Accept offer to resolve disputePOST
- Send message about dispute to other partyPOST
- Deny offer to resolve disputePOST
- Partially update disputePATCH
- Onboarding (Limited Release)
Settle dispute
POST
/v1/customer/disputes/{dispute_id}/adjudicate
Important: This method is for sandbox use only.Settles a dispute in either the customer's or merchant's favor. Merchants can make this call in the sandbox to complete end-to-end dispute resolution testing, which mimics the dispute resolution that PayPal agents normally complete. To make this call, the dispute
status
must be UNDER_REVIEW
.请求参数
Authorization
在 Header 添加参数
Authorization
,其值为在 Basic 之后拼接空格,以及经过 Base64 编码的 username:password
示例:
Authorization: Basic *****************
Path 参数
dispute_id
string
必需
示例值:
{{dispute_id}}
Body 参数application/json
adjudication_outcome
string
必需
示例
{
"adjudication_outcome": "BUYER_FAVOR"
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location -g --request POST 'https://api-m.sandbox.paypal.com/v1/customer/disputes/{{dispute_id}}/adjudicate' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic Og==' \
--data-raw '{
"adjudication_outcome": "BUYER_FAVOR"
}'
返回响应
🟠400400 Bad Request - Action Not Allowed In Current Dispute State
application/json
Body
name
string
必需
message
string
必需
debug_id
string
必需
information_link
string
必需
details
array [object {1}]
必需
issue
string
可选
links
array
必需
示例
{
"name": "INVALID_REQUEST",
"message": "Request is not well-formed, syntactically incorrect, or violates schema.",
"debug_id": "c263f914bc757",
"information_link": "https://developer.paypal.com/docs/api/customer-disputes/v1/#errors",
"details": [
{
"issue": "ACTION_NOT_ALLOWED_IN_CURRENT_DISPUTE_STATE"
}
],
"links": []
}
🟠401401 Unauthorized - Invalid Token
🟠403403 Forbidden - Insufficient Permissions
🟠404404 Not Found - Dispute Not Found