Reference
Interface: RequestOptions
Interface: RequestOptions in @ticketlayer/backstage.
@ticketlayer/backstage / RequestOptions
Defined in: client.ts:812
Per-call options: the last argument of every generated method.
headersare sent on this call only, over the client's ownheaders. The credential headers the client sets itself (Authorization, andX-Ticketlayer-Orgor the session header when it has one) are set after them, so a per-call header does not replace them.idempotencyKeyis sent asIdempotency-Key. A write that honours it (its description says so) is then safe to retry with the same key: a double click or a network retry returns the first result instead of doing the work twice. Keep one key per intended write, and mint a new one when the request changes.signalaborts the request.
Example#
await client.ledger.createSettlement(input, { idempotencyKey: crypto.randomUUID() });Properties#
headers?#
optional headers: Record<string, string>;Defined in: client.ts:813
idempotencyKey?#
optional idempotencyKey: string;Defined in: client.ts:814
signal?#
optional signal: AbortSignal;Defined in: client.ts:815