---
updatedAt: 2025-02-13T18:38:44.000Z
agentTools:
  projectIndex: https://partners.hover.com/llms.txt
---

# Cancel a single Voucher

Cancelling a Voucher may be something you wish to do if your customer cancels their account with you and hasn't yet redeemed a Voucher that had been given to them previously.

Once cancelled, a voucher is immediately invalidated and can't be used. If the user attempts to use the Voucher after it is cancelled, they will see an error message that indicates that the Voucher they are attempting to use is not valid.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "vouchers-api-pte",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://www.ted.hover.com"
    }
  ],
  "security": [
    {}
  ],
  "paths": {
    "/api/vouchers/{id}/cancel": {
      "post": {
        "summary": "Cancel a single Voucher",
        "description": "",
        "operationId": "cancelling-a-voucher",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The unique ID or Voucher Code of a specific Voucher",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "access_token",
            "in": "query",
            "description": "The access token you generated with your OAuth credentials.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n    \"voucher\": {\n        \"id\": \"example05\",\n        \"connect_param_value\": null,\n        \"state\": \"cancelled\",\n        \"created_at\": \"2016-05-12T13:50:55Z\",\n        \"first_viewed_at\": null,\n        \"cancelled_at\": \"2016-05-13T14:02:50Z\",\n        \"expires_at\": \"2017-05-12T23:59:59Z\",\n        \"config\": \"standard\",\n        \"partner_price\": \"0.00\",\n        \"tlds\": \"com net org\",\n        \"hover_order_id\": null,\n        \"domain_name\": null,\n        \"redeemed_at\": null,\n        \"hover_username\": null\n    }\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "voucher": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "example": "example05"
                        },
                        "connect_param_value": {},
                        "state": {
                          "type": "string",
                          "example": "cancelled"
                        },
                        "created_at": {
                          "type": "string",
                          "example": "2016-05-12T13:50:55Z"
                        },
                        "first_viewed_at": {},
                        "cancelled_at": {
                          "type": "string",
                          "example": "2016-05-13T14:02:50Z"
                        },
                        "expires_at": {
                          "type": "string",
                          "example": "2017-05-12T23:59:59Z"
                        },
                        "config": {
                          "type": "string",
                          "example": "standard"
                        },
                        "partner_price": {
                          "type": "string",
                          "example": "0.00"
                        },
                        "tlds": {
                          "type": "string",
                          "example": "com net org"
                        },
                        "hover_order_id": {},
                        "domain_name": {},
                        "redeemed_at": {},
                        "hover_username": {}
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```