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.username:password
Authorization: Basic *****************
{
"note": "Offer refund with replacement item.",
"offer_amount": {
"currency_code": "USD",
"value": "23"
},
"offer_type": "REFUND_WITH_REPLACEMENT"
}
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"
}'
{
"links": [
{
"href": "https://api-m.sandbox.paypal.com/v1/customer/disputes/PP-R-BBU-10065666",
"rel": "detail",
"method": "GET"
}
]
}