REFUNDED
. Otherwise, the invoice is marked as PARTIALLY REFUNDED
.username:password
Authorization: Basic *****************
{
"method": "BANK_TRANSFER",
"refund_date": "2021-02-07",
"amount": {
"currency_code": "USD",
"value": "5.00"
}
}
curl --location -g --request POST 'https://api-m.sandbox.paypal.com/v2/invoicing/invoices/{{invoice_id}}/refunds' \
--header 'PayPal-Request-Id: ' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic Og==' \
--data-raw '{
"method": "BANK_TRANSFER",
"refund_date": "2021-02-07",
"amount": {
"currency_code": "USD",
"value": "5.00"
}
}'
{
"refund_id": "EXTR-98B36987DN684241L"
}