ETASCOM CRM V3 - Documentation API
    Preparing search index...
    • POST(
          request: NextRequest,
      ): Promise<
          | NextResponse<{ error: string }>
          | NextResponse<
              {
                  success: boolean;
                  message: string;
                  printData: {
                      labels: {
                          id: string;
                          barcode: string;
                          qrCode: string
                          | null;
                          labelType: string;
                          format: "21x7.4" | "7.4x7.4";
                          lotNumber: string;
                          batchNumber: string | null;
                          productName: string;
                          productCode: string;
                          expiryDate: Date | null;
                          productionDate: Date | null;
                          quantity: number;
                          unit: string;
                          category: string;
                      }[];
                      printerSettings: {
                          copies: number;
                          orientation: "portrait"
                          | "landscape";
                      };
                      format: "21x7.4"
                      | "7.4x7.4";
                      printedAt: Date;
                      printedBy: string;
                  };
                  downloadUrl: string;
              },
          >,
      >

      Parameters

      • request: NextRequest

      Returns Promise<
          | NextResponse<{ error: string }>
          | NextResponse<
              {
                  success: boolean;
                  message: string;
                  printData: {
                      labels: {
                          id: string;
                          barcode: string;
                          qrCode: string
                          | null;
                          labelType: string;
                          format: "21x7.4" | "7.4x7.4";
                          lotNumber: string;
                          batchNumber: string | null;
                          productName: string;
                          productCode: string;
                          expiryDate: Date | null;
                          productionDate: Date | null;
                          quantity: number;
                          unit: string;
                          category: string;
                      }[];
                      printerSettings: {
                          copies: number;
                          orientation: "portrait"
                          | "landscape";
                      };
                      format: "21x7.4"
                      | "7.4x7.4";
                      printedAt: Date;
                      printedBy: string;
                  };
                  downloadUrl: string;
              },
          >,
      >