---
title: "Simulate that the Next Credential Scan Will Succeed"
method: POST
path: "/acs/encoders/simulate/next_credential_scan_will_succeed"
tags: ["/acs"]
---

# Simulate that the Next Credential Scan Will Succeed

`POST /acs/encoders/simulate/next_credential_scan_will_succeed`

## Request

- Base URL: `https://connect.getseam.com`
- URL: `https://connect.getseam.com/acs/encoders/simulate/next_credential_scan_will_succeed`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer
  - HTTP bearer
- TypeScript: <https://skmtc.dev/seam/apis/seam-connect/docs/acs/encoders/simulate/next_credential_scan_will_succeed/post.ts> (a function with typed inputs; its response is checked against the schema)

Simulates that the next attempt to scan 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 succeed. You can only perform this action within a [sandbox workspace](/core-concepts/workspaces#sandbox-workspaces).

## Request body

- union
  - object
    - `acs_credential_id_on_seam` string, uuid: ID of the Seam `acs_credential` that matches the `acs_credential` on the encoder in this simulation.
    - `acs_encoder_id` string, uuid, required: ID of the `acs_encoder` that will be used in the next request to scan the `acs_credential`.
    - `scenario` 'credential_exists_on_seam' | 'credential_on_encoder_needs_update': Scenario to simulate.
  - object
    - `acs_encoder_id` string, uuid, required: ID of the `acs_encoder` that will be used in the next request to scan the `acs_credential`.
    - `scenario` 'credential_does_not_exist_on_seam', required: Scenario to simulate.
  - object
    - `acs_encoder_id` string, uuid, required: ID of the `acs_encoder` that will be used in the next request to scan the `acs_credential`.
    - `scenario` 'credential_on_encoder_is_empty', required: Scenario to simulate.

## Response `200`

OK

- object

## Other responses

- `400`: Bad Request
- `401`: Unauthorized

---

[API](https://skmtc.dev/seam/apis/seam-connect.md) - [All operations](https://skmtc.dev/seam/apis/seam-connect/llms.txt) - [OpenAPI document](https://skmtc.dev/seam/apis/seam-connect/revisions/00c35395ce12?raw)
