username:password
Authorization: Basic *****************
curl --location -g --request POST 'https://api-m.sandbox.paypal.com/v2/payments/authorizations/{{authorization_id}}/void' \
--header 'PayPal-Request-Id: ' \
--header 'Prefer: ' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic Og=='
{
"id": "05M640842N714833V",
"status": "VOIDED",
"amount": {
"currency_code": "USD",
"value": "100.00"
},
"seller_protection": {
"status": "NOT_ELIGIBLE"
},
"expiration_time": "2022-03-09T15:49:55-08:00",
"create_time": "2022-02-07T15:49:55-08:00",
"update_time": "2022-02-07T15:50:32-08:00",
"links": [
{
"href": "https://api.sandbox.paypal.com/v2/payments/authorizations/05M640842N714833V",
"rel": "self",
"method": "GET"
}
]
}