username:password
Authorization: Basic *****************
{
"subject": "<The subject of the email that is sent as a notification to the recipient.>",
"note": "<A note to the payer.>",
"send_to_invoicer": true,
"send_to_recipient": true,
"additional_recipients": [
"user_in_cc@example.com"
]
}
curl --location -g --request POST 'https://api-m.sandbox.paypal.com/v2/invoicing/invoices/{{invoice_id}}/cancel' \
--header 'PayPal-Request-Id: ' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic Og==' \
--data-raw '{
"subject": "<The subject of the email that is sent as a notification to the recipient.>",
"note": "<A note to the payer.>",
"send_to_invoicer": true,
"send_to_recipient": true,
"additional_recipients": [
"user_in_cc@example.com"
]
}'
{}