cURL
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" } ] }
Deletes a template, by ID.
Oauth 2.0 authentication
The ID of the template to delete.
2147483647
A successful request returns the HTTP 204 No Content status code with no JSON response body.
204 No Content
Was this page helpful?