- 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)
Make offer to resolve dispute
POST
/v1/customer/disputes/{dispute_id}/make-offer
INQUIRY
. If the customer accepts the offer, PayPal automatically makes a refund. Allowed offer_type values for the request is available in dispute details allowed response options object.请求参数
Authorization
在 Header 添加参数
Authorization
,其值为在 Basic 之后拼接空格,以及经过 Base64 编码的 username:password
示例:
Authorization: Basic *****************
Path 参数
dispute_id
string
必需
示例值:
{{dispute_id}}
Body 参数application/json
note
string
必需
offer_amount
object
必需
currency_code
string
必需
value
string
必需
offer_type
string
必需
示例
{
"note": "Offer refund with replacement item.",
"offer_amount": {
"currency_code": "USD",
"value": "23"
},
"offer_type": "REFUND_WITH_REPLACEMENT"
}
示例代码
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}}/make-offer' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic Og==' \
--data-raw '{
"note": "Offer refund with replacement item.",
"offer_amount": {
"currency_code": "USD",
"value": "23"
},
"offer_type": "REFUND_WITH_REPLACEMENT"
}'
返回响应
🟢200200 - Make Offer To Resolve Dispute
application/json
Body
links
array [object {3}]
必需
href
string
可选
rel
string
可选
method
string
可选
示例
{
"links": [
{
"href": "https://api-m.sandbox.paypal.com/v1/customer/disputes/PP-R-BBU-10065666",
"rel": "detail",
"method": "GET"
}
]
}
🟠401401 Unauthorized - Invalid Token
🟠403403 Forbidden - Insufficient Permissions
🟠404404 Not Found - Dispute Not Found
🟠422422 Unprocessable Entity - Action Not Allowed In Current Dispute State
修改于 2023-08-16 07:18:59