---
url: >-
  https://game-engine-io.github.io/enginex-frontend-sdk/reference/api/@getenginex/sdk/query/interfaces/EnginexMutationFactoryOptions.md
---
[Reference](../../../../index.md) / [@getenginex/sdk/query](../index.md) / EnginexMutationFactoryOptions

# EnginexMutationFactoryOptions

Options accepted by the mutation factories of idempotent methods (those that send
`Idempotency-Key`, like `deposits.createPix`).

## Properties

### idempotencyKey?

> `optional` **idempotencyKey?**: `string`

Idempotency key used on every call of this mutation, to repeat the operation after an
error, in another `mutate()`, without duplicating it. Without it, the attempt's key is reused only after
an ambiguous failure (network, timeout, 5xx, `KEY_IN_USE` or `VALIDATION_ERROR` after a 2xx) with the
same input (by content); success, other 4xx and cancellation discard it. Use one value per operation (generated when the player confirms, e.g.
`crypto.randomUUID()`), never a fixed value for the screen: with the same key, the gateway returns the
result (or the error) of the first operation.
