invoicing

Cancel Sent Invoice

  1. Call cancel sent invoice to cancel a sent invoice and include the invoice ID in the URI of the request.
  2. By default, canceling a sent invoice sends an email to the recipient. Set the send_to_recipient query parameter to false to suppress the notification.
  3. By default, if you omit the additional_recipients parameter, a notification is sent to all CC: email addresses that are part of the invoice.

This sample request cancels a sent invoice:

curl -v -X POST \
  https://api.sandbox.paypal.com/v2/invoicing/invoices/INV2-Z56S-5LLA-Q52L-CPZ5/cancel \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer Access-Token" \
  "body": {
           "subject": "Invoice Cancelled",
           "note": "Cancelling the invoice",
           "send_to_invoicer": true,
           "send_to_recipient": true,
           "additional_recipients": [
               "user@example.com"
           ]
       }
      }'

A successful request returns the HTTP 204 No Content status code with no JSON response body.

Next

Continue to Process Refund.

Feedback