- 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 claim
POST
/v1/customer/disputes/{dispute_id}/accept-claim
请求参数
Authorization
在 Header 添加参数
Authorization
,其值为在 Basic 之后拼接空格,以及经过 Base64 编码的 username:password
示例:
Authorization: Basic *****************
Path 参数
dispute_id
string
必需
示例值:
{{dispute_id}}
Header 参数
PayPal-Request-Id
string
必需
示例值:
{{$guid}}
Body 参数text/plain
示例
示例值:{
"note": "Full refund to the customer.",
"accept_claim_reason": "DID_NOT_SHIP_ITEM",
"accept_claim_type": "REFUND"
}
示例代码
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-claim' \
--header 'PayPal-Request-Id: ' \
--header 'Content-Type: text/plain' \
--header 'Authorization: Basic Og==' \
--data-raw '{
"note": "Full refund to the customer.",
"accept_claim_reason": "DID_NOT_SHIP_ITEM",
"accept_claim_type": "REFUND"
}'
返回响应
🟢200200 - Accept Claim With Typical Request
application/json
Body
links
array [object {3}]
必需
href
string
可选
rel
string
可选
method
string
可选
示例
{
"links": [
{
"href": "https://api.sandbox.paypal.com/v1/customer/disputes/PP-D-61889",
"rel": "detail",
"method": "GET"
}
]
}
🟢200200 - Accept Claim With Minimal Request
🟠400400 Bad Request - Either Of Notes Or Document Is Mandatory
🟠401401 Unauthorized - Invalid Token
🟠404404 Not Found - Dispute Not Found
🟠422422 Unprocessable Entity - Action Not Allowed In Current Dispute State
🟠403403 Forbidden - Insufficient Permissions
修改于 2023-08-16 07:18:59