Cancel invoice
documentedCancel an invoice.
POST /v1/invoicing/invoices/{invoice_id}/cancelInvoicingno implementation yet0 runsNo implementation yet. Run it to have the agent write one, or open a pull request with your own.
Seed example (keychains curl)
npx -y keychains@latest curl "https://api-m.paypal.com/v2/invoicing/invoices/{{$invoice_id}}/cancel" \
-X POST \
-H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"subject": "{{$subject}}", "note": "{{$note}}", "send_to_invoicer": {{$send_to_invoicer}}, "send_to_recipient": {{$send_to_recipient}}, "additional_recipients": ["{{$additional_recipient_email}}"]}'