# TTLE_3007: TTLock API: lock out of range or duplicate passcode

- Module: TTLE. TTLock cloud API error codes (suffix = TTLock error number)
- Severity: Error
- Impact: Operators. Organisation staff should take a look. Customers are not affected.
- Retry: Manual. Safe for an operator to retry the action.
- Reference: https://docs.bizkithub.com/en/system-codes/TTLE_3007

## What happened

The TTLock API rejected the operation with code 3007. This means either the lock is out of the gateway's range or the requested passcode already exists on the lock.

## Likely causes

- The lock is out of the gateway's operating range.
- The same passcode already exists on the lock.

## How to resolve

1. Check the distance and signal between the lock and its gateway.
2. If the passcode already exists, create the reservation code again so a new code is generated.
3. Review the lock's passcodes in the TTLock app if the error repeats.

## Related codes

- TTL_002: Unable to generate a unique passcode
- TTLE_2012: TTLock API: device not connected to a gateway
- TTLE_1: TTLock API: operation failed (code 1)
- TTLE_10004: TTLock API: request rejected (code 10004)
- TTLE_UNKNOWN: TTLock API: unknown error
- TTLE_3002: TTLock API: gateway offline
