Application Load

ICustomerTicketsRequest

The physical TypeScript declaration from the Nuxt starter, with linked types and field comments.

ICustomerTicketsRequest

Use filters for selection and paginate for pages. Empty filters list all tickets belonging to the user’s account.

src/lib/interfaces/orionplace/tickets/ICustomerTicketApi.ts
TypeScript
export interface ICustomerTicketsRequest {
  // Selection criteria.
  filters?: {
    // The user’s ticket ID. An ID filter also includes the ticket’s replies
    // and, if a refund exists, its related order.
    id?: number;
    // Limits the list to one kind of conversation: general, seller, order item
    // or paid subscription.
    ticket_type?: ECustomerTicketType;
    // Open or closed tickets.
    ticket_status?: ECustomerTicketStatus;
    // The recorded decision. This filter does not approve or reject a refund.
    problem_solution?: ECustomerTicketSolution;
    // Customer subscription ID from `subscriptions_get`.
    related_paid_subscription?: number;
    // True: tickets with unread support replies; false: tickets without them.
    // Omitted: both.
    has_unread_to_user?: boolean;
    // True: tickets with customer messages not yet read by support; false:
    // without them. Omitted: both.
    has_unread_to_management?: boolean;
  };
  // Pagination controls.
  paginate?: IApiPaginationRequest;
}