# POST Validate cancelling an AI translation

Dry-run an AI translation cancel without stopping anything. The response on the failing path is exactly the `ai_translation_not_cancellable` problem the write would return, with the same `reason`. On a translation that would cancel, the response is a 200 `customiser_language_validation` confirmation. Nothing is written, no provider batch is touched, no idempotency key is consumed, and no activity is recorded. The verdict is advisory: nothing binds it to a later cancel, and a running translation can legitimately finish between the two calls. Requires the `customisers:write` scope, because it is the write dry-run twin. 401, 403, 404, 422, and 429 problems behave exactly as on the cancel operation.

- Source URL: https://www.signcustomiser.com/help/api/v3-post-validate-cancelling-an-ai-translation/
- Markdown URL: https://www.signcustomiser.com/help/api/v3-post-validate-cancelling-an-ai-translation.md
- Group: Customiser languages
- Method: POST
- Path: /api/v3/customisers/{customiser_id}/languages/{language_code}/validate-cancel-ai-translation
- Auth: Bearer token
- Required scopes: `customisers:write`

## Path parameters

- customiser_id (string, required): The customiser id, from the list customisers operation. Example: 1
- language_code (string, required): The language tag, from the list customiser languages operation. Example: fr

## cURL example

```bash
curl https://web.signcustomiser.com/api/v3/customisers/1/languages/fr/validate-cancel-ai-translation \
  --request POST \
  --header 'Accept: application/json' \
  --header 'Authorization: Bearer YOUR_API_TOKEN'
```

## Response examples

### 200 Cancel would apply

```json
{
  "data": {
    "object": "customiser_language_validation",
    "operation": "cancel",
    "customiser_id": 42,
    "language_code": "fr",
    "valid": true
  },
  "links": {
    "self": "https://web.signcustomiser.com/api/v3/customisers/42/languages/fr/validate-cancel-ai-translation",
    "documentation": "https://www.signcustomiser.com/help/api/"
  },
  "meta": {
    "api_version": "v3",
    "request_id": "req_01jz9x2k7c8f3m5n6p7q8r9s0t"
  }
}
```

### 403 Insufficient scope

```json
{
  "type": "https://www.signcustomiser.com/help/api/problems/insufficient_scope",
  "title": "Insufficient scope",
  "status": 403,
  "code": "insufficient_scope",
  "detail": "This operation requires the customisers:write scope, but the API key grants the following scopes: customisers:read. Create a key that includes the required scope in the merchant admin under Integrate → API Tokens.",
  "required_scopes": [
    "customisers:write"
  ],
  "granted_scopes": [
    "customisers:read"
  ],
  "request_id": "req_01jz9x2k7c8f3m5n6p7q8r9s0t"
}
```

### 422 Nothing to cancel

```json
{
  "type": "https://www.signcustomiser.com/help/api/problems/ai_translation_not_cancellable",
  "title": "AI translation not cancellable",
  "status": 422,
  "code": "ai_translation_not_cancellable",
  "detail": "This language has no AI translation to cancel. Only a queued or running translation can be cancelled; a finished one is already in its final state.",
  "reason": "no_translation",
  "request_id": "req_01jz9x2k7c8f3m5n6p7q8r9s0t"
}
```
