- 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)
Accept offer to resolve dispute
POST
/v1/customer/disputes/{dispute_id}/accept-offer
请求参数
Authorization
在 Header 添加参数
Authorization
,其值为在 Basic 之后拼接空格,以及经过 Base64 编码的 username:password
示例:
Authorization: Basic *****************
Path 参数
dispute_id
string
必需
示例值:
{{dispute_id}}
Body 参数application/json
note
string
必需
示例
{
"note": "I am ok with the refund offered."
}
示例代码
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}}/accept-offer' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic Og==' \
--data-raw '{
"note": "I am ok with the refund offered."
}'
返回响应
🟠401401 Unauthorized - Invalid Token
application/json
Body
error
string
必需
error_description
string
必需
示例
{
"error": "invalid_token",
"error_description": "Token signature verification failed"
}
🟠403403 Forbidden - Insufficient Permissions
🟠404404 Not Found - Dispute Not Found
修改于 2023-08-16 07:18:59