Skip to main content
DELETE
/
v2
/
invoicing
/
invoices
/
{invoice_id}
Delete invoice
curl --request DELETE \
  --url https://api-m.sandbox.paypal.com/v2/invoicing/invoices/{invoice_id} \
  --header 'Authorization: Bearer <token>'
{
  "name": "INVALID_REQUEST",
  "message": "Request is not well-formed, syntactically incorrect, or violates schema.",
  "details": [
    {
      "issue": "<string>",
      "field": "<string>",
      "value": "<string>",
      "location": "body",
      "description": "<string>"
    }
  ],
  "debug_id": "<string>",
  "links": [
    {
      "href": "<string>",
      "rel": "<string>",
      "method": "GET"
    }
  ]
}

Authorizations

Authorization
string
header
required

Oauth 2.0 authentication

Path Parameters

invoice_id
string
required

The ID of the draft invoice to delete.

Maximum string length: 2147483647

Response

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