In summary, the route is designed to handle POST requests to accept integration with apps, and the AppsPayload type outlines the expected structure of the payload for subsequent requests related to app integration, particularly for created or updated orders.
Headers: 'Content-Type': 'application/json'

      
// Body Structure
export type AppsPayload = {
    appId: string;
    payload: {
      companyId: string;
      branchId: string;
      branchName: string;
      customerPhone: string;
      customerName: string;
      orderId: string;
      orderDate: string;
      orderMethod: "takeaway" | "pickup" | "dinein" | "delivery";
      orderItems: {
        itemId: string;
        itemName: string;
        itemQuantity: string;
        itemPrice: string;
      }[];
      orderTotalPrice: string;
      clubMemberId?: string;
    };
};