RequestOptions
Options of one call: the last argument of every method.
interface RequestOptionsProperties
Section titled “Properties”idempotencyKeystring | undefinedOptionalIdempotency-Key for this POST (default: a random UUID, reused across this call's retries).
timeoutMsnumber | undefinedOptionalOverrides the client's timeout for this call.
maxRetriesnumber | undefinedOptionalOverrides the client's maxRetries for this call.
apiVersionstring | undefinedOptionalOverrides the client's TYS-Version for this call.
headersRecord<string, string> | undefinedOptionalExtra request headers.
signalAbortSignal | undefinedOptionalAborts the call (not retried).
Example
Section titled “Example”await tys.orders.create(order, { idempotencyKey: `order-${order.id}`, timeoutMs: 10_000 });tys.orders.create(order, idempotency_key=f"order-{order['id']}")See also
Section titled “See also”Was this page helpful?
Thank you. We read every answer.