--- title: "Cancel voucher code" source_url: https://dev.digicert.com/certcentral-apis/services-api/vouchers/cancel-voucher-code.html api_method: PUT api_endpoint: "/services/v2/voucher/{id}/cancel" api_url: "https://www.digicert.com/services/v2/voucher/{id}/cancel" --- **PUT** `https://www.digicert.com/services/v2/voucher/{id}/cancel` Use this endpoint to cancel a voucher order. Use [List all voucher orders](https://dev.digicert.com/md/certcentral-apis/services-api/vouchers/list-all-voucher-orders.md) to get the ID for your voucher order. See Cancel Vouchers for the complete list of conditions. ## Example requests and responses ## cURL ```bash curl -X PUT \ 'https://www.digicert.com/services/v2/voucher/{id}/cancel' \ -H 'Content-Type: application/json' \ -H 'X-DC-DEVKEY: {{api_key}}' ``` ## 204 No Content ```json // empty ```