# RequestOptions

> Options of one call: the last argument of every method.

Source: https://docs.tryyoursize.com/reference/node/request-options/

*Type* · `@tryyoursize/node`

Options of one call: the last argument of every method.

```ts
interface RequestOptions
```

## Properties

- **`idempotencyKey`** (`string | undefined`, optional): Idempotency-Key for this POST (default: a random UUID, reused across this call's retries).
- **`timeoutMs`** (`number | undefined`, optional): Overrides the client's timeout for this call.
- **`maxRetries`** (`number | undefined`, optional): Overrides the client's maxRetries for this call.
- **`apiVersion`** (`string | undefined`, optional): Overrides the client's TYS-Version for this call.
- **`headers`** (`Record<string, string> | undefined`, optional): Extra request headers.
- **`signal`** (`AbortSignal | undefined`, optional): Aborts the call (not retried).

## Example

**Node.js**

```ts
await tys.orders.create(order, { idempotencyKey: `order-${order.id}`, timeoutMs: 10_000 });
```

**Python**

```python
tys.orders.create(order, idempotency_key=f"order-{order['id']}")
```

## See also

- [Idempotency and retries](https://docs.tryyoursize.com/guides/idempotency.md)
