Skip to main content
DELETE
/
v2
/
invoicing
/
templates
/
{template_id}
Delete template
curl --request DELETE \
  --url https://api-m.sandbox.paypal.com/v2/invoicing/templates/{template_id} \
  --header 'Authorization: Bearer <token>'
{
  "name": "NOT_AUTHORIZED",
  "message": "Authorization failed due to insufficient permissions.",
  "details": [
    {
      "issue": "PERMISSION_DENIED",
      "field": "<string>",
      "value": "<string>",
      "location": "body",
      "description": "The requested template is not associated with the requested user."
    }
  ],
  "debug_id": "<string>",
  "links": [
    {
      "href": "<string>",
      "rel": "<string>",
      "method": "GET"
    }
  ]
}

Authorizations

Authorization
string
header
required

Oauth 2.0 authentication

Path Parameters

template_id
string
required

The ID of the template to delete.

Maximum string length: 2147483647

Response

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