Skip to content
Docs
Reference

Interface: BackstageAPIErrorDetails

Interface: BackstageAPIErrorDetails in @ticketlayer/backstage.

@ticketlayer/backstage


@ticketlayer/backstage / BackstageAPIErrorDetails

Defined in: client.ts:659

What a refusal said beside its message and code: every other field of the JSend error envelope's error, with the fields of error.details (when the API nests them there) merged over them. The seat refusals are typed; any other code's fields are carried as they came.

Indexable#

[field: string]: unknown

Properties#

alternatives?#

optional alternatives: number[][];

Defined in: client.ts:663

409 SEAT_UNAVAILABLE: same-size blocks of seats (by index) that can, best first.


held?#

optional held: number;

Defined in: client.ts:673

422 SEAT_LIMIT: the seats this cart already holds for the occurrence.


maxTickets?#

optional maxTickets: number;

Defined in: client.ts:671

422 SEAT_LIMIT: the channel's most seats per cart per occurrence.


planVersion?#

optional planVersion: string;

Defined in: client.ts:669

409 PLAN_VERSION_CHANGED: the publish key (pv) of the seat map the occurrence sells from now.


retryAfter?#

optional retryAfter: number;

Defined in: client.ts:675

429: seconds to wait before trying again.


strands?#

optional strands: number[];

Defined in: client.ts:665

409 SINGLE_SEAT_GAP: the seats (by index) the request would leave stranded.


suggestion?#

optional suggestion: number[];

Defined in: client.ts:667

409 SINGLE_SEAT_GAP: the nearest same-size choice that strands none.


unavailable?#

optional unavailable: number[];

Defined in: client.ts:661

409 SEAT_UNAVAILABLE: the seats (by index) that cannot be had.


validationErrors?#

optional validationErrors: {
  code?: string;
  message: string;
  path: string;
}[];

Defined in: client.ts:677

400 VALIDATION_ERROR: each field the request got wrong.

code?#

optional code: string;

message#

message: string;

path#

path: string;