Skip to main content
DELETE
/
vouchers
/
{id}
Delete a voucher
curl --request DELETE \
  --url https://vouchers.api.jtl-software.com/v1/vouchers/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "comment": "deleted reason comment"
}
'
"No Content"

Authorizations

Authorization
string
header
required

This API uses OAuth 2 with Client Credentials Flow (see: https://www.oauth.com/oauth2-servers/access-tokens/client-credentials).

You can request only a subset of specific scopes for your client, however the available scopes for each client are defined through the client groups in the UI.

Within your token request, you can also send the optional parameter client_type (string with a max length of 32 chars). This value is only used for internal statistics.

Path Parameters

id
string
required

Body

application/json

Voucher create request body

comment
string
required

comment (must be set when the voucher gets deleted)

Maximum string length: 255
Example:

"deleted reason comment"

Response

The server successfully processed the request and is not returning any content.

The response is of type string.

Example:

"No Content"