ETASCOM CRM V3 - Documentation API
    Preparing search index...
    • POST(
          request: NextRequest,
      ): Promise<
          | NextResponse<{ success: boolean; error: string }>
          | NextResponse<
              {
                  success: boolean;
                  message: string;
                  label: {
                      id: string;
                      code: string;
                      type: string;
                      quantity: number;
                      unit: string
                      | null;
                      lotNumber: string | null;
                      position: string | null;
                      createdAt: Date;
                  };
                  stockLot: | {
                      id: string;
                      lotNumber: string;
                      quantity: number;
                      unit: string;
                  }
                  | null;
                  product: { type: string; id: string; code: string; name: string }
                  | null;
              },
          >,
      >

      POST /api/tablet/labels

      Créer une nouvelle étiquette (pour tablette)

      • Peut être liée à un StockLot existant
      • Ou créer un nouveau lot

      Parameters

      • request: NextRequest

      Returns Promise<
          | NextResponse<{ success: boolean; error: string }>
          | NextResponse<
              {
                  success: boolean;
                  message: string;
                  label: {
                      id: string;
                      code: string;
                      type: string;
                      quantity: number;
                      unit: string
                      | null;
                      lotNumber: string | null;
                      position: string | null;
                      createdAt: Date;
                  };
                  stockLot: | {
                      id: string;
                      lotNumber: string;
                      quantity: number;
                      unit: string;
                  }
                  | null;
                  product: { type: string; id: string; code: string; name: string }
                  | null;
              },
          >,
      >