---
title: "Simulate that the Next Credential Encoding Will Fail"
method: POST
path: "/acs/encoders/simulate/next_credential_encode_will_fail"
tags: ["/acs"]
---

# Simulate that the Next Credential Encoding Will Fail

`POST /acs/encoders/simulate/next_credential_encode_will_fail`

Simulates that the next attempt to encode a [credential](/low-level-apis/access-systems/managing-credentials) using the specified [encoder](/low-level-apis/access-systems/working-with-card-encoders-and-scanners) will fail. You can only perform this action within a [sandbox workspace](/core-concepts/workspaces#sandbox-workspaces).

## Request body

- union
  - object
    - `acs_encoder_id` string, uuid, required — ID of the `acs_encoder` that will be used in the next request to encode the `acs_credential`.
    - `error_code` 'no_credential_on_encoder' | 'encoding_interrupted' — Code of the error to simulate.
  - object
    - `acs_credential_id` string, uuid — ID of the `acs_credential` that will fail to be encoded onto a card in the next request.
    - `acs_encoder_id` string, uuid, required — ID of the `acs_encoder` that will be used in the next request to encode the `acs_credential`.
    - `error_code` 'uncategorized_error' | 'action_attempt_expired', required — Code of the error to simulate.

## Response `200`

OK

- object

## Other responses

- `400` — Bad Request
- `401` — Unauthorized

---

[API](https://skmtc.net/seam/apis/seam-connect.md) · [All operations](https://skmtc.net/seam/apis/seam-connect/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/seam/seam-connect/versions/00c35395ce12/schema)
